Skip to content

Commit

Permalink
Added files for unit test: TestTemplate.java and TestLookupTable.java…
Browse files Browse the repository at this point in the history
…; They don't include tests right now.
  • Loading branch information
marco-wehnert authored and doip committed Jan 18, 2020
1 parent d48d26f commit 11b4cca
Show file tree
Hide file tree
Showing 2 changed files with 116 additions and 0 deletions.
58 changes: 58 additions & 0 deletions src/test/java/doip/library/test/TestTemplate.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
package doip.library.test;

import static doip.junit.Assert.*;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

import doip.logging.LogManager;
import doip.logging.Logger;

public class TestTemplate {

private static Logger logger = LogManager.getLogger(TestTemplate.class);

@BeforeClass
public static void setUpBeforeClass() throws Exception {
logger.info("-----------------------------------------------------------------------------");
logger.info(">>> public static void setUpBeforeClass()");
logger.info("<<< public static void setUpBeforeClass()");
logger.info("-----------------------------------------------------------------------------");
}

@AfterClass
public static void tearDownAfterClass() throws Exception {
logger.info("-----------------------------------------------------------------------------");
logger.info(">>> public static void tearDownAfterClass()");
logger.info("<<< public static void tearDownAfterClass()");
logger.info("-----------------------------------------------------------------------------");
}

@Before
public void setUp() throws Exception {
logger.info("-----------------------------------------------------------------------------");
logger.info(">>> public void setUp()");
logger.info("<<< public void setUp()");
logger.info("-----------------------------------------------------------------------------");
}

@After
public void tearDown() throws Exception {
logger.info("-----------------------------------------------------------------------------");
logger.info(">>> public void tearDown()");
logger.info("<<< public void tearDown()");
logger.info("-----------------------------------------------------------------------------");
}

@Test
public void test() {
logger.info("#############################################################################");
logger.info(">>> public void test()");
logger.info("<<< public void test()");
logger.info("#############################################################################");
}

}
58 changes: 58 additions & 0 deletions src/test/java/doip/library/util/TestLookupTable.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
package doip.library.util;

import static org.junit.Assert.*;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

import doip.logging.LogManager;
import doip.logging.Logger;

public class TestLookupTable {

private static Logger logger = LogManager.getLogger(TestLookupTable.class);

@BeforeClass
public static void setUpBeforeClass() throws Exception {
logger.info("-----------------------------------------------------------------------------");
logger.info(">>> public static void setUpBeforeClass()");
logger.info("<<< public static void setUpBeforeClass()");
logger.info("-----------------------------------------------------------------------------");
}

@AfterClass
public static void tearDownAfterClass() throws Exception {
logger.info("-----------------------------------------------------------------------------");
logger.info(">>> public static void tearDownAfterClass()");
logger.info("<<< public static void tearDownAfterClass()");
logger.info("-----------------------------------------------------------------------------");
}

@Before
public void setUp() throws Exception {
logger.info("-----------------------------------------------------------------------------");
logger.info(">>> public void setUp()");
logger.info("<<< public void setUp()");
logger.info("-----------------------------------------------------------------------------");
}

@After
public void tearDown() throws Exception {
logger.info("-----------------------------------------------------------------------------");
logger.info(">>> public void tearDown()");
logger.info("<<< public void tearDown()");
logger.info("-----------------------------------------------------------------------------");
}

@Test
public void test() {
logger.info("#############################################################################");
logger.info(">>> public void test()");
logger.info("<<< public void test()");
logger.info("#############################################################################");
}

}

0 comments on commit 11b4cca

Please sign in to comment.