This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
     new d049b03  Fixed tests
d049b03 is described below

commit d049b039d86cb557f4e0bbd18a759d5821ccbc7d
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Fri Feb 26 15:20:26 2021 +0100

    Fixed tests
---
 .../camel/component/lucene/LuceneIndexAndQueryProducerTest.java   | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git 
a/components/camel-lucene/src/test/java/org/apache/camel/component/lucene/LuceneIndexAndQueryProducerTest.java
 
b/components/camel-lucene/src/test/java/org/apache/camel/component/lucene/LuceneIndexAndQueryProducerTest.java
index 4f42b61..66e256f 100644
--- 
a/components/camel-lucene/src/test/java/org/apache/camel/component/lucene/LuceneIndexAndQueryProducerTest.java
+++ 
b/components/camel-lucene/src/test/java/org/apache/camel/component/lucene/LuceneIndexAndQueryProducerTest.java
@@ -95,7 +95,6 @@ public class LuceneIndexAndQueryProducerTest extends 
CamelTestSupport {
     public void testLuceneIndexProducer() throws Exception {
         MockEndpoint mockEndpoint = getMockEndpoint("mock:result");
 
-        context.stop();
         context.addRoutes(new RouteBuilder() {
             public void configure() {
                 
from("direct:start").to("lucene:stdQuotesIndex:insert?analyzer=#stdAnalyzer&indexDir=#std&srcDir=#load_dir")
@@ -114,14 +113,12 @@ public class LuceneIndexAndQueryProducerTest extends 
CamelTestSupport {
 
         mockEndpoint.assertIsSatisfied();
         LOG.debug("------------Completed LuceneIndexProducer 
Test---------------");
-        context.stop();
     }
 
     @Test
     public void testLucenePhraseQueryProducer() throws Exception {
         MockEndpoint mockSearchEndpoint = getMockEndpoint("mock:searchResult");
 
-        context.stop();
         context.addRoutes(new RouteBuilder() {
             public void configure() {
 
@@ -152,14 +149,12 @@ public class LuceneIndexAndQueryProducerTest extends 
CamelTestSupport {
         sendQuery();
         mockSearchEndpoint.assertIsSatisfied();
         LOG.debug("------------Completed LuceneQueryProducer Phrase 
Test---------------");
-        context.stop();
     }
 
     @Test
     public void testLuceneWildcardQueryProducer() throws Exception {
         MockEndpoint mockSearchEndpoint = getMockEndpoint("mock:searchResult");
 
-        context.stop();
         context.addRoutes(new RouteBuilder() {
             public void configure() {
 
@@ -189,13 +184,11 @@ public class LuceneIndexAndQueryProducerTest extends 
CamelTestSupport {
         sendQuery();
         mockSearchEndpoint.assertIsSatisfied();
         LOG.debug("------------Completed LuceneQueryProducer Wildcard 
Test---------------");
-        context.stop();
     }
 
     @Test
     public void testReturnLuceneDocsQueryProducer() throws Exception {
         MockEndpoint mockSearchEndpoint = getMockEndpoint("mock:searchResult");
-        context.stop();
         context.addRoutes(new RouteBuilder() {
             public void configure() {
 
@@ -238,6 +231,7 @@ public class LuceneIndexAndQueryProducerTest extends 
CamelTestSupport {
         mockSearchEndpoint.assertIsSatisfied();
         Map<String, String> errorMap = 
mockSearchEndpoint.getCamelContext().getGlobalOptions();
         LOG.debug("------------Completed LuceneQueryProducer Wildcard with 
Return Lucene Docs Test---------------");
+
         context.stop();
         assertTrue(errorMap.get("NO_LUCENE_DOCS_ERROR") == null);
     }

Reply via email to