Package org.hibernate.search.testsupport.setup

Examples of org.hibernate.search.testsupport.setup.SearchConfigurationForTest


    properties.setProperty( "directory_provider", "ram" );
    ramIndexManager.initialize(
        "testIndex",
        properties,
        new DefaultSimilarity(),
        new WorkerBuildContextForTest( new SearchConfigurationForTest() )
    );
    return ramIndexManager;
  }
View Full Code Here


  private AnnotationMetadataProvider metadataProvider;

  @Before
  public void setUp() {
    SearchConfiguration searchConfiguration = new SearchConfigurationForTest();
    ConfigContext configContext = new ConfigContext(
        searchConfiguration,
        new BuildContextForTest( searchConfiguration )
    );
    metadataProvider = new AnnotationMetadataProvider( new JavaReflectionManager(), configContext );
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

    private final AtomicBoolean isIndexReaderCurrent = new AtomicBoolean( false );//starts at true, see MockIndexReader constructor
    private final AtomicBoolean isReaderCreated = new AtomicBoolean( false );
    private final RAMDirectoryProvider dp = new RAMDirectoryProvider();

    TestManipulatorPerDP(int seed) {
      dp.initialize( String.valueOf( seed ), null, new BuildContextForTest( new SearchConfigurationForTest() ) );
    }
View Full Code Here

TOP

Related Classes of org.hibernate.search.testsupport.setup.SearchConfigurationForTest

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.