code.onehippo.org is currently readonly. We are migrating to code.bloomreach.com, please continue working there on Monday 14/12. See: https://docs.bloomreach.com/display/engineering/GitLab

Commit 23d39e1c authored by Ate Douma's avatar Ate Douma

REPO-1881 move specific tests which cannot reuse an previously started...

REPO-1881 move specific tests which cannot reuse an previously started repository to integration test phase
parent db4470ab
......@@ -171,11 +171,38 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<excludes>
<exclude>**/RefreshTest.java</exclude>
<exclude>**/ExternalRepositorySyncRevisionServiceTest.java</exclude>
<exclude>**/ExternalRepositorySyncRevisionServiceNoClusterTest.java</exclude>
</excludes>
<systemPropertyVariables>
<org.onehippo.repository.test.keepserver>true</org.onehippo.repository.test.keepserver>
</systemPropertyVariables>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
<configuration>
<includes>
<include>**/RefreshTest.java</include>
<include>**/ExternalRepositorySyncRevisionServiceTest.java</include>
<include>**/ExternalRepositorySyncRevisionServiceNoClusterTest.java</include>
</includes>
<systemPropertyVariables>
<org.onehippo.repository.test.keepserver>false</org.onehippo.repository.test.keepserver>
</systemPropertyVariables>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
......
......@@ -25,23 +25,11 @@ import javax.jcr.SimpleCredentials;
import org.apache.jackrabbit.core.RepositoryImpl;
import org.apache.jackrabbit.core.config.RepositoryConfig;
import org.hippoecm.repository.api.HippoNodeType;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;
import org.onehippo.repository.testutils.RepositoryTestCase;
public class RefreshTest {
@BeforeClass
public static void clearRepository() {
// when run together with other RepositoryTestCase based tests *and*
// -Dorg.onehippo.repository.test.keepserver=true
// then an existing RepositoryImpl may already be (kept) running, which can interfere with this test
RepositoryTestCase.clearRepository();
}
@Ignore
public void testRefreshAfterRemoveIssueJackrabbit() throws Exception {
Repository repository = RepositoryImpl.create(RepositoryConfig.create(getClass().getResourceAsStream("jackrabbit.xml"), "target"));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment