Browse Source

Ertraege Funktion + Test

remotes/origin/develop
fdai7460 2 years ago
parent
commit
dfa6bbd0ad
  1. 7
      src/main/java/src/TasksFrame.java
  2. 8
      src/test/java/src/TasksFrameTest.java

7
src/main/java/src/TasksFrame.java

@ -1262,6 +1262,13 @@ public class TasksFrame extends JFrame {
return x;
}
public int setupErtraege(int a, int b, int c)
{
int x = 0;
x = a+b+c;
return x;
}
public void setupArea()
{

8
src/test/java/src/TasksFrameTest.java

@ -43,6 +43,14 @@ class TasksFrameTest {
int x = tasksFrame.setupAufwendungen(20000,6000,10000,4000,100);
assertEquals(40100, x);
}
@Test
void ertraege()
{
TasksFrame tasksFrame = new TasksFrame();
int x2 = tasksFrame.setupErtraege(80000,13000,4000);
assertEquals(97000, x2);
}
@Test
void setupPI() {
TasksFrame tasksFrame = new TasksFrame();

Loading…
Cancel
Save