@@ -0,0 +1,1016 @@
+package dtos;%0A%0Aimport org.junit.Test;%0A%0Aimport de.fau.amos.virtualledger.dtos.SavingsAccountSubGoal;%0Aimport static org.assertj.core.api.Assertions.assertThat;%0A/**%0A * Created by Simon on 25.07.2017.%0A */%0A%0Apublic class SavingsAccountSubGoalTest %7B%0A    @Test%0A    public void setAndGetTest() %7B%0A        final String name = %22name%22;%0A        final double amount = 123;%0A        final String name2 = %22name2%22;%0A        final double amount2 = 1234;%0A%0A        //Act%0A        SavingsAccountSubGoal componentUnderTest = new SavingsAccountSubGoal(name, amount);%0A        SavingsAccountSubGoal componentUnderTest2 = new SavingsAccountSubGoal();%0A        componentUnderTest2.setAmount(amount2);%0A        componentUnderTest2.setName(name2);%0A%0A        //Assert%0A        assertThat(componentUnderTest.getName()).isEqualTo(name);%0A        assertThat(componentUnderTest.getAmount()).isEqualTo(amount);%0A%0A        assertThat(componentUnderTest2.getName()).isEqualTo(name2);%0A        assertThat(componentUnderTest2.getAmount()).isEqualTo(amount2);%0A    %7D%0A%7D%0A

test class for SavingsAccountSubGoal