File tree 7 files changed +25
-18
lines changed
src/main/java/io/avaje/inject/generator
src/test/java/org/example 7 files changed +25
-18
lines changed Original file line number Diff line number Diff line change 12
12
strategy :
13
13
fail-fast : false
14
14
matrix :
15
- java_version : [11,17, 21]
15
+ java_version : [21]
16
16
os : [ubuntu-latest]
17
17
18
18
steps :
Original file line number Diff line number Diff line change 43
43
<dependency >
44
44
<groupId >io.avaje</groupId >
45
45
<artifactId >avaje-http-api</artifactId >
46
- <version >3.1 </version >
46
+ <version >3.2 </version >
47
47
<optional >true</optional >
48
48
<scope >provided</scope >
49
49
</dependency >
59
59
<dependency >
60
60
<groupId >io.avaje</groupId >
61
61
<artifactId >avaje-http-client</artifactId >
62
- <version >3.1 </version >
62
+ <version >3.2 </version >
63
63
<scope >test</scope >
64
64
</dependency >
65
65
Original file line number Diff line number Diff line change 8
8
*/
9
9
final class RequestScope {
10
10
11
- private static final String JEX_CONTEXT = "io.avaje.jex.Context" ;
11
+ private static final String JEX_CONTEXT = "io.avaje.jex.http. Context" ;
12
12
private static final String JAVALIN_CONTEXT = "io.javalin.http.Context" ;
13
13
private static final String HELIDON_REQ = "io.helidon.webserver.ServerRequest" ;
14
14
private static final String HELIDON_RES = "io.helidon.webserver.ServerResponse" ;
Original file line number Diff line number Diff line change 77
77
<dependency >
78
78
<groupId >io.avaje</groupId >
79
79
<artifactId >avaje-http-api</artifactId >
80
- <version >3.1 </version >
80
+ <version >3.2 </version >
81
81
<scope >test</scope >
82
82
</dependency >
83
83
84
84
<dependency >
85
85
<groupId >io.avaje</groupId >
86
86
<artifactId >avaje-http-client</artifactId >
87
- <version >3.1 </version >
87
+ <version >3.2 </version >
88
88
<scope >test</scope >
89
89
</dependency >
90
90
91
91
<dependency >
92
92
<groupId >io.avaje</groupId >
93
93
<artifactId >avaje-jex</artifactId >
94
- <version >2.5</version >
94
+ <version >3.0</version >
95
+ <scope >test</scope >
96
+ </dependency >
97
+
98
+ <dependency >
99
+ <groupId >io.avaje</groupId >
100
+ <artifactId >avaje-jsonb</artifactId >
101
+ <version >3.2</version >
95
102
<scope >test</scope >
96
103
</dependency >
97
104
Original file line number Diff line number Diff line change 1
1
package org .example .custom ;
2
2
3
- import io .avaje .inject .BeanEntry ;
4
- import io .avaje .inject .BeanScope ;
3
+ import static java .util .stream .Collectors .toList ;
4
+ import static org .assertj .core .api .Assertions .assertThat ;
5
+
6
+ import java .util .List ;
7
+ import java .util .Optional ;
8
+
5
9
import org .example .MyCustomScope ;
6
10
import org .example .coffee .CoffeeMaker ;
7
11
import org .example .custom .loc .LocalExternal ;
8
12
import org .junit .jupiter .api .Test ;
9
13
import org .mockito .Mockito ;
10
14
11
- import java .util .List ;
12
- import java .util .Optional ;
13
-
14
- import static java .util .stream .Collectors .toList ;
15
- import static org .assertj .core .api .Assertions .assertThat ;
15
+ import io .avaje .inject .BeanEntry ;
16
+ import io .avaje .inject .BeanScope ;
16
17
17
18
class CustomScopeTest {
18
19
@@ -80,7 +81,7 @@ void customScopeAll() {
80
81
81
82
// includes the 2 supplied beans
82
83
final List <BeanEntry > all = beanScope .all ();
83
- assertThat (all ).hasSize (7 );
84
+ assertThat (all ).hasSize (8 );
84
85
85
86
final CustomBean customBean = beanScope .get (CustomBean .class );
86
87
Original file line number Diff line number Diff line change 2
2
3
3
4
4
import io .avaje .http .api .Controller ;
5
- import io .avaje .jex .Context ;
6
-
5
+ import io .avaje .jex .http .Context ;
7
6
import jakarta .inject .Inject ;
8
7
9
8
@ Controller
Original file line number Diff line number Diff line change 1
1
package org .example .request ;
2
2
3
3
import io .avaje .inject .xtra .ApplicationScope ;
4
- import io .avaje .jex .Context ;
4
+ import io .avaje .jex .http . Context ;
5
5
import org .junit .jupiter .api .Test ;
6
6
import org .mockito .Mockito ;
7
7
You can’t perform that action at this time.
0 commit comments