resolved package dependency tangles

This commit is contained in:
Juergen Hoeller
2011-11-29 01:16:09 +00:00
parent 686ae8f7b3
commit d6d169ac56
5 changed files with 57 additions and 78 deletions

View File

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

View File

@@ -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}.