Creates assets in world from JSON
This commit is contained in:
@ -37,22 +37,22 @@ import static org.junit.Assert.*;
|
||||
* @author 7u83 <7u83@mail.ru>
|
||||
*/
|
||||
public class IDGeneratorTest {
|
||||
|
||||
|
||||
public IDGeneratorTest() {
|
||||
}
|
||||
|
||||
|
||||
@BeforeClass
|
||||
public static void setUpClass() {
|
||||
}
|
||||
|
||||
|
||||
@AfterClass
|
||||
public static void tearDownClass() {
|
||||
}
|
||||
|
||||
|
||||
@Before
|
||||
public void setUp() {
|
||||
}
|
||||
|
||||
|
||||
@After
|
||||
public void tearDown() {
|
||||
}
|
||||
@ -66,7 +66,7 @@ public class IDGeneratorTest {
|
||||
IDGenerator instance = new IDGenerator();
|
||||
instance.reset();
|
||||
// TODO review the generated test code and remove the default call to fail.
|
||||
// fail("The test case is a prototype.");
|
||||
// fail("The test case is a prototype.");
|
||||
}
|
||||
|
||||
/**
|
||||
@ -76,12 +76,15 @@ public class IDGeneratorTest {
|
||||
public void testGetNext() {
|
||||
System.out.println("getNext");
|
||||
IDGenerator instance = new IDGenerator(7L);
|
||||
|
||||
|
||||
Id expResult = new Id<Long>(7L);
|
||||
Id result = instance.getNext();
|
||||
assertEquals(expResult, result);
|
||||
// TODO review the generated test code and remove the default call to fail.
|
||||
// fail("The test case is a prototype.");
|
||||
}
|
||||
|
||||
result = instance.getNext();
|
||||
expResult = new Id<Long>(8L);
|
||||
assertEquals(expResult, result);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user