-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added files for unit test: TestTemplate.java and TestLookupTable.java…
…; They don't include tests right now.
- Loading branch information
1 parent
d48d26f
commit 11b4cca
Showing
2 changed files
with
116 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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("#############################################################################"); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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("#############################################################################"); | ||
} | ||
|
||
} |