1
0
mirror of synced 2026-08-04 17:27:13 +00:00

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