import org.junit.Before; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.*; class GamefieldTest { private Gamefield gamefield = new Gamefield(); @Test void setField() { gamefield.setField(2, 1); gamefield.setField(4, 2); assertEquals(0, gamefield.getField(1)); assertEquals(1, gamefield.getField(2)); assertEquals(0, gamefield.getField(3)); assertEquals(2, gamefield.getField(4)); assertEquals(0, gamefield.getField(5)); assertEquals(0, gamefield.getField(6)); assertEquals(0, gamefield.getField(7)); assertEquals(0, gamefield.getField(8)); assertEquals(0, gamefield.getField(9)); assertEquals(2, gamefield.countSetFields()); gamefield.outputField(); } @Test void getField() { } @Test void outputField() { } }