package uulm.teamname.marvelous.gamelibrary.gamelogic; import org.junit.jupiter.api.Test; import uulm.teamname.marvelous.gamelibrary.IntVector2; import uulm.teamname.marvelous.gamelibrary.events.Event; import uulm.teamname.marvelous.gamelibrary.requests.RequestBuilder; import uulm.teamname.marvelous.gamelibrary.requests.RequestType; import java.util.ArrayList; import static org.assertj.core.api.Assertions.*; import static org.junit.jupiter.api.Assertions.*; class GameLogicTest { @Test void executeRequest() { GameState state = new GameState(new IntVector2(10, 10)); //build a nice state (add entities and stuff) ArrayList result = GameLogic.executeRequest(state, new RequestBuilder(RequestType.MeleeAttackRequest) //build a nice request to check //.withOriginEntity() .buildCharacterRequest()); //check if result contains the right events } @Test void buildGameStateEvent() { } @Test void checkRequest() { } @Test void applyEvent() { } @Test void checkWinConditions() { } }