manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From piergior...@apache.org
Subject svn commit: r1292452 - in /incubator/lcf/branches/CONNECTORS-288/tests/elasticsearch: pom.xml src/test/java/org/apache/manifoldcf/elasticsearch_tests/BaseDerby.java
Date Wed, 22 Feb 2012 19:17:19 GMT
Author: piergiorgio
Date: Wed Feb 22 19:17:19 2012
New Revision: 1292452

URL: http://svn.apache.org/viewvc?rev=1292452&view=rev
Log:
Part of CONNECTORS-288 about ElasticSearch:
- updated the Lucene dependencies
- an initial fix for the integration tests implementation: now Manifold, OpenCMIS and ElasticSearch
servers started correctly

Modified:
    incubator/lcf/branches/CONNECTORS-288/tests/elasticsearch/pom.xml
    incubator/lcf/branches/CONNECTORS-288/tests/elasticsearch/src/test/java/org/apache/manifoldcf/elasticsearch_tests/BaseDerby.java

Modified: incubator/lcf/branches/CONNECTORS-288/tests/elasticsearch/pom.xml
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-288/tests/elasticsearch/pom.xml?rev=1292452&r1=1292451&r2=1292452&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-288/tests/elasticsearch/pom.xml (original)
+++ incubator/lcf/branches/CONNECTORS-288/tests/elasticsearch/pom.xml Wed Feb 22 19:17:19
2012
@@ -312,12 +312,12 @@
     <dependency>
       <groupId>org.apache.lucene</groupId>
       <artifactId>lucene-core</artifactId>
-      <version>3.3.0</version>
+      <version>3.5.0</version>
     </dependency>
     <dependency>                 
       <groupId>org.apache.lucene</groupId>
       <artifactId>lucene-analyzers</artifactId>   
-      <version>3.3.0</version>                            
+      <version>3.5.0</version>                            
     </dependency>
     <dependency>
       <groupId>org.apache.lucene</groupId>

Modified: incubator/lcf/branches/CONNECTORS-288/tests/elasticsearch/src/test/java/org/apache/manifoldcf/elasticsearch_tests/BaseDerby.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-288/tests/elasticsearch/src/test/java/org/apache/manifoldcf/elasticsearch_tests/BaseDerby.java?rev=1292452&r1=1292451&r2=1292452&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-288/tests/elasticsearch/src/test/java/org/apache/manifoldcf/elasticsearch_tests/BaseDerby.java
(original)
+++ incubator/lcf/branches/CONNECTORS-288/tests/elasticsearch/src/test/java/org/apache/manifoldcf/elasticsearch_tests/BaseDerby.java
Wed Feb 22 19:17:19 2012
@@ -59,7 +59,7 @@ public class BaseDerby extends org.apach
   // Setup/teardown
   
   @Before
-  public void setUpCMIS()
+  public void setUpCMISandElasticSearch()
     throws Exception
   {
     cmisServer = new Server(9090);
@@ -75,6 +75,7 @@ public class BaseDerby extends org.apach
     openCmisServerApi.setParentLoaderPriority(false);
     cmisServer.addHandler(openCmisServerApi);
     
+    System.out.println("OpenCMIS InMemory server is starting...");
     cmisServer.start();
     boolean entered = false;
     
@@ -84,17 +85,21 @@ public class BaseDerby extends org.apach
       entered = true;
       ManifoldCF.sleep(5000);
     }
-  }
-  
-  @Before
-  public void setUpElasticSearch(){
-    //port 9200 by default
+    
+    System.out.println("OpenCMIS InMemory server is started listening on port 9090");
+    
+    //Initialize ElasticSearch server
+    //the default port is 9200
+    System.out.println("ElasticSearch is starting...");
     node = nodeBuilder().local(true).node();
+    System.out.println("ElasticSearch is started on port 9200");
   }
   
+  
   @After
   public void cleanUpElasticSearch(){
-    node.close();
+    if(node!=null)
+      node.close();
   }
   
   @After



Mime
View raw message