Package org.jboss.cache.search

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

package org.jboss.cache.search;

import org.testng.annotations.Test;
import org.jboss.cache.Fqn;
import org.jboss.cache.search.CacheEntityId;

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

@Test
public class CacheEntityIdTest
{

   @Test (expectedExceptions = NullPointerException.class)
   public void testNullFqn()
   {
      CacheEntityId nullFqn = new CacheEntityId(null, "key");
   }


   @Test (expectedExceptions = NullPointerException.class)
   public void testNullKey()
   {
      CacheEntityId nullKey = new CacheEntityId(Fqn.fromString("/a/b/c"), null);
   }

   @Test (expectedExceptions = NullPointerException.class)
   public void testNullDocId()
   {
      CacheEntityId nulldoc = new CacheEntityId(null);
   }



}
TOP

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

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.