Browse Source

Nur Einreihen des Codes

Mohamed
Adah Boukhari 5 years ago
parent
commit
951df223d5
  1. BIN
      Budget Projekt/bin/MeinBudgetView/LoginFrame.class
  2. BIN
      Budget Projekt/bin/MeinBudgetView/MeinGui$1.class
  3. BIN
      Budget Projekt/bin/MeinBudgetView/MeinGui.class
  4. BIN
      Budget Projekt/bin/MeinBudgetView/MyTest.class
  5. 2
      Budget Projekt/src/MeinBudgetView/LoginFrame.java
  6. 3
      Budget Projekt/src/MeinBudgetView/MeinGui.java
  7. 11
      Budget Projekt/src/MeinBudgetView/MyTest.java

BIN
Budget Projekt/bin/MeinBudgetView/LoginFrame.class

BIN
Budget Projekt/bin/MeinBudgetView/MeinGui$1.class

BIN
Budget Projekt/bin/MeinBudgetView/MeinGui.class

BIN
Budget Projekt/bin/MeinBudgetView/MyTest.class

2
Budget Projekt/src/MeinBudgetView/LoginFrame.java

@ -31,7 +31,7 @@ public class LoginFrame extends JFrame implements ActionListener {
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setBounds(100, 100, 450, 300);
contentPane = new JPanel();
contentPane.setBackground(Color.CYAN);
contentPane.setBackground(Color.orange);
contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
setContentPane(contentPane);
contentPane.setLayout(null);

3
Budget Projekt/src/MeinBudgetView/MeinGui.java

@ -55,13 +55,12 @@ public class MeinGui extends JFrame implements ActionListener {
private static JLabel budgetBetrag;
private static JTable myTable;
public MeinGui() {
setTitle("Budget");
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setBounds(100, 100, 654, 368);
contentPane = new JPanel();
contentPane.setBackground(Color.CYAN);
contentPane.setBackground(Color.orange);
contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
setContentPane(contentPane);
contentPane.setLayout(null);

11
Budget Projekt/src/MeinBudgetView/MyTest.java

@ -45,12 +45,13 @@ class MyTest {
assertNotEquals("-" + 4321.0 + "€", MeinGui.setExpensesView());
}
@Test
public void testSetBenutzername() {
String result = String.valueOf(LoginFrame.benutzername);
assertEquals(result, LoginFrame.setBenutzername());
assertNotEquals(result + " ", LoginFrame.setBenutzername());
assertNotEquals(null, LoginFrame.setBenutzername());
assertEquals(result, LoginFrame.setBenutzername());
assertNotEquals(result + " ", LoginFrame.setBenutzername());
assertNotEquals(null, LoginFrame.setBenutzername());
}
@ -58,8 +59,8 @@ class MyTest {
public void testSetPassword() {
String result = String.valueOf(LoginFrame.passwordField);
assertEquals(result, LoginFrame.setPassword());
assertNotEquals(result + " ", LoginFrame.setPassword());
assertNotEquals(null, LoginFrame.setPassword());
assertNotEquals(result + " ", LoginFrame.setPassword());
assertNotEquals(null, LoginFrame.setPassword());
}

Loading…
Cancel
Save