You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stanbol.apache.org by rw...@apache.org on 2012/04/08 11:03:36 UTC

svn commit: r1310966 - /incubator/stanbol/trunk/entityhub/ldpath/src/test/java/org/apache/stanbol/entityhub/ldpath/impl/LDPathTestBase.java

Author: rwesten
Date: Sun Apr  8 09:03:35 2012
New Revision: 1310966

URL: http://svn.apache.org/viewvc?rev=1310966&view=rev
Log:
Added an explicit call to SolrYard.close() to the base class used for all Entityhub LDPath unit tests. This should hopefully fix the issue encountered by Andreas Kuckartz  (see http://markmail.org/message/sj6a6qakznrbbji3 for details)

Modified:
    incubator/stanbol/trunk/entityhub/ldpath/src/test/java/org/apache/stanbol/entityhub/ldpath/impl/LDPathTestBase.java

Modified: incubator/stanbol/trunk/entityhub/ldpath/src/test/java/org/apache/stanbol/entityhub/ldpath/impl/LDPathTestBase.java
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/entityhub/ldpath/src/test/java/org/apache/stanbol/entityhub/ldpath/impl/LDPathTestBase.java?rev=1310966&r1=1310965&r2=1310966&view=diff
==============================================================================
--- incubator/stanbol/trunk/entityhub/ldpath/src/test/java/org/apache/stanbol/entityhub/ldpath/impl/LDPathTestBase.java (original)
+++ incubator/stanbol/trunk/entityhub/ldpath/src/test/java/org/apache/stanbol/entityhub/ldpath/impl/LDPathTestBase.java Sun Apr  8 09:03:35 2012
@@ -46,7 +46,7 @@ public abstract class LDPathTestBase {
     /**
      * The SolrYard used for the tests
      */
-    protected static Yard yard;
+    protected static SolrYard yard;
     protected static YardBackend backend;
     /**
      * The SolrDirectoryManager also tested within this unit test
@@ -76,6 +76,7 @@ public abstract class LDPathTestBase {
     }
     @AfterClass
     public static void cleanup() throws Exception {
+        yard.close();
         yard = null;
     }
     
@@ -91,14 +92,17 @@ public abstract class LDPathTestBase {
      */
     @Test
     public void testSetup() throws Exception {
+        log.info("check Setup");
         for(String context : checkContexts()){
             Representation rep = yard.getRepresentation(context);
+            log.info("  > check Entity {}",rep.getId());
             assertNotNull(rep);
             assertEquals(rep.getId(),context);
-            if(log.isDebugEnabled()){
-                log.debug(ModelUtils.getRepresentationInfo(rep));
+            if(log.isInfoEnabled()){
+                log.info("Data for Entity {}: \n {}",rep.getId(),ModelUtils.getRepresentationInfo(rep));
             }
         }
+        log.info("   ... check completed");
     }
     
     /**