]> source.dussan.org Git - archiva.git/commitdiff
PR: MRM-97
authorEdwin L. Punzalan <epunzalan@apache.org>
Mon, 20 Feb 2006 06:01:18 +0000 (06:01 +0000)
committerEdwin L. Punzalan <epunzalan@apache.org>
Mon, 20 Feb 2006 06:01:18 +0000 (06:01 +0000)
Added hardfail unit test on configuration

git-svn-id: https://svn.apache.org/repos/asf/maven/repository-manager/trunk@379031 13f79535-47bb-0310-9956-ffa450edef68

maven-repository-proxy/src/test/java/org/apache/maven/repository/proxy/configuration/ProxyConfigurationTest.java

index 0b6aafa78ecc54a215558864b627fcb4fffe3043..f2b08747ff1714a1146bdf8fb1a4c5ccc02b2e48 100644 (file)
@@ -66,6 +66,7 @@ public class ProxyConfigurationTest
         ProxyRepository repo1 = new ProxyRepository( "repo1", "http://www.ibiblio.org/maven2", defLayout );\r
         repo1.setCacheFailures( true );\r
         repo1.setCachePeriod( 0 );\r
+        repo1.setHardfail( true );\r
         config.addRepository( repo1 );\r
         assertEquals( 1, config.getRepositories().size() );\r
 \r
@@ -82,6 +83,7 @@ public class ProxyConfigurationTest
         assertEquals( "repo1", repo.getId() );\r
         assertEquals( "http://www.ibiblio.org/maven2", repo.getUrl() );\r
         assertTrue( repo.isCacheFailures() );\r
+        assertTrue( repo.isHardfail() );\r
         assertEquals( 0, repo.getCachePeriod() );\r
         assertEquals( repo1, repo );\r
 \r
@@ -89,9 +91,11 @@ public class ProxyConfigurationTest
         assertEquals( "repo2", repo.getId() );\r
         assertEquals( "http://www.ibiblio.org/maven", repo.getUrl() );\r
         assertFalse( repo.isCacheFailures() );\r
+        assertFalse( repo.isHardfail() );\r
         assertEquals( 3600, repo.getCachePeriod() );\r
         assertEquals( repo2, repo );\r
         assertTrue( repo.isProxied() );\r
+\r
         ProxyInfo proxyInfo = repo.getProxy();\r
         assertNotNull( proxyInfo );\r
         assertEquals( "some.local.proxy", proxyInfo.getHost() );\r