resolved package dependency tangles
This commit is contained in:
@@ -219,21 +219,6 @@ public class AnnotationUtilsTests {
|
||||
assertNotNull(order);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void findAllComponentAnnotationAttributes() throws IOException {
|
||||
List<Map<String,Object>> allAttribs =
|
||||
AnnotationUtils.findAllAnnotationAttributes(Component.class,
|
||||
HasLocalAndMetaComponentAnnotation.class.getName(), false,
|
||||
new SimpleMetadataReaderFactory());
|
||||
|
||||
Object value = null;
|
||||
for (Map<String, Object> attribs : allAttribs) {
|
||||
value = attribs.get("value");
|
||||
}
|
||||
|
||||
assertThat(allAttribs.size(), is(3));
|
||||
assertEquals("local", value);
|
||||
}
|
||||
|
||||
@Component(value="meta1")
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
|
||||
@@ -14,18 +14,18 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.core.io;
|
||||
|
||||
import static org.hamcrest.CoreMatchers.is;
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertThat;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
package org.springframework.core.io.support;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import org.easymock.internal.matchers.StartsWith;
|
||||
import org.junit.Test;
|
||||
|
||||
import org.springframework.core.env.PropertySource;
|
||||
import org.springframework.core.io.ByteArrayResource;
|
||||
import org.springframework.core.io.ClassPathResource;
|
||||
|
||||
import static org.hamcrest.CoreMatchers.*;
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
/**
|
||||
* Unit tests for {@link ResourcePropertySource}.
|
||||
Reference in New Issue
Block a user