File tree Expand file tree Collapse file tree 13 files changed +338
-69
lines changed
main/java/io/avaje/jex/core/json
test/java/io/avaje/jex/core Expand file tree Collapse file tree 13 files changed +338
-69
lines changed Original file line number Diff line number Diff line change 44 <parent >
55 <artifactId >avaje-jex-parent</artifactId >
66 <groupId >io.avaje</groupId >
7- <version >3.0-RC10 </version >
7+ <version >3.0-RC11 </version >
88 </parent >
99
1010 <artifactId >avaje-jex-freemarker</artifactId >
1818 <dependency >
1919 <groupId >io.avaje</groupId >
2020 <artifactId >avaje-jex</artifactId >
21- <version >${project.version} </version >
2221 <scope >provided</scope >
2322 </dependency >
2423
2827 <version >${freemarker.version} </version >
2928 </dependency >
3029
30+ <dependency >
31+ <groupId >io.avaje</groupId >
32+ <artifactId >avaje-spi-service</artifactId >
33+ <scope >provided</scope >
34+ </dependency >
35+
3136 <!-- test dependencies -->
3237 <dependency >
3338 <groupId >com.fasterxml.jackson.core</groupId >
3944 <dependency >
4045 <groupId >io.avaje</groupId >
4146 <artifactId >avaje-jex-test</artifactId >
42- <version >${project.version} </version >
4347 <scope >test</scope >
4448 </dependency >
4549
Original file line number Diff line number Diff line change 66 <parent >
77 <groupId >io.avaje</groupId >
88 <artifactId >avaje-jex-parent</artifactId >
9- <version >3.0-RC10 </version >
9+ <version >3.0-RC11 </version >
1010 </parent >
1111
1212 <artifactId >avaje-jex-htmx</artifactId >
1313
1414 <properties >
15- <avaje-htmx-api .version>2.8</avaje-htmx-api .version>
1615 </properties >
1716
1817 <dependencies >
1918 <dependency >
2019 <groupId >io.avaje</groupId >
2120 <artifactId >avaje-htmx-api</artifactId >
22- <version >${avaje-htmx-api.version} </version >
2321 </dependency >
2422 <dependency >
2523 <groupId >io.avaje</groupId >
2624 <artifactId >avaje-jex</artifactId >
27- <version >${project.version} </version >
2825 </dependency >
2926 </dependencies >
3027
Original file line number Diff line number Diff line change 44 <parent >
55 <artifactId >avaje-jex-parent</artifactId >
66 <groupId >io.avaje</groupId >
7- <version >3.0-RC10 </version >
7+ <version >3.0-RC11 </version >
88 </parent >
99
1010 <artifactId >avaje-jex-mustache</artifactId >
2222 <scope >provided</scope >
2323 </dependency >
2424
25+ <dependency >
26+ <groupId >io.avaje</groupId >
27+ <artifactId >avaje-spi-service</artifactId >
28+ <version >2.8</version >
29+ <scope >provided</scope >
30+ </dependency >
31+
2532 <dependency >
2633 <groupId >com.github.spullara.mustache.java</groupId >
2734 <artifactId >compiler</artifactId >
4350 <version >${project.version} </version >
4451 <scope >test</scope >
4552 </dependency >
46-
4753 </dependencies >
4854
4955</project >
Original file line number Diff line number Diff line change 55 <parent >
66 <groupId >io.avaje</groupId >
77 <artifactId >avaje-jex-parent</artifactId >
8- <version >3.0-RC10 </version >
8+ <version >3.0-RC11 </version >
99 </parent >
1010 <artifactId >avaje-jex-static-content</artifactId >
1111 <dependencies >
Original file line number Diff line number Diff line change 44 <parent >
55 <artifactId >avaje-jex-parent</artifactId >
66 <groupId >io.avaje</groupId >
7- <version >3.0-RC10 </version >
7+ <version >3.0-RC11 </version >
88 </parent >
99
1010 <artifactId >avaje-jex-test</artifactId >
1414 <dependency >
1515 <groupId >io.avaje</groupId >
1616 <artifactId >avaje-jex</artifactId >
17- <version >${project.version} </version >
1817 <scope >provided</scope >
1918 </dependency >
2019
20+ <dependency >
21+ <groupId >io.avaje</groupId >
22+ <artifactId >junit</artifactId >
23+ <version >1.5</version >
24+ </dependency >
25+
2126 <dependency >
2227 <groupId >io.avaje</groupId >
2328 <artifactId >avaje-http-client</artifactId >
24- <version >2.9-RC4</version >
2529 </dependency >
2630
2731 <!-- dependency injection component testing -->
2832 <dependency >
2933 <groupId >io.avaje</groupId >
3034 <artifactId >avaje-inject-test</artifactId >
31- <version >11.0</version >
3235 <optional >true</optional >
3336 </dependency >
3437
3740 <artifactId >jackson-databind</artifactId >
3841 <version >${jackson.version} </version >
3942 </dependency >
40-
4143 </dependencies >
4244
4345</project >
Original file line number Diff line number Diff line change 44 <parent >
55 <groupId >io.avaje</groupId >
66 <artifactId >avaje-jex-parent</artifactId >
7- <version >3.0-RC10 </version >
7+ <version >3.0-RC11 </version >
88 </parent >
99
1010 <artifactId >avaje-jex</artifactId >
1717 <dependency >
1818 <groupId >io.avaje</groupId >
1919 <artifactId >avaje-config</artifactId >
20- <version >4.0</version >
2120 <optional >true</optional >
2221 </dependency >
2322
2423 <dependency >
2524 <groupId >io.avaje</groupId >
2625 <artifactId >avaje-inject</artifactId >
27- <version >11.0</version >
2826 <optional >true</optional >
2927 </dependency >
3028
29+ <dependency >
30+ <groupId >io.avaje</groupId >
31+ <artifactId >avaje-spi-service</artifactId >
32+ <scope >provided</scope >
33+ </dependency >
34+
3135 <dependency >
3236 <groupId >com.fasterxml.jackson.core</groupId >
3337 <artifactId >jackson-databind</artifactId >
3842 <dependency >
3943 <groupId >io.avaje</groupId >
4044 <artifactId >avaje-jsonb</artifactId >
41- <version >2.4</version >
4245 <optional >true</optional >
4346 </dependency >
4447
4548 <dependency >
4649 <groupId >io.avaje</groupId >
4750 <artifactId >avaje-jsonb-generator</artifactId >
48- <version >2.4</version >
51+ <scope >test</scope >
52+ </dependency >
53+
54+ <dependency >
55+ <groupId >io.avaje</groupId >
56+ <artifactId >junit</artifactId >
57+ <version >1.5</version >
58+ <scope >test</scope >
59+ </dependency >
60+ <dependency >
61+ <groupId >io.avaje</groupId >
62+ <artifactId >avaje-http-client</artifactId >
4963 <scope >test</scope >
5064 </dependency >
5165 </dependencies >
Original file line number Diff line number Diff line change 11package io .avaje .jex .core .json ;
22
3- import io .avaje .jex .spi .JsonService ;
4- import io .avaje .jsonb .JsonType ;
5- import io .avaje .jsonb .JsonWriter ;
6- import io .avaje .jsonb .Jsonb ;
7-
83import java .io .InputStream ;
94import java .io .OutputStream ;
105import java .lang .reflect .Type ;
116import java .util .Iterator ;
127
8+ import io .avaje .jex .spi .JsonService ;
9+ import io .avaje .json .JsonWriter ;
10+ import io .avaje .jsonb .JsonType ;
11+ import io .avaje .jsonb .Jsonb ;
12+
1313/** Provides JsonService using avaje-jsonb. */
1414public final class JsonbJsonService implements JsonService {
1515
Original file line number Diff line number Diff line change 11package io .avaje .jex .core ;
22
3- import io .avaje .jex .Jex ;
4- import io .avaje .jex .http .BadRequestException ;
5- import io .avaje .jex .http .ErrorCode ;
6- import io .avaje .jex .http .HttpResponseException ;
7- import io .avaje .jsonb .JsonException ;
8-
9- import org .junit .jupiter .api .AfterAll ;
10- import org .junit .jupiter .api .Test ;
3+ import static org .assertj .core .api .Assertions .assertThat ;
114
125import java .net .http .HttpResponse ;
136import java .util .Map ;
147
15- import static org .assertj .core .api .Assertions .assertThat ;
8+ import org .junit .jupiter .api .AfterAll ;
9+ import org .junit .jupiter .api .Test ;
10+
11+ import io .avaje .jex .Jex ;
12+ import io .avaje .jex .http .BadRequestException ;
13+ import io .avaje .jex .http .ErrorCode ;
14+ import io .avaje .jex .http .HttpResponseException ;
15+ import io .avaje .json .JsonException ;
1616
1717class ExceptionManagerTest {
1818
Original file line number Diff line number Diff line change 1111import java .util .concurrent .locks .LockSupport ;
1212import java .util .stream .Stream ;
1313
14- import io .avaje .jsonb .Json ;
15- import io .avaje .jsonb .JsonType ;
16- import io .avaje .jsonb .Jsonb ;
17- import io .avaje .jsonb .Types ;
18-
1914import org .junit .jupiter .api .AfterAll ;
2015import org .junit .jupiter .api .Test ;
2116
2217import io .avaje .jex .Jex ;
2318import io .avaje .jex .core .json .JacksonJsonService ;
19+ import io .avaje .jsonb .Json ;
20+ import io .avaje .jsonb .JsonType ;
21+ import io .avaje .jsonb .Jsonb ;
22+ import io .avaje .jsonb .Types ;
2423
2524public class JsonTest {
2625
Original file line number Diff line number Diff line change 2424 <dependency >
2525 <groupId >io.avaje</groupId >
2626 <artifactId >avaje-jex</artifactId >
27- <version >3.0-RC10 </version >
27+ <version >3.0-RC11 </version >
2828 </dependency >
2929
3030 <dependency >
You can’t perform that action at this time.
0 commit comments