X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=server%2Fruntime%2Forg.argeo.server.jcr%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fjcr%2Funit%2FAbstractJcrTestCase.java;h=2d7747a34b030aac1c7743ecbad1b319c4502b6e;hb=1d5afdce3e91054f07ddd3c98309c363b4cf1d46;hp=e1433604ad964ff6acb2bf0a74d1dbcc1c47a2b9;hpb=a5edbf6176d62305155b4be10601aa4156d72709;p=lgpl%2Fargeo-commons.git diff --git a/server/runtime/org.argeo.server.jcr/src/main/java/org/argeo/jcr/unit/AbstractJcrTestCase.java b/server/runtime/org.argeo.server.jcr/src/main/java/org/argeo/jcr/unit/AbstractJcrTestCase.java index e1433604a..2d7747a34 100644 --- a/server/runtime/org.argeo.server.jcr/src/main/java/org/argeo/jcr/unit/AbstractJcrTestCase.java +++ b/server/runtime/org.argeo.server.jcr/src/main/java/org/argeo/jcr/unit/AbstractJcrTestCase.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2010 Mathieu Baudier + * 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; + } }