diff --git a/.idea/libraries/Drools_6_2_0.xml b/.idea/libraries/Drools_6_2_0.xml
deleted file mode 100644
index 0a7099b..0000000
--- a/.idea/libraries/Drools_6_2_0.xml
+++ /dev/null
@@ -1,93 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
index e0844bc..0548357 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -1,6 +1,6 @@
-
+
\ No newline at end of file
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 40cd9c3..5ac6fdf 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -2,8 +2,13 @@
+
+
-
+
+
+
+
@@ -12,52 +17,36 @@
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
+
+
-
-
+
+
+
+
@@ -111,9 +100,9 @@
-
+
@@ -124,7 +113,8 @@
-
+
+
@@ -136,8 +126,8 @@
-
+
@@ -170,7 +160,7 @@
-
+
@@ -196,7 +186,7 @@
-
+
@@ -205,7 +195,7 @@
-
+
@@ -220,18 +210,12 @@
-
-
-
-
-
-
-
-
+
-
-
+
+
+
@@ -240,16 +224,14 @@
-
-
+
-
-
+
+
-
@@ -277,6 +259,10 @@
+
+
+
+
1562341097724
@@ -495,35 +481,7 @@
1563278597504
-
- 1563281180742
-
-
-
- 1563281180742
-
-
- 1563283451442
-
-
-
- 1563283451442
-
-
- 1563284513496
-
-
-
- 1563284513496
-
-
- 1563284689038
-
-
-
- 1563284689038
-
-
+
@@ -536,34 +494,52 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
@@ -572,10 +548,10 @@
-
-
-
-
+
+
+
+
@@ -615,6 +591,7 @@
+
@@ -637,12 +614,10 @@
-
-
-
-
+
+
@@ -683,80 +658,71 @@
-
+
+
-
-
+
+
+
+
+
-
+
-
-
+
+
+
+
+
-
+
-
-
+
+
-
+
-
-
-
-
-
+
+
-
+
-
-
+
+
-
+
-
+
-
-
-
-
-
-
-
-
-
-
+
-
-
+
+
-
-
-
-
-
-
-
-
+
+
+
+
@@ -778,6 +744,7 @@
+ No facets are configured
+ 1.8
@@ -823,6 +792,7 @@
+ Maven: Arquillian JUnit:Release
diff --git a/Alpha.iml b/Alpha.iml
index a0088ce..e2425bc 100644
--- a/Alpha.iml
+++ b/Alpha.iml
@@ -44,7 +44,6 @@
-
diff --git a/src/FitnessTest_M_Test.java b/src/FitnessTest_M_Test.java
deleted file mode 100644
index f39c00d..0000000
--- a/src/FitnessTest_M_Test.java
+++ /dev/null
@@ -1,104 +0,0 @@
-import org.junit.Before;
-import org.junit.Test;
-
-import static org.hamcrest.MatcherAssert.assertThat;
-import static org.hamcrest.core.IsEqual.equalTo;
-
-public class FitnessTest_M_Test {
- private FitnessTest_M fitnessTest_M;
-
- @Before
- public void setup() {
- fitnessTest_M = new FitnessTest_M();
- }
-
- @Test
- public void normalBmi() {
- //arrange
- FitnessTest_M fitnessTest_M = new FitnessTest_M();
- float height = (float) 1.70;
- float weight = 70;
- int expectedResult = 24;
-
- //act
- int bmiResult = fitnessTest_M.calculateBmi(height, weight);
-
- //assert
- assertThat("", bmiResult, equalTo(expectedResult));
- }
-
- @Test
- public void mediumBmi() {
- //arrange
- FitnessTest_M fitnessTest_M = new FitnessTest_M();
- float height = (float) 1.80;
- float weight = 90;
- int expectedResult = 27;
-
- //act
- int bmiResult = fitnessTest_M.calculateBmi(height, weight);
-
- //assert
- assertThat("", bmiResult, equalTo(expectedResult));
- }
-
- @Test
- public void heavyBmi() {
- //arrange
- FitnessTest_M fitnessTest_M = new FitnessTest_M();
- float height = (float) 1.60;
- float weight = 100;
- int expectedResult = 39;
-
- //act
- int bmiResult = fitnessTest_M.calculateBmi(height, weight);
-
- //assert
- assertThat("", bmiResult, equalTo(expectedResult));
- }
-
- @Test
- public void lightBmi() {
- //arrange
- FitnessTest_M fitnessTest_M = new FitnessTest_M();
- float height = (float) 1.75;
- float weight = 50;
- int expectedResult = 16;
-
- //act
- int bmiResult = fitnessTest_M.calculateBmi(height, weight);
-
- //assert
- assertThat("", bmiResult, equalTo(expectedResult));
- }
-
- @Test
- public void monsterBmi() {
- //arrange
- FitnessTest_M fitnessTest_M = new FitnessTest_M();
- float height = (float) 3.70;
- float weight = 3000;
- int expectedResult = 219;
-
- //act
- int bmiResult = fitnessTest_M.calculateBmi(height, weight);
-
- //assert
- assertThat("", bmiResult, equalTo(expectedResult));
- }
-
- @Test
- public void antBmi() {
- //arrange
- FitnessTest_M fitnessTest_M = new FitnessTest_M();
- float height = (float) 0.20;
- float weight = (float) 0.30;
- int expectedResult = 7;
-
- //act
- int bmiResult = fitnessTest_M.calculateBmi(height, weight);
-
- //assert
- assertThat("", bmiResult, equalTo(expectedResult));
- }
-}
diff --git a/src/Main.java b/src/Main.java
index 2976e22..4737088 100644
--- a/src/Main.java
+++ b/src/Main.java
@@ -1,6 +1,6 @@
import javax.swing.*;
-import java.awt.*;
-import java.awt.event.*;
+ import java.awt.*;
+ import java.awt.event.*;
public class Main {
//Variablen GUI
@@ -17,7 +17,7 @@ public class Main {
JMenu mF= null;
JMenu mH = null;
JMenu mI = null;
-
+
//Konstruktor Gui
public Main(){
@@ -43,7 +43,6 @@ public class Main {
menuItem2 = new JMenuItem("Exit"); mF.add(menuItem2);
menuItem3 = new JMenuItem("Über"); mI.add(menuItem3);
-
menuItem1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent ie) {
try {
@@ -55,7 +54,6 @@ public class Main {
mn.fr.setVisible(true);
//System.exit(0);
-
}catch (Exception ex) {
JOptionPane.showMessageDialog(null, "Fehler");
}
@@ -95,7 +93,7 @@ public class Main {
JButton DTools = new JButton("Daniel"); DTools.setBounds(100, 100, 100, 40);
buttonGroup.add(DTools); Panele.add(DTools);
-
+
JButton ETools = new JButton("Eugen"); ETools.setBounds(200, 200, 100, 40);
buttonGroup.add(ETools); Panele.add(ETools);
@@ -106,9 +104,9 @@ public class Main {
public void actionPerformed(ActionEvent ie) {
try {
- JOptionPane.showMessageDialog(fr, "Aufruf von Daniels Tools");
+ JOptionPane.showMessageDialog(fr, "Aufruf von Daniel Tools");
fr.setVisible(false);
- Tage_D gb = new Tage_D();
+ Tage_D tage = new Tage_D();
}catch (Exception ex) {
JOptionPane.showMessageDialog(null, "Fehler beim Aufruf von Daniels Tools");
@@ -136,12 +134,10 @@ public class Main {
MTools.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent ie) {
try {
-
JOptionPane.showMessageDialog(fr, "Aufruf von Michaels Tools");
fr.setVisible(false);
FitnessTest_M M = new FitnessTest_M();
-
}catch (Exception ex) {
JOptionPane.showMessageDialog(null, "Fehler beim Aufruf von Michaels Tools");
}
@@ -155,6 +151,5 @@ public class Main {
public static void main(String[] args) {
Main mn = new Main();
-
}
}
\ No newline at end of file
diff --git a/src/Tage_D.java b/src/Tage_D.java
index f7f9769..dcb8cc8 100644
--- a/src/Tage_D.java
+++ b/src/Tage_D.java
@@ -1,12 +1,11 @@
+import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
-import javax.swing.JOptionPane;
-import javax.swing.*;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
-import java.util.Random;
import java.util.Date;
+import java.util.Random;
public class Tage_D extends JFrame {