Fixed tests
This commit is contained in:
parent
561ccebb07
commit
a580742181
@ -31,6 +31,8 @@ public class NodeServiceTests {
|
||||
|
||||
@Test
|
||||
void test_allNodes() {
|
||||
nodeService.all().forEach(node -> nodeService.remove(node));
|
||||
|
||||
var nodes = List.of(
|
||||
new Node("test1", PickingMode.SEQUENTIAL_FILLING, false),
|
||||
new Node("test2", PickingMode.ROUND_ROBIN, false),
|
||||
@ -43,5 +45,9 @@ public class NodeServiceTests {
|
||||
|
||||
Assertions.assertEquals(nodes.size(), list.size());
|
||||
Assertions.assertTrue(list.containsAll(nodes));
|
||||
|
||||
nodes.forEach(node -> nodeService.remove(node));
|
||||
|
||||
Assertions.assertEquals(0, nodeService.all().size());
|
||||
}
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@ import ru.dragonestia.picker.model.type.SlotLimit;
|
||||
import java.util.List;
|
||||
|
||||
@SpringBootTest
|
||||
public class RoomServiceTest {
|
||||
public class RoomServiceTests {
|
||||
|
||||
@Autowired
|
||||
private NodeService nodeService;
|
||||
Loading…
x
Reference in New Issue
Block a user