File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
inject-test/src/test/java/org/example/coffee Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 3
3
import io .avaje .inject .BeanScope ;
4
4
import org .example .coffee .list .CombinedSetSomei ;
5
5
import org .example .coffee .list .CombinedSomei ;
6
+ import org .example .coffee .list .SomeInterface ;
7
+ import org .example .coffee .list .SomeInterfaceConsumer ;
6
8
import org .junit .jupiter .api .Test ;
7
9
8
10
import java .util .List ;
@@ -28,4 +30,13 @@ void test_set() {
28
30
assertThat (somes ).containsOnly ("a" , "b" , "a2" );
29
31
}
30
32
}
33
+
34
+ @ Test
35
+ void testEmptyList () {
36
+ try (BeanScope context = BeanScope .newBuilder ().build ()) {
37
+ SomeInterfaceConsumer consumer = context .get (SomeInterfaceConsumer .class );
38
+ assertThat (consumer .getList ()).isEmpty ();
39
+ System .out .println ("--------------------> works" );
40
+ }
41
+ }
31
42
}
Original file line number Diff line number Diff line change
1
+ package org .example .coffee .list ;
2
+
3
+ public interface SomeInterface {
4
+ void doSomething ();
5
+ }
You can’t perform that action at this time.
0 commit comments