Browse Source

refactoring:

main
fdai4616 2 years ago
parent
commit
e194609df0
  1. 2
      .idea/hellsgamers.iml
  2. 5
      pom.xml
  3. 2
      src/Test/java/test_AIGridGUI.java
  4. 2
      src/Test/java/test_BShip.java
  5. 2
      src/Test/java/test_CollisionChecker.java
  6. 2
      src/Test/java/test_Ship.java
  7. 2
      src/Test/java/test_Snake.java
  8. 65
      target/surefire-reports/TEST-test_AIGridGUI.xml
  9. 61
      target/surefire-reports/TEST-test_BShip.xml
  10. 69
      target/surefire-reports/TEST-test_CollisionChecker.xml
  11. 61
      target/surefire-reports/TEST-test_Ship.xml
  12. 63
      target/surefire-reports/TEST-test_Snake.xml
  13. 4
      target/surefire-reports/test_AIGridGUI.txt
  14. 4
      target/surefire-reports/test_BShip.txt
  15. 4
      target/surefire-reports/test_CollisionChecker.txt
  16. 4
      target/surefire-reports/test_Ship.txt
  17. 4
      target/surefire-reports/test_Snake.txt

2
.idea/hellsgamers.iml

@ -7,7 +7,7 @@
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/test_/java" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/test_/java" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/Test/java" isTestSource="true" />
<excludeFolder url="file://$MODULE_DIR$/target" />
</content>
<orderEntry type="inheritedJdk" />

5
pom.xml

@ -20,7 +20,12 @@
<version>3.0.0-M5</version>
<configuration>
<skipTests>false</skipTests>
<includes>
<include>test_*</include>
</includes>
</configuration>
</plugin>
</plugins>

2
src/test_/java/AIGridGUITest.java → src/Test/java/test_AIGridGUI.java

@ -4,7 +4,7 @@ import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
public class AIGridGUITest {
public class test_AIGridGUI {
AIGridGUI aiGridGUI = new AIGridGUI(10, 10);

2
src/test_/java/BShipTest.java → src/Test/java/test_BShip.java

@ -3,7 +3,7 @@ import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertNotNull;
class BShipTest {
class test_BShip {
@Test
public void testStartGame() {
BShip bShip = new BShip();

2
src/test_/java/CollisionCheckerTest.java → src/Test/java/test_CollisionChecker.java

@ -8,7 +8,7 @@ import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
class CollisionCheckerTest {
class test_CollisionChecker {
CollisionChecker collisionChecker;
@BeforeEach

2
src/test_/java/ShipTest.java → src/Test/java/test_Ship.java

@ -3,7 +3,7 @@ import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class ShipTest {
class test_Ship {
@Test
void counter() {

2
src/test_/java/SnakeTest.java → src/Test/java/test_Snake.java

@ -7,7 +7,7 @@ import java.util.ArrayList;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
class SnakeTest {
class test_Snake {
@Test
public void testReset() {
int gridSize = 20;

65
target/surefire-reports/TEST-test_AIGridGUI.xml

@ -0,0 +1,65 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuite xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://maven.apache.org/surefire/maven-surefire-plugin/xsd/surefire-test-report-3.0.xsd" version="3.0" name="test_AIGridGUI" time="0.84" tests="5" errors="0" skipped="0" failures="0">
<properties>
<property name="java.specification.version" value="17"/>
<property name="sun.cpu.isalist" value="amd64"/>
<property name="sun.jnu.encoding" value="Cp1252"/>
<property name="sun.awt.enableExtraMouseButtons" value="true"/>
<property name="java.class.path" value="C:\Users\Laura\IdeaProjects\hellsgamers\target\test-classes;C:\Users\Laura\IdeaProjects\hellsgamers\target\classes;C:\Users\Laura\.m2\repository\junit\junit\4.13.2\junit-4.13.2.jar;C:\Users\Laura\.m2\repository\org\hamcrest\hamcrest-core\1.3\hamcrest-core-1.3.jar;C:\Users\Laura\.m2\repository\org\junit\jupiter\junit-jupiter\5.8.1\junit-jupiter-5.8.1.jar;C:\Users\Laura\.m2\repository\org\junit\jupiter\junit-jupiter-api\5.8.1\junit-jupiter-api-5.8.1.jar;C:\Users\Laura\.m2\repository\org\opentest4j\opentest4j\1.2.0\opentest4j-1.2.0.jar;C:\Users\Laura\.m2\repository\org\junit\platform\junit-platform-commons\1.8.1\junit-platform-commons-1.8.1.jar;C:\Users\Laura\.m2\repository\org\apiguardian\apiguardian-api\1.1.2\apiguardian-api-1.1.2.jar;C:\Users\Laura\.m2\repository\org\junit\jupiter\junit-jupiter-params\5.8.1\junit-jupiter-params-5.8.1.jar;C:\Users\Laura\.m2\repository\org\junit\jupiter\junit-jupiter-engine\5.8.1\junit-jupiter-engine-5.8.1.jar;C:\Users\Laura\.m2\repository\org\junit\platform\junit-platform-engine\1.8.1\junit-platform-engine-1.8.1.jar;"/>
<property name="java.vm.vendor" value="Oracle Corporation"/>
<property name="sun.arch.data.model" value="64"/>
<property name="user.variant" value=""/>
<property name="java.vendor.url" value="https://java.oracle.com/"/>
<property name="user.timezone" value="Europe/Berlin"/>
<property name="os.name" value="Windows 10"/>
<property name="java.vm.specification.version" value="17"/>
<property name="sun.java.launcher" value="SUN_STANDARD"/>
<property name="user.country" value="DE"/>
<property name="sun.boot.library.path" value="C:\Program Files\Java\jdk-17\bin"/>
<property name="sun.java.command" value="C:\Users\Laura\AppData\Local\Temp\surefire10052371721095918191\surefirebooter16426829952227023123.jar C:\Users\Laura\AppData\Local\Temp\surefire10052371721095918191 2023-02-09T20-07-21_749-jvmRun1 surefire554125048120407044tmp surefire_011862512070292878614tmp"/>
<property name="jdk.debug" value="release"/>
<property name="surefire.test.class.path" value="C:\Users\Laura\IdeaProjects\hellsgamers\target\test-classes;C:\Users\Laura\IdeaProjects\hellsgamers\target\classes;C:\Users\Laura\.m2\repository\junit\junit\4.13.2\junit-4.13.2.jar;C:\Users\Laura\.m2\repository\org\hamcrest\hamcrest-core\1.3\hamcrest-core-1.3.jar;C:\Users\Laura\.m2\repository\org\junit\jupiter\junit-jupiter\5.8.1\junit-jupiter-5.8.1.jar;C:\Users\Laura\.m2\repository\org\junit\jupiter\junit-jupiter-api\5.8.1\junit-jupiter-api-5.8.1.jar;C:\Users\Laura\.m2\repository\org\opentest4j\opentest4j\1.2.0\opentest4j-1.2.0.jar;C:\Users\Laura\.m2\repository\org\junit\platform\junit-platform-commons\1.8.1\junit-platform-commons-1.8.1.jar;C:\Users\Laura\.m2\repository\org\apiguardian\apiguardian-api\1.1.2\apiguardian-api-1.1.2.jar;C:\Users\Laura\.m2\repository\org\junit\jupiter\junit-jupiter-params\5.8.1\junit-jupiter-params-5.8.1.jar;C:\Users\Laura\.m2\repository\org\junit\jupiter\junit-jupiter-engine\5.8.1\junit-jupiter-engine-5.8.1.jar;C:\Users\Laura\.m2\repository\org\junit\platform\junit-platform-engine\1.8.1\junit-platform-engine-1.8.1.jar;"/>
<property name="sun.cpu.endian" value="little"/>
<property name="user.home" value="C:\Users\Laura"/>
<property name="user.language" value="de"/>
<property name="java.specification.vendor" value="Oracle Corporation"/>
<property name="java.version.date" value="2021-09-14"/>
<property name="java.home" value="C:\Program Files\Java\jdk-17"/>
<property name="file.separator" value="\"/>
<property name="basedir" value="C:\Users\Laura\IdeaProjects\hellsgamers"/>
<property name="java.vm.compressedOopsMode" value="32-bit"/>
<property name="line.separator" value="&#10;"/>
<property name="java.vm.specification.vendor" value="Oracle Corporation"/>
<property name="java.specification.name" value="Java Platform API Specification"/>
<property name="surefire.real.class.path" value="C:\Users\Laura\AppData\Local\Temp\surefire10052371721095918191\surefirebooter16426829952227023123.jar"/>
<property name="user.script" value=""/>
<property name="sun.management.compiler" value="HotSpot 64-Bit Tiered Compilers"/>
<property name="java.runtime.version" value="17+35-LTS-2724"/>
<property name="user.name" value="Laura"/>
<property name="path.separator" value=";"/>
<property name="os.version" value="10.0"/>
<property name="java.runtime.name" value="Java(TM) SE Runtime Environment"/>
<property name="file.encoding" value="Cp1252"/>
<property name="java.vm.name" value="Java HotSpot(TM) 64-Bit Server VM"/>
<property name="localRepository" value="C:\Users\Laura\.m2\repository"/>
<property name="java.vendor.url.bug" value="https://bugreport.java.com/bugreport/"/>
<property name="java.io.tmpdir" value="C:\Users\Laura\AppData\Local\Temp\"/>
<property name="java.version" value="17"/>
<property name="user.dir" value="C:\Users\Laura\IdeaProjects\hellsgamers"/>
<property name="os.arch" value="amd64"/>
<property name="java.vm.specification.name" value="Java Virtual Machine Specification"/>
<property name="sun.os.patch.level" value=""/>
<property name="native.encoding" value="Cp1252"/>
<property name="java.library.path" value="C:\Program Files\Java\jdk-17\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Users\Laura\bin;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\local\bin;C:\Program Files\Git\usr\bin;C:\Program Files\Git\usr\bin;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Users\Laura\bin;C:\Program Files\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files\Git\cmd;C:\Users\Laura\Desktop\apache-maven-3.8.7-bin\apache-maven-3.8.7\bin;C:\Users\Laura\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Git\usr\bin\vendor_perl;C:\Program Files\Git\usr\bin\core_perl;."/>
<property name="java.vm.info" value="mixed mode, sharing"/>
<property name="java.vendor" value="Oracle Corporation"/>
<property name="java.vm.version" value="17+35-LTS-2724"/>
<property name="sun.io.unicode.encoding" value="UnicodeLittle"/>
<property name="java.class.version" value="61.0"/>
</properties>
<testcase name="testMoveUpForValidInput" classname="test_AIGridGUI" time="0.112"/>
<testcase name="testPlaceShips" classname="test_AIGridGUI" time="0.037"/>
<testcase name="testMoveDown" classname="test_AIGridGUI" time="0.007"/>
<testcase name="testMoveLeft" classname="test_AIGridGUI" time="0.014"/>
<testcase name="testMoveRight" classname="test_AIGridGUI" time="0.017"/>
</testsuite>

61
target/surefire-reports/TEST-test_BShip.xml

@ -0,0 +1,61 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuite xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://maven.apache.org/surefire/maven-surefire-plugin/xsd/surefire-test-report-3.0.xsd" version="3.0" name="test_BShip" time="0.7" tests="1" errors="0" skipped="0" failures="0">
<properties>
<property name="java.specification.version" value="17"/>
<property name="sun.cpu.isalist" value="amd64"/>
<property name="sun.jnu.encoding" value="Cp1252"/>
<property name="sun.awt.enableExtraMouseButtons" value="true"/>
<property name="java.class.path" value="C:\Users\Laura\IdeaProjects\hellsgamers\target\test-classes;C:\Users\Laura\IdeaProjects\hellsgamers\target\classes;C:\Users\Laura\.m2\repository\junit\junit\4.13.2\junit-4.13.2.jar;C:\Users\Laura\.m2\repository\org\hamcrest\hamcrest-core\1.3\hamcrest-core-1.3.jar;C:\Users\Laura\.m2\repository\org\junit\jupiter\junit-jupiter\5.8.1\junit-jupiter-5.8.1.jar;C:\Users\Laura\.m2\repository\org\junit\jupiter\junit-jupiter-api\5.8.1\junit-jupiter-api-5.8.1.jar;C:\Users\Laura\.m2\repository\org\opentest4j\opentest4j\1.2.0\opentest4j-1.2.0.jar;C:\Users\Laura\.m2\repository\org\junit\platform\junit-platform-commons\1.8.1\junit-platform-commons-1.8.1.jar;C:\Users\Laura\.m2\repository\org\apiguardian\apiguardian-api\1.1.2\apiguardian-api-1.1.2.jar;C:\Users\Laura\.m2\repository\org\junit\jupiter\junit-jupiter-params\5.8.1\junit-jupiter-params-5.8.1.jar;C:\Users\Laura\.m2\repository\org\junit\jupiter\junit-jupiter-engine\5.8.1\junit-jupiter-engine-5.8.1.jar;C:\Users\Laura\.m2\repository\org\junit\platform\junit-platform-engine\1.8.1\junit-platform-engine-1.8.1.jar;"/>
<property name="java.vm.vendor" value="Oracle Corporation"/>
<property name="sun.arch.data.model" value="64"/>
<property name="user.variant" value=""/>
<property name="java.vendor.url" value="https://java.oracle.com/"/>
<property name="user.timezone" value="Europe/Berlin"/>
<property name="os.name" value="Windows 10"/>
<property name="java.vm.specification.version" value="17"/>
<property name="sun.java.launcher" value="SUN_STANDARD"/>
<property name="user.country" value="DE"/>
<property name="sun.boot.library.path" value="C:\Program Files\Java\jdk-17\bin"/>
<property name="sun.java.command" value="C:\Users\Laura\AppData\Local\Temp\surefire10052371721095918191\surefirebooter16426829952227023123.jar C:\Users\Laura\AppData\Local\Temp\surefire10052371721095918191 2023-02-09T20-07-21_749-jvmRun1 surefire554125048120407044tmp surefire_011862512070292878614tmp"/>
<property name="jdk.debug" value="release"/>
<property name="surefire.test.class.path" value="C:\Users\Laura\IdeaProjects\hellsgamers\target\test-classes;C:\Users\Laura\IdeaProjects\hellsgamers\target\classes;C:\Users\Laura\.m2\repository\junit\junit\4.13.2\junit-4.13.2.jar;C:\Users\Laura\.m2\repository\org\hamcrest\hamcrest-core\1.3\hamcrest-core-1.3.jar;C:\Users\Laura\.m2\repository\org\junit\jupiter\junit-jupiter\5.8.1\junit-jupiter-5.8.1.jar;C:\Users\Laura\.m2\repository\org\junit\jupiter\junit-jupiter-api\5.8.1\junit-jupiter-api-5.8.1.jar;C:\Users\Laura\.m2\repository\org\opentest4j\opentest4j\1.2.0\opentest4j-1.2.0.jar;C:\Users\Laura\.m2\repository\org\junit\platform\junit-platform-commons\1.8.1\junit-platform-commons-1.8.1.jar;C:\Users\Laura\.m2\repository\org\apiguardian\apiguardian-api\1.1.2\apiguardian-api-1.1.2.jar;C:\Users\Laura\.m2\repository\org\junit\jupiter\junit-jupiter-params\5.8.1\junit-jupiter-params-5.8.1.jar;C:\Users\Laura\.m2\repository\org\junit\jupiter\junit-jupiter-engine\5.8.1\junit-jupiter-engine-5.8.1.jar;C:\Users\Laura\.m2\repository\org\junit\platform\junit-platform-engine\1.8.1\junit-platform-engine-1.8.1.jar;"/>
<property name="sun.cpu.endian" value="little"/>
<property name="user.home" value="C:\Users\Laura"/>
<property name="user.language" value="de"/>
<property name="java.specification.vendor" value="Oracle Corporation"/>
<property name="java.version.date" value="2021-09-14"/>
<property name="java.home" value="C:\Program Files\Java\jdk-17"/>
<property name="file.separator" value="\"/>
<property name="basedir" value="C:\Users\Laura\IdeaProjects\hellsgamers"/>
<property name="java.vm.compressedOopsMode" value="32-bit"/>
<property name="line.separator" value="&#10;"/>
<property name="java.vm.specification.vendor" value="Oracle Corporation"/>
<property name="java.specification.name" value="Java Platform API Specification"/>
<property name="surefire.real.class.path" value="C:\Users\Laura\AppData\Local\Temp\surefire10052371721095918191\surefirebooter16426829952227023123.jar"/>
<property name="user.script" value=""/>
<property name="sun.management.compiler" value="HotSpot 64-Bit Tiered Compilers"/>
<property name="java.runtime.version" value="17+35-LTS-2724"/>
<property name="user.name" value="Laura"/>
<property name="path.separator" value=";"/>
<property name="os.version" value="10.0"/>
<property name="java.runtime.name" value="Java(TM) SE Runtime Environment"/>
<property name="file.encoding" value="Cp1252"/>
<property name="java.vm.name" value="Java HotSpot(TM) 64-Bit Server VM"/>
<property name="localRepository" value="C:\Users\Laura\.m2\repository"/>
<property name="java.vendor.url.bug" value="https://bugreport.java.com/bugreport/"/>
<property name="java.io.tmpdir" value="C:\Users\Laura\AppData\Local\Temp\"/>
<property name="java.version" value="17"/>
<property name="user.dir" value="C:\Users\Laura\IdeaProjects\hellsgamers"/>
<property name="os.arch" value="amd64"/>
<property name="java.vm.specification.name" value="Java Virtual Machine Specification"/>
<property name="sun.os.patch.level" value=""/>
<property name="native.encoding" value="Cp1252"/>
<property name="java.library.path" value="C:\Program Files\Java\jdk-17\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Users\Laura\bin;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\local\bin;C:\Program Files\Git\usr\bin;C:\Program Files\Git\usr\bin;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Users\Laura\bin;C:\Program Files\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files\Git\cmd;C:\Users\Laura\Desktop\apache-maven-3.8.7-bin\apache-maven-3.8.7\bin;C:\Users\Laura\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Git\usr\bin\vendor_perl;C:\Program Files\Git\usr\bin\core_perl;."/>
<property name="java.vm.info" value="mixed mode, sharing"/>
<property name="java.vendor" value="Oracle Corporation"/>
<property name="java.vm.version" value="17+35-LTS-2724"/>
<property name="sun.io.unicode.encoding" value="UnicodeLittle"/>
<property name="java.class.version" value="61.0"/>
</properties>
<testcase name="testStartGame" classname="test_BShip" time="0.698"/>
</testsuite>

69
target/surefire-reports/TEST-test_CollisionChecker.xml

@ -0,0 +1,69 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuite xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://maven.apache.org/surefire/maven-surefire-plugin/xsd/surefire-test-report-3.0.xsd" version="3.0" name="test_CollisionChecker" time="0.035" tests="9" errors="0" skipped="0" failures="0">
<properties>
<property name="java.specification.version" value="17"/>
<property name="sun.cpu.isalist" value="amd64"/>
<property name="sun.jnu.encoding" value="Cp1252"/>
<property name="sun.awt.enableExtraMouseButtons" value="true"/>
<property name="java.class.path" value="C:\Users\Laura\IdeaProjects\hellsgamers\target\test-classes;C:\Users\Laura\IdeaProjects\hellsgamers\target\classes;C:\Users\Laura\.m2\repository\junit\junit\4.13.2\junit-4.13.2.jar;C:\Users\Laura\.m2\repository\org\hamcrest\hamcrest-core\1.3\hamcrest-core-1.3.jar;C:\Users\Laura\.m2\repository\org\junit\jupiter\junit-jupiter\5.8.1\junit-jupiter-5.8.1.jar;C:\Users\Laura\.m2\repository\org\junit\jupiter\junit-jupiter-api\5.8.1\junit-jupiter-api-5.8.1.jar;C:\Users\Laura\.m2\repository\org\opentest4j\opentest4j\1.2.0\opentest4j-1.2.0.jar;C:\Users\Laura\.m2\repository\org\junit\platform\junit-platform-commons\1.8.1\junit-platform-commons-1.8.1.jar;C:\Users\Laura\.m2\repository\org\apiguardian\apiguardian-api\1.1.2\apiguardian-api-1.1.2.jar;C:\Users\Laura\.m2\repository\org\junit\jupiter\junit-jupiter-params\5.8.1\junit-jupiter-params-5.8.1.jar;C:\Users\Laura\.m2\repository\org\junit\jupiter\junit-jupiter-engine\5.8.1\junit-jupiter-engine-5.8.1.jar;C:\Users\Laura\.m2\repository\org\junit\platform\junit-platform-engine\1.8.1\junit-platform-engine-1.8.1.jar;"/>
<property name="java.vm.vendor" value="Oracle Corporation"/>
<property name="sun.arch.data.model" value="64"/>
<property name="user.variant" value=""/>
<property name="java.vendor.url" value="https://java.oracle.com/"/>
<property name="user.timezone" value="Europe/Berlin"/>
<property name="os.name" value="Windows 10"/>
<property name="java.vm.specification.version" value="17"/>
<property name="sun.java.launcher" value="SUN_STANDARD"/>
<property name="user.country" value="DE"/>
<property name="sun.boot.library.path" value="C:\Program Files\Java\jdk-17\bin"/>
<property name="sun.java.command" value="C:\Users\Laura\AppData\Local\Temp\surefire10052371721095918191\surefirebooter16426829952227023123.jar C:\Users\Laura\AppData\Local\Temp\surefire10052371721095918191 2023-02-09T20-07-21_749-jvmRun1 surefire554125048120407044tmp surefire_011862512070292878614tmp"/>
<property name="jdk.debug" value="release"/>
<property name="surefire.test.class.path" value="C:\Users\Laura\IdeaProjects\hellsgamers\target\test-classes;C:\Users\Laura\IdeaProjects\hellsgamers\target\classes;C:\Users\Laura\.m2\repository\junit\junit\4.13.2\junit-4.13.2.jar;C:\Users\Laura\.m2\repository\org\hamcrest\hamcrest-core\1.3\hamcrest-core-1.3.jar;C:\Users\Laura\.m2\repository\org\junit\jupiter\junit-jupiter\5.8.1\junit-jupiter-5.8.1.jar;C:\Users\Laura\.m2\repository\org\junit\jupiter\junit-jupiter-api\5.8.1\junit-jupiter-api-5.8.1.jar;C:\Users\Laura\.m2\repository\org\opentest4j\opentest4j\1.2.0\opentest4j-1.2.0.jar;C:\Users\Laura\.m2\repository\org\junit\platform\junit-platform-commons\1.8.1\junit-platform-commons-1.8.1.jar;C:\Users\Laura\.m2\repository\org\apiguardian\apiguardian-api\1.1.2\apiguardian-api-1.1.2.jar;C:\Users\Laura\.m2\repository\org\junit\jupiter\junit-jupiter-params\5.8.1\junit-jupiter-params-5.8.1.jar;C:\Users\Laura\.m2\repository\org\junit\jupiter\junit-jupiter-engine\5.8.1\junit-jupiter-engine-5.8.1.jar;C:\Users\Laura\.m2\repository\org\junit\platform\junit-platform-engine\1.8.1\junit-platform-engine-1.8.1.jar;"/>
<property name="sun.cpu.endian" value="little"/>
<property name="user.home" value="C:\Users\Laura"/>
<property name="user.language" value="de"/>
<property name="java.specification.vendor" value="Oracle Corporation"/>
<property name="java.version.date" value="2021-09-14"/>
<property name="java.home" value="C:\Program Files\Java\jdk-17"/>
<property name="file.separator" value="\"/>
<property name="basedir" value="C:\Users\Laura\IdeaProjects\hellsgamers"/>
<property name="java.vm.compressedOopsMode" value="32-bit"/>
<property name="line.separator" value="&#10;"/>
<property name="java.vm.specification.vendor" value="Oracle Corporation"/>
<property name="java.specification.name" value="Java Platform API Specification"/>
<property name="surefire.real.class.path" value="C:\Users\Laura\AppData\Local\Temp\surefire10052371721095918191\surefirebooter16426829952227023123.jar"/>
<property name="user.script" value=""/>
<property name="sun.management.compiler" value="HotSpot 64-Bit Tiered Compilers"/>
<property name="java.runtime.version" value="17+35-LTS-2724"/>
<property name="user.name" value="Laura"/>
<property name="path.separator" value=";"/>
<property name="os.version" value="10.0"/>
<property name="java.runtime.name" value="Java(TM) SE Runtime Environment"/>
<property name="file.encoding" value="Cp1252"/>
<property name="java.vm.name" value="Java HotSpot(TM) 64-Bit Server VM"/>
<property name="localRepository" value="C:\Users\Laura\.m2\repository"/>
<property name="java.vendor.url.bug" value="https://bugreport.java.com/bugreport/"/>
<property name="java.io.tmpdir" value="C:\Users\Laura\AppData\Local\Temp\"/>
<property name="java.version" value="17"/>
<property name="user.dir" value="C:\Users\Laura\IdeaProjects\hellsgamers"/>
<property name="os.arch" value="amd64"/>
<property name="java.vm.specification.name" value="Java Virtual Machine Specification"/>
<property name="sun.os.patch.level" value=""/>
<property name="native.encoding" value="Cp1252"/>
<property name="java.library.path" value="C:\Program Files\Java\jdk-17\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Users\Laura\bin;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\local\bin;C:\Program Files\Git\usr\bin;C:\Program Files\Git\usr\bin;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Users\Laura\bin;C:\Program Files\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files\Git\cmd;C:\Users\Laura\Desktop\apache-maven-3.8.7-bin\apache-maven-3.8.7\bin;C:\Users\Laura\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Git\usr\bin\vendor_perl;C:\Program Files\Git\usr\bin\core_perl;."/>
<property name="java.vm.info" value="mixed mode, sharing"/>
<property name="java.vendor" value="Oracle Corporation"/>
<property name="java.vm.version" value="17+35-LTS-2724"/>
<property name="sun.io.unicode.encoding" value="UnicodeLittle"/>
<property name="java.class.version" value="61.0"/>
</properties>
<testcase name="WhenBallYCoordinateIsLessOrEqualThanZero_didTouchTopOrBottomEdge_ReturnsTrue" classname="test_CollisionChecker" time="0.007"/>
<testcase name="WhenBallYCoordinateIsMoreOrEqualToMaxHeight_didTouchTopOrBottomEdge_ReturnsTrue" classname="test_CollisionChecker" time="0.002"/>
<testcase name="WhenBallRectangleIntersectsWithPaddleRectangle_didTouchPaddle_ReturnsTrue" classname="test_CollisionChecker" time="0.002"/>
<testcase name="WhenBallRectangleDoesNotIntersectsWithPaddleRectangle_didTouchPaddle_ReturnsFalse" classname="test_CollisionChecker" time="0.003"/>
<testcase name="WhenBallXCoordinateIsLessOrEqualThanZero_didTouchLeftEdge_ReturnsTrue" classname="test_CollisionChecker" time="0.001"/>
<testcase name="WhenBallXCoordinateIsLessThanMaxWidth_didTouchRightEdge_ReturnsFalse" classname="test_CollisionChecker" time="0.001"/>
<testcase name="WhenBallXCoordinateIsMoreOrEqualToMaxWidth_didTouchRightEdge_ReturnsTrue" classname="test_CollisionChecker" time="0.002"/>
<testcase name="WhenBallXCoordinateIsMoreThanZero_didTouchLeftEdge_ReturnsTrue" classname="test_CollisionChecker" time="0.002"/>
<testcase name="WhenBallYCoordinateIsMoreThanZeroAndLessThanMaxHeight_didTouchTopOrBottomEdge_ReturnsFalse" classname="test_CollisionChecker" time="0.002"/>
</testsuite>

61
target/surefire-reports/TEST-test_Ship.xml

@ -0,0 +1,61 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuite xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://maven.apache.org/surefire/maven-surefire-plugin/xsd/surefire-test-report-3.0.xsd" version="3.0" name="test_Ship" time="0.004" tests="1" errors="0" skipped="0" failures="0">
<properties>
<property name="java.specification.version" value="17"/>
<property name="sun.cpu.isalist" value="amd64"/>
<property name="sun.jnu.encoding" value="Cp1252"/>
<property name="sun.awt.enableExtraMouseButtons" value="true"/>
<property name="java.class.path" value="C:\Users\Laura\IdeaProjects\hellsgamers\target\test-classes;C:\Users\Laura\IdeaProjects\hellsgamers\target\classes;C:\Users\Laura\.m2\repository\junit\junit\4.13.2\junit-4.13.2.jar;C:\Users\Laura\.m2\repository\org\hamcrest\hamcrest-core\1.3\hamcrest-core-1.3.jar;C:\Users\Laura\.m2\repository\org\junit\jupiter\junit-jupiter\5.8.1\junit-jupiter-5.8.1.jar;C:\Users\Laura\.m2\repository\org\junit\jupiter\junit-jupiter-api\5.8.1\junit-jupiter-api-5.8.1.jar;C:\Users\Laura\.m2\repository\org\opentest4j\opentest4j\1.2.0\opentest4j-1.2.0.jar;C:\Users\Laura\.m2\repository\org\junit\platform\junit-platform-commons\1.8.1\junit-platform-commons-1.8.1.jar;C:\Users\Laura\.m2\repository\org\apiguardian\apiguardian-api\1.1.2\apiguardian-api-1.1.2.jar;C:\Users\Laura\.m2\repository\org\junit\jupiter\junit-jupiter-params\5.8.1\junit-jupiter-params-5.8.1.jar;C:\Users\Laura\.m2\repository\org\junit\jupiter\junit-jupiter-engine\5.8.1\junit-jupiter-engine-5.8.1.jar;C:\Users\Laura\.m2\repository\org\junit\platform\junit-platform-engine\1.8.1\junit-platform-engine-1.8.1.jar;"/>
<property name="java.vm.vendor" value="Oracle Corporation"/>
<property name="sun.arch.data.model" value="64"/>
<property name="user.variant" value=""/>
<property name="java.vendor.url" value="https://java.oracle.com/"/>
<property name="user.timezone" value="Europe/Berlin"/>
<property name="os.name" value="Windows 10"/>
<property name="java.vm.specification.version" value="17"/>
<property name="sun.java.launcher" value="SUN_STANDARD"/>
<property name="user.country" value="DE"/>
<property name="sun.boot.library.path" value="C:\Program Files\Java\jdk-17\bin"/>
<property name="sun.java.command" value="C:\Users\Laura\AppData\Local\Temp\surefire10052371721095918191\surefirebooter16426829952227023123.jar C:\Users\Laura\AppData\Local\Temp\surefire10052371721095918191 2023-02-09T20-07-21_749-jvmRun1 surefire554125048120407044tmp surefire_011862512070292878614tmp"/>
<property name="jdk.debug" value="release"/>
<property name="surefire.test.class.path" value="C:\Users\Laura\IdeaProjects\hellsgamers\target\test-classes;C:\Users\Laura\IdeaProjects\hellsgamers\target\classes;C:\Users\Laura\.m2\repository\junit\junit\4.13.2\junit-4.13.2.jar;C:\Users\Laura\.m2\repository\org\hamcrest\hamcrest-core\1.3\hamcrest-core-1.3.jar;C:\Users\Laura\.m2\repository\org\junit\jupiter\junit-jupiter\5.8.1\junit-jupiter-5.8.1.jar;C:\Users\Laura\.m2\repository\org\junit\jupiter\junit-jupiter-api\5.8.1\junit-jupiter-api-5.8.1.jar;C:\Users\Laura\.m2\repository\org\opentest4j\opentest4j\1.2.0\opentest4j-1.2.0.jar;C:\Users\Laura\.m2\repository\org\junit\platform\junit-platform-commons\1.8.1\junit-platform-commons-1.8.1.jar;C:\Users\Laura\.m2\repository\org\apiguardian\apiguardian-api\1.1.2\apiguardian-api-1.1.2.jar;C:\Users\Laura\.m2\repository\org\junit\jupiter\junit-jupiter-params\5.8.1\junit-jupiter-params-5.8.1.jar;C:\Users\Laura\.m2\repository\org\junit\jupiter\junit-jupiter-engine\5.8.1\junit-jupiter-engine-5.8.1.jar;C:\Users\Laura\.m2\repository\org\junit\platform\junit-platform-engine\1.8.1\junit-platform-engine-1.8.1.jar;"/>
<property name="sun.cpu.endian" value="little"/>
<property name="user.home" value="C:\Users\Laura"/>
<property name="user.language" value="de"/>
<property name="java.specification.vendor" value="Oracle Corporation"/>
<property name="java.version.date" value="2021-09-14"/>
<property name="java.home" value="C:\Program Files\Java\jdk-17"/>
<property name="file.separator" value="\"/>
<property name="basedir" value="C:\Users\Laura\IdeaProjects\hellsgamers"/>
<property name="java.vm.compressedOopsMode" value="32-bit"/>
<property name="line.separator" value="&#10;"/>
<property name="java.vm.specification.vendor" value="Oracle Corporation"/>
<property name="java.specification.name" value="Java Platform API Specification"/>
<property name="surefire.real.class.path" value="C:\Users\Laura\AppData\Local\Temp\surefire10052371721095918191\surefirebooter16426829952227023123.jar"/>
<property name="user.script" value=""/>
<property name="sun.management.compiler" value="HotSpot 64-Bit Tiered Compilers"/>
<property name="java.runtime.version" value="17+35-LTS-2724"/>
<property name="user.name" value="Laura"/>
<property name="path.separator" value=";"/>
<property name="os.version" value="10.0"/>
<property name="java.runtime.name" value="Java(TM) SE Runtime Environment"/>
<property name="file.encoding" value="Cp1252"/>
<property name="java.vm.name" value="Java HotSpot(TM) 64-Bit Server VM"/>
<property name="localRepository" value="C:\Users\Laura\.m2\repository"/>
<property name="java.vendor.url.bug" value="https://bugreport.java.com/bugreport/"/>
<property name="java.io.tmpdir" value="C:\Users\Laura\AppData\Local\Temp\"/>
<property name="java.version" value="17"/>
<property name="user.dir" value="C:\Users\Laura\IdeaProjects\hellsgamers"/>
<property name="os.arch" value="amd64"/>
<property name="java.vm.specification.name" value="Java Virtual Machine Specification"/>
<property name="sun.os.patch.level" value=""/>
<property name="native.encoding" value="Cp1252"/>
<property name="java.library.path" value="C:\Program Files\Java\jdk-17\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Users\Laura\bin;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\local\bin;C:\Program Files\Git\usr\bin;C:\Program Files\Git\usr\bin;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Users\Laura\bin;C:\Program Files\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files\Git\cmd;C:\Users\Laura\Desktop\apache-maven-3.8.7-bin\apache-maven-3.8.7\bin;C:\Users\Laura\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Git\usr\bin\vendor_perl;C:\Program Files\Git\usr\bin\core_perl;."/>
<property name="java.vm.info" value="mixed mode, sharing"/>
<property name="java.vendor" value="Oracle Corporation"/>
<property name="java.vm.version" value="17+35-LTS-2724"/>
<property name="sun.io.unicode.encoding" value="UnicodeLittle"/>
<property name="java.class.version" value="61.0"/>
</properties>
<testcase name="counter" classname="test_Ship" time="0.001"/>
</testsuite>

63
target/surefire-reports/TEST-test_Snake.xml

@ -0,0 +1,63 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuite xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://maven.apache.org/surefire/maven-surefire-plugin/xsd/surefire-test-report-3.0.xsd" version="3.0" name="test_Snake" time="0.015" tests="3" errors="0" skipped="0" failures="0">
<properties>
<property name="java.specification.version" value="17"/>
<property name="sun.cpu.isalist" value="amd64"/>
<property name="sun.jnu.encoding" value="Cp1252"/>
<property name="sun.awt.enableExtraMouseButtons" value="true"/>
<property name="java.class.path" value="C:\Users\Laura\IdeaProjects\hellsgamers\target\test-classes;C:\Users\Laura\IdeaProjects\hellsgamers\target\classes;C:\Users\Laura\.m2\repository\junit\junit\4.13.2\junit-4.13.2.jar;C:\Users\Laura\.m2\repository\org\hamcrest\hamcrest-core\1.3\hamcrest-core-1.3.jar;C:\Users\Laura\.m2\repository\org\junit\jupiter\junit-jupiter\5.8.1\junit-jupiter-5.8.1.jar;C:\Users\Laura\.m2\repository\org\junit\jupiter\junit-jupiter-api\5.8.1\junit-jupiter-api-5.8.1.jar;C:\Users\Laura\.m2\repository\org\opentest4j\opentest4j\1.2.0\opentest4j-1.2.0.jar;C:\Users\Laura\.m2\repository\org\junit\platform\junit-platform-commons\1.8.1\junit-platform-commons-1.8.1.jar;C:\Users\Laura\.m2\repository\org\apiguardian\apiguardian-api\1.1.2\apiguardian-api-1.1.2.jar;C:\Users\Laura\.m2\repository\org\junit\jupiter\junit-jupiter-params\5.8.1\junit-jupiter-params-5.8.1.jar;C:\Users\Laura\.m2\repository\org\junit\jupiter\junit-jupiter-engine\5.8.1\junit-jupiter-engine-5.8.1.jar;C:\Users\Laura\.m2\repository\org\junit\platform\junit-platform-engine\1.8.1\junit-platform-engine-1.8.1.jar;"/>
<property name="java.vm.vendor" value="Oracle Corporation"/>
<property name="sun.arch.data.model" value="64"/>
<property name="user.variant" value=""/>
<property name="java.vendor.url" value="https://java.oracle.com/"/>
<property name="user.timezone" value="Europe/Berlin"/>
<property name="os.name" value="Windows 10"/>
<property name="java.vm.specification.version" value="17"/>
<property name="sun.java.launcher" value="SUN_STANDARD"/>
<property name="user.country" value="DE"/>
<property name="sun.boot.library.path" value="C:\Program Files\Java\jdk-17\bin"/>
<property name="sun.java.command" value="C:\Users\Laura\AppData\Local\Temp\surefire10052371721095918191\surefirebooter16426829952227023123.jar C:\Users\Laura\AppData\Local\Temp\surefire10052371721095918191 2023-02-09T20-07-21_749-jvmRun1 surefire554125048120407044tmp surefire_011862512070292878614tmp"/>
<property name="jdk.debug" value="release"/>
<property name="surefire.test.class.path" value="C:\Users\Laura\IdeaProjects\hellsgamers\target\test-classes;C:\Users\Laura\IdeaProjects\hellsgamers\target\classes;C:\Users\Laura\.m2\repository\junit\junit\4.13.2\junit-4.13.2.jar;C:\Users\Laura\.m2\repository\org\hamcrest\hamcrest-core\1.3\hamcrest-core-1.3.jar;C:\Users\Laura\.m2\repository\org\junit\jupiter\junit-jupiter\5.8.1\junit-jupiter-5.8.1.jar;C:\Users\Laura\.m2\repository\org\junit\jupiter\junit-jupiter-api\5.8.1\junit-jupiter-api-5.8.1.jar;C:\Users\Laura\.m2\repository\org\opentest4j\opentest4j\1.2.0\opentest4j-1.2.0.jar;C:\Users\Laura\.m2\repository\org\junit\platform\junit-platform-commons\1.8.1\junit-platform-commons-1.8.1.jar;C:\Users\Laura\.m2\repository\org\apiguardian\apiguardian-api\1.1.2\apiguardian-api-1.1.2.jar;C:\Users\Laura\.m2\repository\org\junit\jupiter\junit-jupiter-params\5.8.1\junit-jupiter-params-5.8.1.jar;C:\Users\Laura\.m2\repository\org\junit\jupiter\junit-jupiter-engine\5.8.1\junit-jupiter-engine-5.8.1.jar;C:\Users\Laura\.m2\repository\org\junit\platform\junit-platform-engine\1.8.1\junit-platform-engine-1.8.1.jar;"/>
<property name="sun.cpu.endian" value="little"/>
<property name="user.home" value="C:\Users\Laura"/>
<property name="user.language" value="de"/>
<property name="java.specification.vendor" value="Oracle Corporation"/>
<property name="java.version.date" value="2021-09-14"/>
<property name="java.home" value="C:\Program Files\Java\jdk-17"/>
<property name="file.separator" value="\"/>
<property name="basedir" value="C:\Users\Laura\IdeaProjects\hellsgamers"/>
<property name="java.vm.compressedOopsMode" value="32-bit"/>
<property name="line.separator" value="&#10;"/>
<property name="java.vm.specification.vendor" value="Oracle Corporation"/>
<property name="java.specification.name" value="Java Platform API Specification"/>
<property name="surefire.real.class.path" value="C:\Users\Laura\AppData\Local\Temp\surefire10052371721095918191\surefirebooter16426829952227023123.jar"/>
<property name="user.script" value=""/>
<property name="sun.management.compiler" value="HotSpot 64-Bit Tiered Compilers"/>
<property name="java.runtime.version" value="17+35-LTS-2724"/>
<property name="user.name" value="Laura"/>
<property name="path.separator" value=";"/>
<property name="os.version" value="10.0"/>
<property name="java.runtime.name" value="Java(TM) SE Runtime Environment"/>
<property name="file.encoding" value="Cp1252"/>
<property name="java.vm.name" value="Java HotSpot(TM) 64-Bit Server VM"/>
<property name="localRepository" value="C:\Users\Laura\.m2\repository"/>
<property name="java.vendor.url.bug" value="https://bugreport.java.com/bugreport/"/>
<property name="java.io.tmpdir" value="C:\Users\Laura\AppData\Local\Temp\"/>
<property name="java.version" value="17"/>
<property name="user.dir" value="C:\Users\Laura\IdeaProjects\hellsgamers"/>
<property name="os.arch" value="amd64"/>
<property name="java.vm.specification.name" value="Java Virtual Machine Specification"/>
<property name="sun.os.patch.level" value=""/>
<property name="native.encoding" value="Cp1252"/>
<property name="java.library.path" value="C:\Program Files\Java\jdk-17\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Users\Laura\bin;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\local\bin;C:\Program Files\Git\usr\bin;C:\Program Files\Git\usr\bin;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Users\Laura\bin;C:\Program Files\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files\Git\cmd;C:\Users\Laura\Desktop\apache-maven-3.8.7-bin\apache-maven-3.8.7\bin;C:\Users\Laura\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Git\usr\bin\vendor_perl;C:\Program Files\Git\usr\bin\core_perl;."/>
<property name="java.vm.info" value="mixed mode, sharing"/>
<property name="java.vendor" value="Oracle Corporation"/>
<property name="java.vm.version" value="17+35-LTS-2724"/>
<property name="sun.io.unicode.encoding" value="UnicodeLittle"/>
<property name="java.class.version" value="61.0"/>
</properties>
<testcase name="testIsSelfColliding" classname="test_Snake" time="0.006"/>
<testcase name="testReset" classname="test_Snake" time="0.002"/>
<testcase name="testUpdate" classname="test_Snake" time="0.003"/>
</testsuite>

4
target/surefire-reports/test_AIGridGUI.txt

@ -0,0 +1,4 @@
-------------------------------------------------------------------------------
Test set: test_AIGridGUI
-------------------------------------------------------------------------------
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.84 s - in test_AIGridGUI

4
target/surefire-reports/test_BShip.txt

@ -0,0 +1,4 @@
-------------------------------------------------------------------------------
Test set: test_BShip
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.7 s - in test_BShip

4
target/surefire-reports/test_CollisionChecker.txt

@ -0,0 +1,4 @@
-------------------------------------------------------------------------------
Test set: test_CollisionChecker
-------------------------------------------------------------------------------
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.035 s - in test_CollisionChecker

4
target/surefire-reports/test_Ship.txt

@ -0,0 +1,4 @@
-------------------------------------------------------------------------------
Test set: test_Ship
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 s - in test_Ship

4
target/surefire-reports/test_Snake.txt

@ -0,0 +1,4 @@
-------------------------------------------------------------------------------
Test set: test_Snake
-------------------------------------------------------------------------------
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 s - in test_Snake
Loading…
Cancel
Save