diff --git a/out/production/Robot_Factory_PR/Main.class b/out/production/Robot_Factory_PR/Main.class new file mode 100644 index 0000000..2f9982d Binary files /dev/null and b/out/production/Robot_Factory_PR/Main.class differ diff --git a/out/production/Robot_Factory_PR/domain/RobotType.class b/out/production/Robot_Factory_PR/domain/RobotType.class index 055cd6e..815b94b 100644 Binary files a/out/production/Robot_Factory_PR/domain/RobotType.class and b/out/production/Robot_Factory_PR/domain/RobotType.class differ diff --git a/out/production/Robot_Factory_PR/src/domain/C3PO.class b/out/production/Robot_Factory_PR/src/domain/C3PO.class new file mode 100644 index 0000000..372403a Binary files /dev/null and b/out/production/Robot_Factory_PR/src/domain/C3PO.class differ diff --git a/out/production/Robot_Factory_PR/src/domain/Factory.class b/out/production/Robot_Factory_PR/src/domain/Factory.class new file mode 100644 index 0000000..29dd94c Binary files /dev/null and b/out/production/Robot_Factory_PR/src/domain/Factory.class differ diff --git a/out/production/Robot_Factory_PR/src/domain/Nexus6.class b/out/production/Robot_Factory_PR/src/domain/Nexus6.class new file mode 100644 index 0000000..eb22343 Binary files /dev/null and b/out/production/Robot_Factory_PR/src/domain/Nexus6.class differ diff --git a/out/production/Robot_Factory_PR/src/domain/R2D2.class b/out/production/Robot_Factory_PR/src/domain/R2D2.class new file mode 100644 index 0000000..99e5aab Binary files /dev/null and b/out/production/Robot_Factory_PR/src/domain/R2D2.class differ diff --git a/out/production/Robot_Factory_PR/src/domain/Robot.class b/out/production/Robot_Factory_PR/src/domain/Robot.class new file mode 100644 index 0000000..d139f8c Binary files /dev/null and b/out/production/Robot_Factory_PR/src/domain/Robot.class differ diff --git a/out/production/Robot_Factory_PR/src/domain/RobotType.class b/out/production/Robot_Factory_PR/src/domain/RobotType.class new file mode 100644 index 0000000..d534e96 Binary files /dev/null and b/out/production/Robot_Factory_PR/src/domain/RobotType.class differ diff --git a/out/production/Robot_Factory_PR/src/facade/FactorySystem.class b/out/production/Robot_Factory_PR/src/facade/FactorySystem.class new file mode 100644 index 0000000..bd710b3 Binary files /dev/null and b/out/production/Robot_Factory_PR/src/facade/FactorySystem.class differ diff --git a/out/production/Robot_Factory_PR/src/ui/UI$1.class b/out/production/Robot_Factory_PR/src/ui/UI$1.class new file mode 100644 index 0000000..851bd42 Binary files /dev/null and b/out/production/Robot_Factory_PR/src/ui/UI$1.class differ diff --git a/out/production/Robot_Factory_PR/src/ui/UI.class b/out/production/Robot_Factory_PR/src/ui/UI.class new file mode 100644 index 0000000..685eb77 Binary files /dev/null and b/out/production/Robot_Factory_PR/src/ui/UI.class differ diff --git a/out/production/Robot_Factory_PR/src/utility/interfaces/Robot.class b/out/production/Robot_Factory_PR/src/utility/interfaces/Robot.class new file mode 100644 index 0000000..39dc03c Binary files /dev/null and b/out/production/Robot_Factory_PR/src/utility/interfaces/Robot.class differ diff --git a/out/production/Robot_Factory_PR/src/utility/interfaces/RobotControl.class b/out/production/Robot_Factory_PR/src/utility/interfaces/RobotControl.class new file mode 100644 index 0000000..9366ea5 Binary files /dev/null and b/out/production/Robot_Factory_PR/src/utility/interfaces/RobotControl.class differ diff --git a/out/production/Robot_Factory_PR/src/utility/interfaces/RobotInstructions.class b/out/production/Robot_Factory_PR/src/utility/interfaces/RobotInstructions.class new file mode 100644 index 0000000..1c6d5b6 Binary files /dev/null and b/out/production/Robot_Factory_PR/src/utility/interfaces/RobotInstructions.class differ diff --git a/out/production/Robot_Factory_PR/src/utility/robot_exceptions/ArrayEmptyException.class b/out/production/Robot_Factory_PR/src/utility/robot_exceptions/ArrayEmptyException.class new file mode 100644 index 0000000..f6344c7 Binary files /dev/null and b/out/production/Robot_Factory_PR/src/utility/robot_exceptions/ArrayEmptyException.class differ diff --git a/out/production/Robot_Factory_PR/src/utility/robot_exceptions/ExceptionStorage.class b/out/production/Robot_Factory_PR/src/utility/robot_exceptions/ExceptionStorage.class new file mode 100644 index 0000000..9379318 Binary files /dev/null and b/out/production/Robot_Factory_PR/src/utility/robot_exceptions/ExceptionStorage.class differ diff --git a/out/production/Robot_Factory_PR/src/utility/robot_exceptions/RobotException.class b/out/production/Robot_Factory_PR/src/utility/robot_exceptions/RobotException.class new file mode 100644 index 0000000..2137eda Binary files /dev/null and b/out/production/Robot_Factory_PR/src/utility/robot_exceptions/RobotException.class differ diff --git a/out/production/Robot_Factory_PR/src/utility/robot_exceptions/RobotIllegalStateException.class b/out/production/Robot_Factory_PR/src/utility/robot_exceptions/RobotIllegalStateException.class new file mode 100644 index 0000000..2bbc4b0 Binary files /dev/null and b/out/production/Robot_Factory_PR/src/utility/robot_exceptions/RobotIllegalStateException.class differ diff --git a/out/production/Robot_Factory_PR/src/utility/robot_exceptions/RobotMagicValueException.class b/out/production/Robot_Factory_PR/src/utility/robot_exceptions/RobotMagicValueException.class new file mode 100644 index 0000000..cbd844a Binary files /dev/null and b/out/production/Robot_Factory_PR/src/utility/robot_exceptions/RobotMagicValueException.class differ diff --git a/out/production/Robot_Factory_PR/src/utility/robot_exceptions/robotExceptions.class b/out/production/Robot_Factory_PR/src/utility/robot_exceptions/robotExceptions.class new file mode 100644 index 0000000..3cc34b6 Binary files /dev/null and b/out/production/Robot_Factory_PR/src/utility/robot_exceptions/robotExceptions.class differ diff --git a/out/production/Robot_Factory_PR/tests/tests/C3POTest.class b/out/production/Robot_Factory_PR/tests/tests/C3POTest.class new file mode 100644 index 0000000..f2b3d23 Binary files /dev/null and b/out/production/Robot_Factory_PR/tests/tests/C3POTest.class differ diff --git a/out/production/Robot_Factory_PR/tests/tests/R2D2Test.class b/out/production/Robot_Factory_PR/tests/tests/R2D2Test.class new file mode 100644 index 0000000..65e1775 Binary files /dev/null and b/out/production/Robot_Factory_PR/tests/tests/R2D2Test.class differ diff --git a/out/production/Robot_Factory_PR/utility/robot_exceptions/RobotException.class b/out/production/Robot_Factory_PR/utility/robot_exceptions/RobotException.class index bfe79f8..fd4917c 100644 Binary files a/out/production/Robot_Factory_PR/utility/robot_exceptions/RobotException.class and b/out/production/Robot_Factory_PR/utility/robot_exceptions/RobotException.class differ diff --git a/out/production/Robot_Factory_PR/utility/robot_exceptions/robotExceptions.class b/out/production/Robot_Factory_PR/utility/robot_exceptions/robotExceptions.class index a50f274..9275771 100644 Binary files a/out/production/Robot_Factory_PR/utility/robot_exceptions/robotExceptions.class and b/out/production/Robot_Factory_PR/utility/robot_exceptions/robotExceptions.class differ diff --git a/out/test/Robot_Factory_PR/tests/C3POTest.class b/out/test/Robot_Factory_PR/tests/C3POTest.class index 110e2e3..a4992af 100644 Binary files a/out/test/Robot_Factory_PR/tests/C3POTest.class and b/out/test/Robot_Factory_PR/tests/C3POTest.class differ diff --git a/out/test/Robot_Factory_PR/tests/FactoryTest.class b/out/test/Robot_Factory_PR/tests/FactoryTest.class new file mode 100644 index 0000000..97d7fbb Binary files /dev/null and b/out/test/Robot_Factory_PR/tests/FactoryTest.class differ diff --git a/out/test/Robot_Factory_PR/tests/R2D2Test.class b/out/test/Robot_Factory_PR/tests/R2D2Test.class index 71b9f98..257975b 100644 Binary files a/out/test/Robot_Factory_PR/tests/R2D2Test.class and b/out/test/Robot_Factory_PR/tests/R2D2Test.class differ diff --git a/src/domain/Robot.java b/src/domain/Robot.java index 3851d4c..4c7e057 100644 --- a/src/domain/Robot.java +++ b/src/domain/Robot.java @@ -1,5 +1,5 @@ package domain; -import utility.interfaces.RobotControl; + import utility.robot_exceptions.ExceptionStorage; import utility.robot_exceptions.RobotException; import utility.robot_exceptions.robotExceptions; diff --git a/src/domain/RobotType.java b/src/domain/RobotType.java index 9ace46a..db843d4 100644 --- a/src/domain/RobotType.java +++ b/src/domain/RobotType.java @@ -1,4 +1,5 @@ package domain; + public enum RobotType { C3PO("C3PO"), R2D2("R2D2"), Nexus6("Nexus6"); private final String type; diff --git a/src/utility/robot_exceptions/RobotException.java b/src/utility/robot_exceptions/RobotException.java index 20c5e96..3e95aec 100644 --- a/src/utility/robot_exceptions/RobotException.java +++ b/src/utility/robot_exceptions/RobotException.java @@ -20,6 +20,7 @@ public class RobotException extends Exception{ } @Override + // länge auffüllen für ebene Liste public String toString(){ return getMessage(this.currentType, this.name); } diff --git a/src/utility/robot_exceptions/robotExceptions.java b/src/utility/robot_exceptions/robotExceptions.java index 8ac8e3d..045d398 100644 --- a/src/utility/robot_exceptions/robotExceptions.java +++ b/src/utility/robot_exceptions/robotExceptions.java @@ -3,7 +3,7 @@ package utility.robot_exceptions; public enum robotExceptions { ILLEGALSTATE("ist in einem illegalen Zustand"), MAGICVALUE("Magic value"), - EMPTYARRAY("leer"); + EMPTYARRAY("hat ein leeres Array bekommen."); final String message; diff --git a/tests/tests/C3POTest.java b/tests/tests/C3POTest.java index 814aa40..28565aa 100644 --- a/tests/tests/C3POTest.java +++ b/tests/tests/C3POTest.java @@ -61,7 +61,7 @@ class C3POTest { try{ String solution = c3po.speak(new int[]{}); }catch(RobotException re){ - assertEquals(0, "r2d2 leer".compareTo(re.getMessage())); + assertEquals(0, "r2d2 hat ein leeres Array bekommen.".compareTo(re.getMessage())); } } @@ -151,7 +151,7 @@ class C3POTest { @Test void arrayEmptyException(){ - String expectedMessage = "Herbert leer"; + String expectedMessage = "Herbert hat ein leeres Array bekommen."; try{ int[] solution = c3po.think(new int[0]); }catch(RobotException re){ @@ -166,7 +166,7 @@ class C3POTest { } @Test void testExceptionHistory() { - String expectedMessage = "Herbert leer"; + String expectedMessage = "Herbert hat ein leeres Array bekommen."; try{ int[] solution = c3po.think(new int[0]); }catch(RobotException re){ diff --git a/tests/tests/FactoryTest.java b/tests/tests/FactoryTest.java new file mode 100644 index 0000000..5041cf4 --- /dev/null +++ b/tests/tests/FactoryTest.java @@ -0,0 +1,26 @@ +package tests; + +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +class FactoryTest { + + @Test + void robotListToCollection() { + + } + + @Test + void getRobotList() { + + } + + @Test + void buildNewRobot() { + } + + @Test + void getRobotOfList() { + } +} \ No newline at end of file diff --git a/tests/tests/R2D2Test.java b/tests/tests/R2D2Test.java index a7ccdb0..ec50f7e 100644 --- a/tests/tests/R2D2Test.java +++ b/tests/tests/R2D2Test.java @@ -1,11 +1,9 @@ package tests; import domain.R2D2; -import domain.RobotType; -import org.junit.jupiter.api.Test; import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; import utility.robot_exceptions.RobotException; -import utility.robot_exceptions.RobotMagicValueException; import static org.junit.jupiter.api.Assertions.*; @@ -48,7 +46,7 @@ class R2D2Test { try{ String solution = r2d2.speak(new int[]{}); }catch(RobotException re){ - assertEquals(0, "r2d2 leer".compareTo(re.getMessage())); + assertEquals(0, "r2d2 hat ein leeres Array bekommen.".compareTo(re.getMessage())); } }