Package org.springmodules.lucene.index.core

Examples of org.springmodules.lucene.index.core.LuceneIndexTemplate


    LuceneIndexSupport luceneIndex = new LuceneIndexSupport() {};
    luceneIndex.setIndexFactory(indexFactory);
   
    luceneIndex.afterPropertiesSet();
   
    LuceneIndexTemplate template = luceneIndex.getLuceneIndexTemplate();
    assertNotNull(template);
    assertEquals(template.getClass(), DefaultLuceneIndexTemplate.class);
  }
View Full Code Here


    assertEquals(template.getClass(), DefaultLuceneIndexTemplate.class);
  }

  public void testTemplateInjection() throws Exception {
    MockControl luceneIndexTemplateControl = MockControl.createControl(LuceneIndexTemplate.class);
    LuceneIndexTemplate luceneIndexTemplate = (LuceneIndexTemplate)luceneIndexTemplateControl.getMock();

    LuceneIndexSupport luceneIndex = new LuceneIndexSupport() {};
    luceneIndex.setLuceneIndexTemplate(luceneIndexTemplate);
   
    luceneIndex.afterPropertiesSet();
   
    LuceneIndexTemplate template = luceneIndex.getLuceneIndexTemplate();
    assertNotNull(template);
    assertEquals(template.getClass(), luceneIndexTemplate.getClass());
  }
View Full Code Here

TOP

Related Classes of org.springmodules.lucene.index.core.LuceneIndexTemplate

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.