DiningPhilo
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
package praktikum04;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
|
||||
class ForkTest {
|
||||
|
||||
@Test
|
||||
void getId() {
|
||||
|
||||
Fork fork = new Fork(1);
|
||||
fork.getId();
|
||||
}
|
||||
|
||||
@Test
|
||||
void take() {
|
||||
|
||||
Fork fork = new Fork(1);
|
||||
}
|
||||
|
||||
@Test
|
||||
void put() {
|
||||
|
||||
Fork fork = new Fork(1);
|
||||
fork.take();
|
||||
|
||||
fork.put();
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user