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
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
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