1
1
/*
2
- * Copyright 2012-2014 the original author or authors.
2
+ * Copyright 2012-2015 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -51,7 +51,9 @@ public class AetherGrapeEngineTests {
51
51
private AetherGrapeEngine createGrapeEngine () {
52
52
return AetherGrapeEngineFactory .create (this .groovyClassLoader , Arrays
53
53
.asList (new RepositoryConfiguration ("central" , URI
54
- .create ("http://repo1.maven.org/maven2" ), false )),
54
+ .create ("http://repo1.maven.org/maven2" ), false ),
55
+ new RepositoryConfiguration ("spring-milestone" , URI
56
+ .create ("http://repo.spring.io/milestone" ), false )),
55
57
new DependencyResolutionContext ());
56
58
}
57
59
@@ -92,7 +94,7 @@ public void run() {
92
94
93
95
List <RemoteRepository > repositories = (List <RemoteRepository >) ReflectionTestUtils
94
96
.getField (grapeEngine , "repositories" );
95
- assertEquals (1 , repositories .size ());
97
+ assertEquals (2 , repositories .size ());
96
98
assertEquals ("central-mirror" , repositories .get (0 ).getId ());
97
99
}
98
100
});
@@ -109,7 +111,7 @@ public void run() {
109
111
110
112
List <RemoteRepository > repositories = (List <RemoteRepository >) ReflectionTestUtils
111
113
.getField (grapeEngine , "repositories" );
112
- assertEquals (1 , repositories .size ());
114
+ assertEquals (2 , repositories .size ());
113
115
Authentication authentication = repositories .get (0 ).getAuthentication ();
114
116
assertNotNull (authentication );
115
117
}
0 commit comments