Package org.jboss.cache.search

Source Code of org.jboss.cache.search.SearchableCacheImplTest

package org.jboss.cache.search;

import org.testng.annotations.Test;
import org.jboss.cache.Cache;
import org.jboss.cache.DefaultCacheFactory;

/**
* @author Navin Surtani (<a href="mailto:nsurtani@redhat.com">nsurtani@redhat.com</a>)
*/

@Test (groups = "functional")
public class SearchableCacheImplTest
{

   @Test (expectedExceptions = NullPointerException.class)
   public void testConstructorWithNullCache()
   {
      SearchableCacheImpl nullCache = new SearchableCacheImpl(null, null);
     
   }

   @Test (expectedExceptions = NullPointerException.class)
   public void testConstructorWithNullSearchFactory()
   {
      Cache cache = new DefaultCacheFactory().createCache();
      SearchableCacheImpl nullSearchFactory = new SearchableCacheImpl(cache, null);
   }
}
TOP

Related Classes of org.jboss.cache.search.SearchableCacheImplTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.