Fix tests

This commit is contained in:
Lars Grefer 2019-08-10 17:17:31 +02:00
parent ff1070df36
commit ec6ca97226
3 changed files with 8 additions and 8 deletions

View File

@ -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();
}

View File

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

View File

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