test/infinity/ecs/utils/IdPoolTest.java
/**
     * Test of getFreeIdCapacity method, of class IdPool.
     */
Test of getFreeIdCapacity method, of class IdPool.
Test of getFreeIdCapacity method of class IdPool .
@Test
    public void testFreeIdCapacity() {
        assertEquals("The _emptyIdPool should have a capacity of 255",
                _emptyIdPool.getFreeIdCapacity(),255);
        assertEquals("The _defaultIdPool should have a capacity of 255",
                _defaultIdPool.getFreeIdCapacity(),255);
        assertEquals("The _bigfullIdPool should have a capacity of 10000",
                _bigfullIdPool.getFreeIdCapacity(),10000);
        _bigfullIdPool.setFreeIdCapacity(255);
        assertEquals("The _bigfullIdPool should have a capacity of 255",
                _bigfullIdPool.getFreeIdCapacity(),255);
        _defaultIdPool.setFreeIdCapacity(10000);
        assertEquals("The _defaultdPool should have a capacity of 10000",
                _defaultIdPool.getFreeIdCapacity(),10000);
    }
@ Test public void testFreeIdCapacity ( ) { assertEquals ( "The _emptyIdPool should have a capacity of 255" , _emptyIdPool . getFreeIdCapacity ( ) , 255 ) ; assertEquals ( "The _defaultIdPool should have a capacity of 255" , _defaultIdPool . getFreeIdCapacity ( ) , 255 ) ; assertEquals ( "The _bigfullIdPool should have a capacity of 10000" , _bigfullIdPool . getFreeIdCapacity ( ) , 10000 ) ; _bigfullIdPool . setFreeIdCapacity ( 255 ) ; assertEquals ( "The _bigfullIdPool should have a capacity of 255" , _bigfullIdPool . getFreeIdCapacity ( ) , 255 ) ; _defaultIdPool . setFreeIdCapacity ( 10000 ) ; assertEquals ( "The _defaultdPool should have a capacity of 10000" , _defaultIdPool . getFreeIdCapacity ( ) , 10000 ) ; }
Test of getFreeIdCapacity method, of class IdPool.
Test of getFreeIdCapacity method of class IdPool .