Skip to content

Commit

Permalink
Fix test name
Browse files Browse the repository at this point in the history
  • Loading branch information
anistor authored and danberindei committed May 10, 2016
1 parent afb327a commit 1457086
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
@@ -1,17 +1,19 @@
package org.infinispan.query.remote.impl;

import static org.testng.AssertJUnit.assertTrue;
import org.infinispan.Cache;
import org.infinispan.commons.util.Util;
import org.infinispan.configuration.cache.ConfigurationBuilder;
import org.infinispan.configuration.global.GlobalConfigurationBuilder;
import org.infinispan.manager.EmbeddedCacheManager;
import org.infinispan.query.remote.client.ProtobufMetadataManagerConstants;
import org.infinispan.test.AbstractInfinispanTest;
import org.infinispan.test.CacheManagerCallable;
import org.infinispan.test.TestingUtil;
import org.infinispan.test.fwk.TestCacheManagerFactory;
import org.testng.annotations.Test;
import org.infinispan.query.remote.client.ProtobufMetadataManagerConstants;

import static org.junit.Assert.assertTrue;


@Test(groups = "functional", testName = "query.remote.impl.ProtobufMetadataCachePreserveStateAcrossRestartsTest")
public class ProtobufMetadataCachePreserveStateAcrossRestartsTest extends AbstractInfinispanTest {
Expand All @@ -31,16 +33,16 @@ public void testStatePreserved() throws Exception {
TestingUtil.withCacheManager(new CacheManagerCallable(createCacheManager(persistentStateLocation)) {
@Override
public void call() throws Exception {
Cache<String, String> protoBufMetadaCache = cm.getCache(ProtobufMetadataManagerConstants.PROTOBUF_METADATA_CACHE_NAME);
protoBufMetadaCache.put("test.proto", "package X;");
Cache<String, String> protobufMetadaCache = cm.getCache(ProtobufMetadataManagerConstants.PROTOBUF_METADATA_CACHE_NAME);
protobufMetadaCache.put("test.proto", "package X;");
}
});

TestingUtil.withCacheManager(new CacheManagerCallable(createCacheManager(persistentStateLocation)) {
@Override
public void call() throws Exception {
Cache<String, String> protoBufMetadaCache = cm.getCache(ProtobufMetadataManagerConstants.PROTOBUF_METADATA_CACHE_NAME);
assertTrue(protoBufMetadaCache.containsKey("test.proto"));
Cache<String, String> protobufMetadaCache = cm.getCache(ProtobufMetadataManagerConstants.PROTOBUF_METADATA_CACHE_NAME);
assertTrue(protobufMetadaCache.containsKey("test.proto"));
}
});
}
Expand Down
Expand Up @@ -24,7 +24,7 @@
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;

@Test(groups = "functional", testName = "query.remote.ProtobufMetadataManagerInterceptorTest")
@Test(groups = "functional", testName = "query.remote.impl.ProtobufMetadataManagerInterceptorTest")
public class ProtobufMetadataManagerInterceptorTest extends MultipleCacheManagersTest {

private static final Log log = LogFactory.getLog(ProtobufMetadataManagerInterceptorTest.class, Log.class);
Expand Down
Expand Up @@ -13,14 +13,14 @@
* @author anistor@redhat.com
* @since 6.0
*/
@Test(groups = "functional", testName = "query.remote.QueryFacadeImplTest")
@Test(groups = "functional", testName = "query.remote.impl.QueryFacadeImplTest")
public class QueryFacadeImplTest {

/**
* Test there is exactly one loadable provider.
*/
public void testProvider() {
List<QueryFacade> implementations = new ArrayList<QueryFacade>();
List<QueryFacade> implementations = new ArrayList<>();
for (QueryFacade impl : ServiceLoader.load(QueryFacade.class)) {
implementations.add(impl);
}
Expand Down
Expand Up @@ -29,7 +29,7 @@
* @author anistor@redhat.com
* @since 6.0
*/
@Test(groups = "functional", testName = "query.remote.indexing.ProtobufWrapperIndexingTest")
@Test(groups = "functional", testName = "query.remote.impl.indexing.ProtobufWrapperIndexingTest")
public class ProtobufWrapperIndexingTest extends SingleCacheManagerTest {

protected EmbeddedCacheManager createCacheManager() throws Exception {
Expand Down

0 comments on commit 1457086

Please sign in to comment.