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

More exploration tests
author Lewin Bormann <lbo@spheniscida.de>
date Fri, 23 Sep 2016 19:19:18 +0200
parents src/test/java/net/borgac/clusterrpc/TestDependencies.java@ed6ea43af3f4
children
line wrap: on
line source

package net.borgac.clusterrpc;

import com.google.protobuf.Empty;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Assert;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.zeromq.ZMQ;

/**
 *
 * @author lbo
 */
public class DependenciesTest {

    public DependenciesTest() {
    }

    @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 testProtobufLib() {
        Empty e = Empty.newBuilder().build();
        Assert.assertNotNull(e);
    }

    @Test
    public void testJeroMQLib() {
        int reqType = ZMQ.REQ;
        Assert.assertEquals(ZMQ.REQ, reqType);
    }
}