aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--archiva-modules/archiva-base/archiva-repository-admin/src/test/java/org/apache/archiva/admin/repository/managed/ManagedRepositoryAdminTest.java15
-rw-r--r--pom.xml3
2 files changed, 13 insertions, 5 deletions
diff --git a/archiva-modules/archiva-base/archiva-repository-admin/src/test/java/org/apache/archiva/admin/repository/managed/ManagedRepositoryAdminTest.java b/archiva-modules/archiva-base/archiva-repository-admin/src/test/java/org/apache/archiva/admin/repository/managed/ManagedRepositoryAdminTest.java
index aec3002b6..551572612 100644
--- a/archiva-modules/archiva-base/archiva-repository-admin/src/test/java/org/apache/archiva/admin/repository/managed/ManagedRepositoryAdminTest.java
+++ b/archiva-modules/archiva-base/archiva-repository-admin/src/test/java/org/apache/archiva/admin/repository/managed/ManagedRepositoryAdminTest.java
@@ -258,10 +258,8 @@ public class ManagedRepositoryAdminTest
int initialSize = repos.size();
assertTrue( initialSize > 0 );
- ManagedRepository repo = new ManagedRepository();
- repo.setId( repoId );
- repo.setName( "test repo" );
- repo.setLocation( repoLocation );
+ ManagedRepository repo = getTestManagedRepository( repoId, repoLocation );
+
managedRepositoryAdmin.addManagedRepository( repo, false, getFakeAuditInformation() );
assertTemplateRoleExists( repoId );
@@ -287,7 +285,9 @@ public class ManagedRepositoryAdminTest
assertEquals( newName, repo.getName() );
assertEquals( new File( repoLocation ).getCanonicalPath(), new File( repo.getLocation() ).getCanonicalPath() );
assertTrue( new File( repoLocation ).exists() );
-
+ assertEquals( getTestManagedRepository( repoId, repoLocation ).getCronExpression(), repo.getCronExpression() );
+ assertEquals( getTestManagedRepository( repoId, repoLocation ).getLayout(), repo.getLayout() );
+ assertEquals( getTestManagedRepository( repoId, repoLocation ).getId(), repo.getId() );
assertTemplateRoleExists( repoId );
assertTrue( new File( stageRepoLocation + STAGE_REPO_ID_END ).exists() );
@@ -418,4 +418,9 @@ public class ManagedRepositoryAdminTest
return user;
}
+ ManagedRepository getTestManagedRepository( String repoId, String repoLocation )
+ {
+ return new ManagedRepository( repoId, "test repo", repoLocation, "default", false, true, true, "0 0 * * * ?" );
+ }
+
}
diff --git a/pom.xml b/pom.xml
index ee9ccd248..61a0957e8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1614,6 +1614,8 @@
</repository>
</repositories>
</profile>
+ <!--
+ jrebel tests doesn't work very well : too investigate
<profile>
<id>jrebel</id>
<build>
@@ -1635,5 +1637,6 @@
</plugins>
</build>
</profile>
+ -->
</profiles>
</project>