Hallo
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
package Praktikum4;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
|
||||
class ForkTest {
|
||||
|
||||
@Test
|
||||
void getId() {
|
||||
Fork fork = new Fork(1);
|
||||
assertEquals(1, fork.getId());
|
||||
}
|
||||
|
||||
@Test
|
||||
void take() {
|
||||
Fork fork = new Fork(2);
|
||||
assertTrue(fork.take());// sollte nicht in Gebrauch sein
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
void put() {
|
||||
Fork fork = new Fork(3);
|
||||
fork.put();
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user