org.springframework.lang.NonNullApi Java Examples
The following examples show how to use
org.springframework.lang.NonNullApi.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AnnotationUtilsTests.java From spring-analysis-note with MIT License | 5 votes |
@Test public void isAnnotationMetaPresentForPlainType() { assertTrue(isAnnotationMetaPresent(Order.class, Documented.class)); assertTrue(isAnnotationMetaPresent(NonNullApi.class, Documented.class)); assertTrue(isAnnotationMetaPresent(NonNullApi.class, Nonnull.class)); assertTrue(isAnnotationMetaPresent(ParametersAreNonnullByDefault.class, Nonnull.class)); }
Example #2
Source File: AnnotatedElementUtilsTests.java From spring-analysis-note with MIT License | 5 votes |
@Test public void isAnnotatedForPlainTypes() { assertTrue(isAnnotated(Order.class, Documented.class)); assertTrue(isAnnotated(NonNullApi.class, Documented.class)); assertTrue(isAnnotated(NonNullApi.class, Nonnull.class)); assertTrue(isAnnotated(ParametersAreNonnullByDefault.class, Nonnull.class)); }
Example #3
Source File: AnnotatedElementUtilsTests.java From spring-analysis-note with MIT License | 5 votes |
@Test public void hasAnnotationForPlainTypes() { assertTrue(hasAnnotation(Order.class, Documented.class)); assertTrue(hasAnnotation(NonNullApi.class, Documented.class)); assertTrue(hasAnnotation(NonNullApi.class, Nonnull.class)); assertTrue(hasAnnotation(ParametersAreNonnullByDefault.class, Nonnull.class)); }
Example #4
Source File: AnnotatedElementUtilsTests.java From spring-analysis-note with MIT License | 5 votes |
@Test public void getAllAnnotationAttributesOnLangType() { MultiValueMap<String, Object> attributes = getAllAnnotationAttributes( NonNullApi.class, Nonnull.class.getName()); assertNotNull("Annotation attributes map for @Nonnull on NonNullApi", attributes); assertEquals("value for NonNullApi", asList(When.ALWAYS), attributes.get("when")); }