spring-data-examples icon indicating copy to clipboard operation
spring-data-examples copied to clipboard

doInitTestData() is never called inside AdvancedSolrRepositoryTests

Open kemuning opened this issue 6 years ago • 0 comments

I couldn't understand why the doInitTestData() is never called when you invokde mvn clean test, as shown the log below : [INFO] Running example.springdata.solr.AdvancedSolrRepositoryTests =====> START annotationBasedBoosting ... =====> END annotationBasedBoosting ... =====> START useRealtimeGetToReadUncommitedDocuments ... =====> END useRealtimeGetToReadUncommitedDocuments ... =====> START influcenceScoreWithFunctions ... Product(id=id-5, name=XBox, category=null, location=null, description=Microsift XBox, inStock=false, popularity=2, score=1.0) Product(id=p-0, name=foobar, category=null, location=null, description=null, inStock=false, popularity=null, score=0.0) Product(id=p-1, name=foobar, category=null, location=null, description=null, inStock=false, popularity=null, score=0.0) Product(id=p-2, name=foobar, category=null, location=null, description=null, inStock=false, popularity=null, score=0.0) Product(id=p-3, name=foobar, category=null, location=null, description=null, inStock=false, popularity=null, score=0.0) Product(id=p-4, name=foobar, category=null, location=null, description=null, inStock=false, popularity=null, score=0.0) Product(id=p-5, name=foobar, category=null, location=null, description=null, inStock=false, popularity=null, score=0.0) Product(id=p-6, name=foobar, category=null, location=null, description=null, inStock=false, popularity=null, score=0.0) Product(id=p-7, name=foobar, category=null, location=null, description=null, inStock=false, popularity=null, score=0.0) Product(id=p-8, name=foobar, category=null, location=null, description=null, inStock=false, popularity=null, score=0.0) =====> END influcenceScoreWithFunctions ... =====> START annotationBasedHighlighting ... =====> END annotationBasedHighlighting ... [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.994 s - in example.springdata.solr.AdvancedSolrRepositoryTests

As consequence, the test methods such as annotationBasedBoosting(), annotationBasedHighlighting(), etc prints nothing.

What am I missing ?

kemuning avatar Oct 06 '19 20:10 kemuning