Lars Grefer 6 anos atrás
pai
commit
ec6ca97226

+ 2 - 2
core/src/test/java/org/springframework/security/core/parameters/AnnotationParameterNameDiscovererTests.java

@@ -78,13 +78,13 @@ public class AnnotationParameterNameDiscovererTests {
 
 	@Test
 	public void getParameterNamesConstructor() throws Exception {
-		assertThat(discoverer.getParameterNames(Impl.class.getConstructor(String.class)))
+		assertThat(discoverer.getParameterNames(Impl.class.getDeclaredConstructor(String.class)))
 				.isEqualTo(new String[] { "id" });
 	}
 
 	@Test
 	public void getParameterNamesConstructorNoAnnotation() throws Exception {
-		assertThat(discoverer.getParameterNames(Impl.class.getConstructor(Long.class)))
+		assertThat(discoverer.getParameterNames(Impl.class.getDeclaredConstructor(Long.class)))
 				.isNull();
 	}
 

+ 3 - 3
messaging/src/test/java/org/springframework/security/messaging/context/AuthenticationPrincipalArgumentResolverTests.java

@@ -258,14 +258,14 @@ public class AuthenticationPrincipalArgumentResolverTests {
 		public final String property = "property";
 	}
 
-	static class CopyUserPrincipal {
+	public static class CopyUserPrincipal {
 		public final String property;
 
-		CopyUserPrincipal(String property) {
+		public CopyUserPrincipal(String property) {
 			this.property = property;
 		}
 
-		CopyUserPrincipal(CopyUserPrincipal toCopy) {
+		public CopyUserPrincipal(CopyUserPrincipal toCopy) {
 			this.property = toCopy.property;
 		}
 

+ 3 - 3
web/src/test/java/org/springframework/security/web/method/annotation/AuthenticationPrincipalArgumentResolverTests.java

@@ -264,14 +264,14 @@ public class AuthenticationPrincipalArgumentResolverTests {
 		public final String property = "property";
 	}
 
-	static class CopyUserPrincipal {
+	public static class CopyUserPrincipal {
 		public final String property;
 
-		CopyUserPrincipal(String property) {
+		public CopyUserPrincipal(String property) {
 			this.property = property;
 		}
 
-		CopyUserPrincipal(CopyUserPrincipal toCopy) {
+		public CopyUserPrincipal(CopyUserPrincipal toCopy) {
 			this.property = toCopy.property;
 		}