Skip to content

Instantly share code, notes, and snippets.

View dicolasi's full-sized avatar
🎯
Focusing

Simone Di Cola dicolasi

🎯
Focusing
View GitHub Profile
error id: e15ef699-22d7-48ce-bfc7-04e94af8a17d-1: java.lang.NoClassDefFoundError: jakarta/inject/Singleton
at org.glassfish.jersey.model.ContractProvider$Builder.<clinit>(ContractProvider.java:67)
at org.glassfish.jersey.model.ContractProvider.builder(ContractProvider.java:49)
at org.glassfish.jersey.model.internal.ComponentBag.modelFor(ComponentBag.java:522)
at org.glassfish.jersey.model.internal.ComponentBag.lambda$registerModel$10(ComponentBag.java:454)
at org.glassfish.jersey.internal.Errors.process(Errors.java:292)
at org.glassfish.jersey.internal.Errors.process(Errors.java:274)
at org.glassfish.jersey.internal.Errors.process(Errors.java:205)
at org.glassfish.jersey.model.internal.ComponentBag.registerModel(ComponentBag.java:446)
at org.glassfish.jersey.model.internal.ComponentBag.register(ComponentBag.java:283)
@Test
void shouldSerialise() throws JsonProcessingException {
var response = "{\"status\":\"success\",\"region_used\":\"south_east\",\"result_count\":316,\"data\":[{\"outcode\":\"BN1\",\"avg_price\":424106.9,\"avg_price_psf\":476.4,\"avg_rent\":429.6,\"avg_yield\":\"5.3%\",\"growth_1y\":\"6.7%\",\"growth_3y\":\"17.6%\",\"growth_5y\":\"29.4%\",\"sales_per_month\":35,\"turnover\":\"9%\"},{\"outcode\":\"BN10\",\"avg_price\":361324.2,\"avg_price_psf\":331.7,\"avg_rent\":288.4,\"avg_yield\":\"4.2%\",\"growth_1y\":\"6.5%\",\"growth_3y\":\"14.2%\",\"growth_5y\":\"19.0%\",\"sales_per_month\":9,\"turnover\":\"16%\"},{\"outcode\":\"BN11\",\"avg_price\":279293.7,\"avg_price_psf\":352.4,\"avg_rent\":200,\"avg_yield\":\"3.7%\",\"growth_1y\":\"21.2%\",\"growth_3y\":\"31.4%\",\"growth_5y\":\"47.8%\",\"sales_per_month\":22,\"turnover\":\"17%\"},{\"outcode\":\"BN12\",\"avg_price\":415208.9,\"avg_price_psf\":396.05,\"avg_rent\":268,\"avg_yield\":\"3.4%\",\"growth_1y\":\"3.4%\",\"growth_3y\":\"15.9%\",\"growth_5y\