Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.infinispan.query.remote;
 
 
 import java.util.List;
 
import static org.junit.Assert.assertEquals;

Author(s):
anistor@redhat.com
Since:
6.0
@Test(groups = "functional", testName = "query.remote.QueryFacadeImplTest")
public class QueryFacadeImplTest {

   
Test there is exactly one loadable provider.
   public void testProvider() {
      List<QueryFacadeimplementations = new ArrayList<QueryFacade>();
      for (QueryFacade impl : ServiceLoader.load(QueryFacade.class)) {
         implementations.add(impl);
      }
      assertEquals(1, implementations.size());
      assertEquals(QueryFacadeImpl.classimplementations.get(0).getClass());
   }
New to GrepCode? Check out our FAQ X