@@ -0,0 +1,941 @@
+package nl.tudelft.dnainator.graph.interestingness.impl;%0A%0Aimport static org.junit.Assert.assertEquals;%0Aimport nl.tudelft.dnainator.graph.interestingness.ScoreContainer;%0Aimport nl.tudelft.dnainator.graph.interestingness.Scores;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.mockito.Mockito;%0A%0A/**%0A * Tests the %7B@link SummingScoresStrategy%7D.%0A */%0Apublic class SummingScoresStrategyTest %7B%0A%09private static final int TEST_SCORE = 5;%0A%09private SummingScoresStrategy strategy;%0A%09private ScoreContainer container;%0A%0A%09/**%0A%09 * setup the test.%0A%09 */%0A%09@Before%0A%09public void setUp() %7B%0A%09%09this.strategy = new SummingScoresStrategy();%0A%09%09this.container = Mockito.mock(ScoreContainer.class);%0A%09%09Mockito.when(container.getScore(Mockito.any())).thenReturn(TEST_SCORE);%0A%09%7D%0A%0A%09/**%0A%09 * Tests whether it returns the sum of all scores.%0A%09 */%0A%09@Test%0A%09public void testSum() %7B%0A%09%09assertEquals(strategy.compute(container), Scores.values().length * TEST_SCORE);%0A%09%7D%0A%0A%7D%0A

Test the SummingScoresStrategy