Creates assets in world from JSON

This commit is contained in:
2018-12-04 01:36:00 +01:00
parent 5a19f801b3
commit 6bb6d88371
15 changed files with 234 additions and 91 deletions

View File

@ -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);
}
}