restructure for tests

~ 10 min work
This commit is contained in:
Benedikt Galbavy 2024-01-20 20:29:31 +01:00
parent 1e81e96ad4
commit 52f7866707
49 changed files with 9 additions and 23 deletions

BIN
lib/byte-buddy-1.14.10.jar Normal file

Binary file not shown.

Binary file not shown.

BIN
lib/hamcrest-core-1.1.jar Normal file

Binary file not shown.

Binary file not shown.

BIN
lib/junit-4.10.jar Normal file

Binary file not shown.

BIN
lib/mockito-core-5.8.0.jar Normal file

Binary file not shown.

BIN
lib/objenesis-3.3.jar Normal file

Binary file not shown.

View File

@ -1,23 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
<component name="AdditionalModuleElements">
<content url="file://$MODULE_DIR$" dumb="true">
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module-library" scope="PROVIDED">
<library>
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/org/projectlombok/lombok/1.18.30/lombok-1.18.30.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="library" name="fasterxml.jackson.core" level="project" />
<orderEntry type="library" name="fasterxml.jackson.core.annotations" level="project" />
<orderEntry type="library" name="fasterxml.jackson.core.databind" level="project" />
</component>
</module>

View File

@ -11,7 +11,7 @@ import java.util.List;
import java.util.Random;
public class Battle {
private record RoundResult(String winnerName, Card winnerCard, String loserName, Card loserCard, boolean draw);
private record RoundResult(String winnerName, Card winnerCard, String loserName, Card loserCard, boolean draw) {};
private Pair<Combatant, Combatant> combatants;
@Getter
private volatile List<String> log = new ArrayList<>();
@ -40,15 +40,15 @@ public class Battle {
private void playRound() {
Pair<Card, Card> cards = new Pair<>(this.combatants.left().getCard(), this.combatants.right().getCard());
RoundResult result = this.fight(cards.left(), cards.right());
this.log.add()
//RoundResult result = this.fight(cards.left(), cards.right());
//this.log.add("");
}
private boolean fight(Card left, Card right) {
return true;
}
private String createCombatString(RoundResult result) {
return "";
}
}