Fix tests
This commit is contained in:
parent
ff1070df36
commit
ec6ca97226
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue