bug5287: fixed TestLeaderboardGroupRetrievalProcessor and un-@Ignored

This commit is contained in:
Axel Uhl
2020-06-26 18:44:28 +02:00
parent e0d77a8ce3
commit c2b9dd8224
2 changed files with 5 additions and 5 deletions
@@ -11,5 +11,6 @@ Import-Package: junit.framework;version="4.8.2",
org.junit.runner;version="4.8.2"
Require-Bundle: org.mockito.mockito-core;bundle-version="1.9.5",
org.hamcrest;bundle-version="1.1.0",
com.sap.sse.common
com.sap.sse.common,
org.objenesis;bundle-version="2.1.0"
Automatic-Module-Name: com.sap.sailing.datamining.test
@@ -10,10 +10,10 @@ import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import java.util.UUID;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import com.sap.sailing.datamining.data.HasLeaderboardGroupContext;
@@ -58,12 +58,11 @@ public class TestLeaderboardGroupRetrievalProcessor {
return groups;
}
@Ignore
@Test
public void testFilteringRetrieval() throws InterruptedException {
retriever.processElement(service);
retriever.finish();
Collection<LeaderboardGroup> expectedGroups = service.getLeaderboardGroups().values();
assertThat(retrievedGroups, is(expectedGroups));
final Set<LeaderboardGroup> expectedGroups = new HashSet<>(service.getLeaderboardGroups().values());
assertThat(new HashSet<>(retrievedGroups), is(expectedGroups));
}
}