Add a setRepository to enable the use of an existing repository rather that recreatin...
authorBruno Sinou <bsinou@argeo.org>
Thu, 12 Jan 2012 16:07:51 +0000 (16:07 +0000)
committerBruno Sinou <bsinou@argeo.org>
Thu, 12 Jan 2012 16:07:51 +0000 (16:07 +0000)
git-svn-id: https://svn.argeo.org/commons/trunk@4962 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

server/runtime/org.argeo.server.jcr/src/main/java/org/argeo/jcr/unit/AbstractJcrTestCase.java

index e1433604ad964ff6acb2bf0a74d1dbcc1c47a2b9..f4412974e266517390b43e231944ca959e021eea 100644 (file)
@@ -79,4 +79,12 @@ public abstract class AbstractJcrTestCase extends TestCase {
        protected Repository getRepository() {
                return repository;
        }
+
+       /**
+        * enables children class to set an existing repository in case it is not
+        * deleted on startup, to test migration by instance
+        */
+       protected void setRepository(Repository repository) {
+               this.repository = repository;
+       }
 }