view src/test/java/net/borgac/clusterrpc/MiscExplorationTest.java @ 3:c81cdb1b037d

More exploration tests
author Lewin Bormann <lbo@spheniscida.de>
date Fri, 23 Sep 2016 19:19:18 +0200
parents
children 6106d0f7f81a
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:80", addr.toString());
    }
}