Unico Hommes pushed to branch master at cms-community / hippo-repository

Commits:
450c695b by Unico Hommes at 2016-03-29T12:15:41+02:00
REPO-1454 catch exception to prevent threads from hanging

- - - - -


1 changed file:

- 
test/src/test/java/org/hippoecm/repository/facetnavigation/FacetedNavigationConcurrencyTest.java


Changes:

=====================================
test/src/test/java/org/hippoecm/repository/facetnavigation/FacetedNavigationConcurrencyTest.java
=====================================
--- 
a/test/src/test/java/org/hippoecm/repository/facetnavigation/FacetedNavigationConcurrencyTest.java
+++ 
b/test/src/test/java/org/hippoecm/repository/facetnavigation/FacetedNavigationConcurrencyTest.java
@@ -272,10 +272,7 @@ public class FacetedNavigationConcurrencyTest extends 
RepositoryTestCase {
         
     }
 
-    private void modifyOrAddCar(Node testNode, int i) throws 
PathNotFoundException, RepositoryException,
-            ItemExistsException, NoSuchNodeTypeException, LockException, 
VersionException,
-            ConstraintViolationException, ValueFormatException, 
AccessDeniedException, ReferentialIntegrityException,
-            InvalidItemStateException {
+    private void modifyOrAddCar(Node testNode, int i) throws 
RepositoryException {
         Node cars = testNode.getNode("documents").getNode("cars");
            if(i % 5 == 0) {
                // add a car
@@ -429,7 +426,7 @@ public class FacetedNavigationConcurrencyTest extends 
RepositoryTestCase {
                     Node n = it.nextNode();
                 }
                 
-            } catch (RepositoryException e) {
+            } catch (Exception e) {
                 errorCount++;
             } finally {
                if(searchSession != null) {
@@ -456,7 +453,7 @@ public class FacetedNavigationConcurrencyTest extends 
RepositoryTestCase {
                 traversalSession = server.login(SYSTEMUSER_ID, 
SYSTEMUSER_PASSWORD);
                 Node facetedNode = 
traversalSession.getRootNode().getNode(facetedNodePath);
                 traverse(facetedNode, "", traverseDepth);
-            } catch (RepositoryException e) {
+            } catch (Exception e) {
                 errorCount++;
             } finally {
                if(traversalSession != null) {



View it on GitLab: 
https://code.onehippo.org/cms-community/hippo-repository/commit/450c695b422dc2baed8a4be51821d39c826ccf55
_______________________________________________
Hippocms-svn mailing list
Hippocms-svn@lists.onehippo.org
https://lists.onehippo.org/mailman/listinfo/hippocms-svn

Reply via email to