This is an automated email from the ASF dual-hosted git repository.
lprimak pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/shiro.git
The following commit(s) were added to refs/heads/main by this push:
new 565c6e479 chore: fix typos in Java tests (#2524)
565c6e479 is described below
commit 565c6e4794cedd7a3f00fd917261fa11d8988435
Author: John Bampton <[email protected]>
AuthorDate: Mon Feb 9 06:59:26 2026 +1000
chore: fix typos in Java tests (#2524)
One typo was fixed in about 8 places
---
.../java/org/apache/shiro/cdi/AnnotatedTypeWrapperTest.java | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git
a/support/cdi/src/test/java/org/apache/shiro/cdi/AnnotatedTypeWrapperTest.java
b/support/cdi/src/test/java/org/apache/shiro/cdi/AnnotatedTypeWrapperTest.java
index 98ddfd512..3d3bdad34 100644
---
a/support/cdi/src/test/java/org/apache/shiro/cdi/AnnotatedTypeWrapperTest.java
+++
b/support/cdi/src/test/java/org/apache/shiro/cdi/AnnotatedTypeWrapperTest.java
@@ -97,9 +97,9 @@ class AnnotatedTypeWrapperTest {
@Test
void removeAnnotations() {
initializeStubs();
- Set<Annotation> sessionScopeAnnoationsSet =
Set.of(getAnnotation(SessionScopedAnnotated.class, SessionScoped.class));
- Set<Annotation> requiresGuestAnnoationsSet =
Set.of(getAnnotation(Annotated.class, RequiresGuest.class));
- var wrapper = new AnnotatedTypeWrapper<>(annotatedType, true,
sessionScopeAnnoationsSet, requiresGuestAnnoationsSet);
+ Set<Annotation> sessionScopeAnnotationsSet =
Set.of(getAnnotation(SessionScopedAnnotated.class, SessionScoped.class));
+ Set<Annotation> requiresGuestAnnotationsSet =
Set.of(getAnnotation(Annotated.class, RequiresGuest.class));
+ var wrapper = new AnnotatedTypeWrapper<>(annotatedType, true,
sessionScopeAnnotationsSet, requiresGuestAnnotationsSet);
assertEquals(3, wrapper.getAnnotations().size());
assertFalse(wrapper.isAnnotationPresent(RequiresGuest.class));
assertTrue(wrapper.isAnnotationPresent(SessionScoped.class));
@@ -126,10 +126,10 @@ class AnnotatedTypeWrapperTest {
initializeStubs();
when(annotatedType.getJavaClass()).thenReturn(Void.class);
assertEquals(3, annotatedType.getAnnotations().size());
- Annotation shiroSecureAnnoations =
getAnnotation(ShiroSecureAnnotated.class, ShiroSecureAnnotation.class);
- Annotation statelessAnnoations =
getAnnotation(StatelessAnnotated.class, Stateless.class);
+ Annotation shiroSecureAnnotations =
getAnnotation(ShiroSecureAnnotated.class, ShiroSecureAnnotation.class);
+ Annotation statelessAnnotations =
getAnnotation(StatelessAnnotated.class, Stateless.class);
var wrapper = new AnnotatedTypeWrapper<>(annotatedType, false,
- Set.of(shiroSecureAnnoations, statelessAnnoations),
+ Set.of(shiroSecureAnnotations, statelessAnnotations),
Set.of());
assertEquals(2, wrapper.getAnnotations().size());
assertTrue(wrapper.isAnnotationPresent(ShiroSecureAnnotation.class));