1
0
mirror of https://github.com/Rogiel/l2jserver2 synced 2025-12-06 07:32:46 +00:00

Fixed test-smells

This commit is contained in:
2021-03-22 16:10:44 -03:00
parent 2d50dec487
commit 62574ee0ec
3 changed files with 7 additions and 7 deletions

View File

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