Mercurial > lbo > hg > clusterrpc-java
view src/test/java/net/borgac/clusterrpc/MiscExplorationTest.java @ 4:6106d0f7f81a
Update MiscExplorationTest
author | Lewin Bormann <lbo@spheniscida.de> |
---|---|
date | Fri, 23 Sep 2016 22:00:49 +0200 |
parents | c81cdb1b037d |
children |
line wrap: on
line source
package net.borgac.clusterrpc; import java.net.InetSocketAddress; import org.junit.After; import org.junit.AfterClass; import org.junit.Assert; import org.junit.Before; import org.junit.BeforeClass; import org.junit.Test; /** * * @author lbo */ public class MiscExplorationTest { public MiscExplorationTest() { } @BeforeClass public static void setUpClass() { } @AfterClass public static void tearDownClass() { } @Before public void setUp() { } @After public void tearDown() { } // TODO add test methods here. // The methods must be annotated with annotation @Test. For example: // // @Test // public void hello() {} @Test public void testInetAddress() { InetSocketAddress addr = new InetSocketAddress("borgac.net", 80); Assert.assertEquals("borgac.net", addr.getHostString()); Assert.assertEquals(80, addr.getPort()); } }