Created
April 28, 2011 14:49
-
-
Save cbeams/946492 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Meta | |
| @Component(value="local") | |
| static class Simple { | |
| } | |
| @Component(value="meta") | |
| @Retention(RetentionPolicy.RUNTIME) | |
| @interface Meta { | |
| } | |
| @Test | |
| public void simple() throws IOException { | |
| Map<String, Object> annotationAttributes = | |
| new SimpleMetadataReaderFactory() | |
| .getMetadataReader(Simple.class.getName()) | |
| .getAnnotationMetadata() | |
| .getAnnotationAttributes(Component.class.getName(), true); | |
| assertEquals("local", annotationAttributes.get("value")); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment