Skip to content

Commit d096004

Browse files
committed
improve test
1 parent 49beb2d commit d096004

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

core/src/test/java/net/jbock/compiler/CollectorTest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ void invalidBothMapperAndCollectorHaveTypeargsUnresolvedCollectorTypearg() {
529529
}
530530

531531
@Test
532-
void validBothMapperCollectorAndResultTypeHaveTypeargs() {
532+
void validBothMapperCollectorAndResultHaveTypeargs() {
533533
List<String> sourceLines = withImports(
534534
"@CommandLineArguments",
535535
"abstract class ValidArguments {",
@@ -538,21 +538,21 @@ void validBothMapperCollectorAndResultTypeHaveTypeargs() {
538538
" repeatable = true,",
539539
" mappedBy = Map.class,",
540540
" collectedBy = Collect.class)",
541-
" abstract List<List<Result<String>>> map();",
541+
" abstract List<Result<String>> map();",
542542
"",
543-
" static class Map<E, F> implements Supplier<Function<E, F>> {",
543+
" static class Map<E, F extends java.util.Collection> implements Supplier<Function<E, F>> {",
544544
" public Function<E, F> get() {",
545545
" return null;",
546546
" }",
547547
" }",
548548
"",
549-
" static class Collect<E extends List> implements Supplier<Collector<E, ?, List<E>>> {",
550-
" public Collector<E, ?, List<E>> get() {",
549+
" static class Collect<E extends Result> implements Supplier<Collector<Set<E>, ?, List<E>>> {",
550+
" public Collector<Set<E>, ?, List<E>> get() {",
551551
" return null;",
552552
" }",
553553
" }",
554554
"",
555-
" static class Result<E> {}",
555+
" static class Result<E extends java.lang.CharSequence> {}",
556556
"}");
557557
JavaFileObject javaFile = forSourceLines("test.ValidArguments", sourceLines);
558558
assertAbout(javaSources()).that(singletonList(javaFile))

0 commit comments

Comments
 (0)