Package org.hibernate.search.test.util

Examples of org.hibernate.search.test.util.HibernateManualConfiguration


    s.getTransaction().commit();
  }

  @Test
  public void testMultipleMatchingFieldBridges() throws Exception {
    SearchConfiguration conf = new HibernateManualConfiguration()
        .addClass( Theater.class )
        .addClass( Chain.class );
    boolean throwException = false;
    try {
      SearchFactoryImplementor sf = new SearchFactoryBuilder().configuration( conf ).buildSearchFactory();
View Full Code Here


    assertEquals( 0, countWorksDoneOnPerson( 1L ) );
  }

  @Test(expected = SearchException.class)
  public void testAgainstInfiniteTypeLoop() throws Exception {
    final SearchConfigurationForTest configuration = new HibernateManualConfiguration()
        .addClass( BrokenMammal.class );
    try {
      SearchFactoryImplementor sf = new SearchFactoryBuilder().configuration( configuration )
          .buildSearchFactory();
    }
View Full Code Here

  public void testRebuildFactory() {
    File targetDir = TestConstants.getTargetDir( MutableSearchFactoryAndJMXTest.class );
    File simpleJndiDir = new File( targetDir, "simpleJndi" );
    simpleJndiDir.mkdir();

    SearchConfigurationForTest configuration = new HibernateManualConfiguration()
        .addProperty( "hibernate.session_factory_name", "java:comp/SessionFactory" )
        .addProperty( "hibernate.jndi.class", "org.osjava.sj.SimpleContextFactory" )
        .addProperty( "hibernate.jndi.org.osjava.sj.root", simpleJndiDir.getAbsolutePath() )
        .addProperty( "hibernate.jndi.org.osjava.sj.jndi.shared", "true" )
        .addProperty( Environment.JMX_ENABLED, "true" );
View Full Code Here

    session.close();
  }

  @Test
  public void testUnsupportedTypeForTikaBridge() throws Exception {
    SearchConfiguration conf = new HibernateManualConfiguration()
        .addProperty( "hibernate.search.default.directory_provider", "ram" )
        .addProperty( "hibernate.search.lucene_version", TestConstants.getTargetLuceneVersion().toString() )
        .addClass( Foo.class );
    boolean throwException = false;
    try {
View Full Code Here

TOP

Related Classes of org.hibernate.search.test.util.HibernateManualConfiguration

Copyright © 2018 www.massapicom. 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.