test/infinity/ecs/utils/IdPoolTest.java
/**
     * Test of getId method, of class IdPool.
     */
Test of getId method, of class IdPool.
Test of getId method of class IdPool .
@Test
    public void testGetId() {
        int value = _emptyIdPool.getId();
        assertThat("Two generated ids shouldnt be the same",value,
                is(not(_emptyIdPool.getId())));
        assertEquals("GetId didnt return the right id"
                ,_defaultIdPool.getId(),42);
        assertEquals("GetId didnt return the right id",
                _defaultIdPool.getId(),10);
        assertEquals("The bigfullIdPool should return 9999",
                _bigfullIdPool.getId(),9999);        
    }
@ Test public void testGetId ( ) { int value = _emptyIdPool . getId ( ) ; assertThat ( "Two generated ids shouldnt be the same" , value , is ( not ( _emptyIdPool . getId ( ) ) ) ) ; assertEquals ( "GetId didnt return the right id" , _defaultIdPool . getId ( ) , 42 ) ; assertEquals ( "GetId didnt return the right id" , _defaultIdPool . getId ( ) , 10 ) ; assertEquals ( "The bigfullIdPool should return 9999" , _bigfullIdPool . getId ( ) , 9999 ) ; }
Test of getId method, of class IdPool.
Test of getId method of class IdPool .
//10000 isnt in the IdPool because the stack was already full at 9999