|
|
@ -83,4 +83,20 @@ class LogicTest { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
void testSetMatchfield() { |
|
|
|
Logic logic = new Logic(); |
|
|
|
Matchfield matchfield; |
|
|
|
int size = 4; |
|
|
|
matchfield = new Matchfield(size); |
|
|
|
matchfield.createMatchfield(); |
|
|
|
|
|
|
|
Matchfield result = logic.getMatchfield(); |
|
|
|
assertEquals(result, null); |
|
|
|
logic.setMatchfield(matchfield); |
|
|
|
result = logic.getMatchfield(); |
|
|
|
assertNotNull(result); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |