mirror of
https://github.com/Rogiel/l2jserver2
synced 2025-12-06 07:32:46 +00:00
Fixed test-smells
This commit is contained in:
@@ -52,9 +52,9 @@ public class BitSetIDAllocatorTest {
|
||||
public void testAllocate() {
|
||||
final int id1 = allocator.allocate();
|
||||
final int id2 = allocator.allocate();
|
||||
assertFalse(id1 == id2);
|
||||
assertEquals(IDAllocator.FIRST_ID, id1);
|
||||
assertEquals(IDAllocator.FIRST_ID + 1, id2);
|
||||
assertFalse("IDs must not be equal", id1 == id2);
|
||||
assertEquals("First allocated ID must be equal to the first allocatable ID", IDAllocator.FIRST_ID, id1);
|
||||
assertEquals("IDs must increment sequentially", IDAllocator.FIRST_ID + 1, id2);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user