Skip to content

Commit

Permalink
Clarify the purpose of some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
anistor authored and tristantarrant committed Feb 7, 2017
1 parent 757b77b commit e3a3bd6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Expand Up @@ -48,7 +48,7 @@
import org.junit.runner.RunWith;

/**
* Tests for remote iteration using a custom filter with custom classes marshalled with a custom marshaller
* Tests for remote iteration using a custom filter with custom classes marshalled with a custom Protobuf based marshaller.
*
* @author gustavonalle
* @since 8.0
Expand Down
Expand Up @@ -24,6 +24,9 @@
import org.junit.experimental.categories.Category;
import org.junit.runner.RunWith;

/**
* Tests for remote iteration in compat mode with primitive values and default (JBoss) marshalling.
*/
@RunWith(Arquillian.class)
@Category({HotRodSingleNode.class, HotRodClustered.class})
public class HotRodRemoteCacheCompatIT {
Expand All @@ -32,7 +35,7 @@ public class HotRodRemoteCacheCompatIT {
private static final int CACHE_SIZE = 1000;
private static RemoteCacheManager remoteCacheManager;

private RemoteCache<Integer, String> remoteCache;
private RemoteCache<Object, Object> remoteCache;

@InfinispanResource("container1")
RemoteInfinispanServer server1;
Expand All @@ -57,7 +60,7 @@ public static void release() {
}

@Test
public void testIteration() {
public void testIterationWithPrimitiveValues() {
remoteCache.clear();
IntStream.range(0, CACHE_SIZE).forEach(k -> remoteCache.put(k, "value" + k));
Set<Object> keys = new HashSet<>();
Expand All @@ -66,6 +69,4 @@ public void testIteration() {
}
assertEquals(CACHE_SIZE, keys.size());
}


}

0 comments on commit e3a3bd6

Please sign in to comment.