|
|
@ -32,4 +32,18 @@ class MyTest { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
public void testSetExpensesView() { |
|
|
|
|
|
|
|
MeinGui.expenses = 1234; |
|
|
|
assertEquals("-" + 1234.0 + " €", MeinGui.setExpensesView()); |
|
|
|
assertNotEquals(1234.0 + " €", MeinGui.setExpensesView()); |
|
|
|
assertNotEquals(null, MeinGui.setBalanceView()); |
|
|
|
MeinGui.expenses = 4321.; |
|
|
|
assertEquals("-" + 4321.0 + " €", MeinGui.setExpensesView()); |
|
|
|
assertNotEquals("-" + 4321 + " €", MeinGui.setExpensesView()); |
|
|
|
assertNotEquals("-" + 4321.0 + "€", MeinGui.setExpensesView()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |