Skip to content

Commit ae1a94e

Browse files
committed
fix: add UnsupportedOperationException in KingsHand and GameLoopTest
1 parent b375919 commit ae1a94e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

event-aggregator/src/main/java/com/iluwatar/event/aggregator/KingsHand.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,6 @@ public void onEvent(Event e) {
4343

4444
@Override
4545
public void timePasses(Weekday day) {
46+
throw new UnsupportedOperationException("KingsHand does not support time passing");
4647
}
4748
}

game-loop/src/test/java/com/iluwatar/gameloop/GameLoopTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,9 @@
2424
*/
2525
package com.iluwatar.gameloop;
2626

27-
import static org.junit.jupiter.api.Assertions.assertFalse;
28-
2927
import org.junit.jupiter.api.AfterEach;
3028
import org.junit.jupiter.api.Assertions;
29+
import static org.junit.jupiter.api.Assertions.assertFalse;
3130
import org.junit.jupiter.api.BeforeEach;
3231
import org.junit.jupiter.api.Test;
3332

@@ -46,6 +45,7 @@ void setup() {
4645
gameLoop = new GameLoop() {
4746
@Override
4847
protected void processGameLoop() {
48+
throw new UnsupportedOperationException("Not supported yet.");
4949
}
5050
};
5151
}

0 commit comments

Comments
 (0)