BAEL-183 - removing obsolete class

This commit is contained in:
slavisa-baeldung 2017-02-13 01:33:02 +01:00
parent 04a87a9df5
commit e5597d87ce
1 changed files with 0 additions and 49 deletions

View File

@ -1,49 +0,0 @@
package temp;
import static org.junit.Assert.*;
import java.util.ArrayList;
import java.util.List;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import junit.framework.Assert;
public class SummationServiceTest {
private static List<Integer> numbers;
@BeforeClass
public static void initialize() {
numbers = new ArrayList<>();
}
@AfterClass
public static void tearDown() {
numbers = null;
}
@Before
public void runBeforeEachTest() {
numbers.add(1);
numbers.add(2);
numbers.add(3);
}
@After
public void runAfterEachTest() {
numbers.clear();
}
@Test
public void givenNumbers_sumEquals_thenCorrect() {
int sum = 0;
for (int num : numbers)
sum += num;
assertEquals(6, sum);
}
}