]> git.argeo.org Git - lgpl/argeo-commons.git/blobdiff - server/runtime/org.argeo.server.jcr/src/main/java/org/argeo/jcr/unit/AbstractJcrTestCase.java
Update license headers
[lgpl/argeo-commons.git] / server / runtime / org.argeo.server.jcr / src / main / java / org / argeo / jcr / unit / AbstractJcrTestCase.java
index e1433604ad964ff6acb2bf0a74d1dbcc1c47a2b9..2d7747a34b030aac1c7743ecbad1b319c4502b6e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2010 Mathieu Baudier <mbaudier@argeo.org>
+ * Copyright (C) 2007-2012 Mathieu Baudier
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,7 +13,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.argeo.jcr.unit;
 
 import java.io.File;
@@ -79,4 +78,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;
+       }
 }