Browse Source

Aufwendungen Funktion + Test

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

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

@ -1255,6 +1255,13 @@ public class TasksFrame extends JFrame {
jPanel.add(e8);
}
public int setupAufwendungen(int a, int b, int c, int d, int e)
{
int x = 0;
x = a+b+c+d+e;
return x;
}
public void setupArea()
{

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

@ -36,7 +36,13 @@ class TasksFrameTest {
assertEquals(40,x2);
}
@Test
void aufwendungen()
{
TasksFrame tasksFrame = new TasksFrame();
int x = tasksFrame.setupAufwendungen(20000,6000,10000,4000,100);
assertEquals(40100, x);
}
@Test
void setupPI() {
TasksFrame tasksFrame = new TasksFrame();

Loading…
Cancel
Save