summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2012-02-29 16:03:29 +0000
committerOlivier Lamy <olamy@apache.org>2012-02-29 16:03:29 +0000
commit4dcb5d3ebb72cc1ba96cc55723ac67d2632c8e60 (patch)
treeffa9e8c152e58faa7488037d51fd49c5579ef856
parentc15da51c915b5fa2e1aa61073494ab4c8686011e (diff)
downloadarchiva-4dcb5d3ebb72cc1ba96cc55723ac67d2632c8e60.tar.gz
archiva-4dcb5d3ebb72cc1ba96cc55723ac67d2632c8e60.zip
format code.
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1295170 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--archiva-modules/archiva-base/archiva-policies/src/test/java/org/apache/archiva/policies/CachedFailuresPolicyTest.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/archiva-modules/archiva-base/archiva-policies/src/test/java/org/apache/archiva/policies/CachedFailuresPolicyTest.java b/archiva-modules/archiva-base/archiva-policies/src/test/java/org/apache/archiva/policies/CachedFailuresPolicyTest.java
index 315264963..2fd8d24cb 100644
--- a/archiva-modules/archiva-base/archiva-policies/src/test/java/org/apache/archiva/policies/CachedFailuresPolicyTest.java
+++ b/archiva-modules/archiva-base/archiva-policies/src/test/java/org/apache/archiva/policies/CachedFailuresPolicyTest.java
@@ -30,7 +30,6 @@ import javax.inject.Inject;
import javax.inject.Named;
import java.io.File;
import java.util.Properties;
-import org.springframework.cache.CacheManager;
/**
* CachedFailuresPolicyTest
@@ -47,7 +46,8 @@ public class CachedFailuresPolicyTest
@Inject
private UrlFailureCache urlFailureCache;
- @Inject @Named(value="preDownloadPolicy#cache-failures")
+ @Inject
+ @Named( value = "preDownloadPolicy#cache-failures" )
DownloadPolicy downloadPolicy;
private DownloadPolicy lookupPolicy()
@@ -93,12 +93,12 @@ public class CachedFailuresPolicyTest
request.setProperty( "url", "http://a.bad.hostname.maven.org/path/to/resource.txt" );
// should not fail
- policy.applyPolicy( CachedFailuresPolicy.YES, request, localFile );
+ policy.applyPolicy( CachedFailuresPolicy.YES, request, localFile );
// status Yes Not In cache
-
+
// Yes in Cache
String url = "http://a.bad.hostname.maven.org/path/to/resource.txt";
-
+
urlFailureCache.cacheFailure( url );
request.setProperty( "url", url );
@@ -112,5 +112,5 @@ public class CachedFailuresPolicyTest
{
// expected path.
}
- }
+ }
}