Magdalena, Luca-Marie, Melanie
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ForkTest.java 461B

123456789101112131415161718192021222324252627282930313233
  1. package Praktikum4;
  2. import org.junit.jupiter.api.Test;
  3. import static org.junit.jupiter.api.Assertions.*;
  4. class ForkTest {
  5. @Test
  6. void getId() {
  7. Fork fork = new Fork(1);
  8. assertEquals(1, fork.getId());
  9. }
  10. @Test
  11. void take() {
  12. Fork fork = new Fork(2);
  13. assertTrue(fork.take());// sollte nicht in Gebrauch sein
  14. }
  15. @Test
  16. void put() {
  17. Fork fork = new Fork(3);
  18. fork.put();
  19. }
  20. }