File tree Expand file tree Collapse file tree 6 files changed +28
-6
lines changed
src/test/kotlin/io/tolgee/ee
selfHostedLimitsAndReporting Expand file tree Collapse file tree 6 files changed +28
-6
lines changed Original file line number Diff line number Diff line change @@ -267,3 +267,8 @@ ktlint {
267
267
exclude(" **/PluralData.kt" )
268
268
}
269
269
}
270
+
271
+ hibernate {
272
+ // Block is required for Bytecode Enhancement to happen
273
+ enhancement {}
274
+ }
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ dependencies {
98
98
/**
99
99
* Excel file generation
100
100
*/
101
- implementation ' org.apache.poi:poi-ooxml:5.3 .0'
101
+ implementation ' org.apache.poi:poi-ooxml:5.4 .0'
102
102
implementation ' org.apache.commons:commons-collections4:4.4'
103
103
104
104
/**
@@ -107,8 +107,16 @@ dependencies {
107
107
implementation(' com.github.jknack:handlebars:4.4.0' )
108
108
}
109
109
110
+ java {
111
+ toolchain {
112
+ languageVersion = JavaLanguageVersion . of(21 )
113
+ }
114
+ }
115
+
110
116
kotlin {
111
- jvmToolchain(21 )
117
+ compilerOptions {
118
+ freeCompilerArgs. addAll(" -Xjsr305=strict" )
119
+ }
112
120
}
113
121
114
122
dependencyManagement {
Original file line number Diff line number Diff line change @@ -63,8 +63,16 @@ dependencies {
63
63
testImplementation libs. jacksonModuleKotlin
64
64
}
65
65
66
+ java {
67
+ toolchain {
68
+ languageVersion = JavaLanguageVersion . of(21 )
69
+ }
70
+ }
71
+
66
72
kotlin {
67
- jvmToolchain(21 )
73
+ compilerOptions {
74
+ freeCompilerArgs. addAll(" -Xjsr305=strict" )
75
+ }
68
76
}
69
77
70
78
dependencyManagement {
Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ class WebhookAutomationTest : ProjectAuthControllerTest("/v2/projects/") {
113
113
val signature = httpEntity.headers[" Tolgee-Signature" ]
114
114
signature.assert .isNotNull
115
115
verifyWebhookSignatureHeader(
116
- httpEntity.body,
116
+ httpEntity.body!! ,
117
117
signature!! .single(),
118
118
secret,
119
119
300000 ,
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ class EeSubscriptionUsageControllerTest : AuthorizedControllerTest() {
96
96
node(" isPayAsYouGo" ).isEqualTo(true )
97
97
}
98
98
99
- val body = this .captor.allValues.single().body
99
+ val body = this .captor.allValues.single().body!!
100
100
assertThatJson(body) {
101
101
node(" licenseKey" ).isEqualTo(" mock" )
102
102
}
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ import org.springframework.boot.test.context.SpringBootTest
27
27
import org.springframework.boot.test.mock.mockito.MockBean
28
28
import org.springframework.boot.test.mock.mockito.SpyBean
29
29
import org.springframework.boot.web.client.RestTemplateBuilder
30
+ import org.springframework.http.HttpHeaders
30
31
import org.springframework.http.HttpMethod.POST
31
32
import org.springframework.http.HttpStatus
32
33
import org.springframework.web.client.HttpClientErrorException
@@ -116,7 +117,7 @@ class CreditLimitTest : ProjectAuthControllerTest("/v2/projects/") {
116
117
HttpClientErrorException .create(
117
118
HttpStatus .BAD_REQUEST ,
118
119
" Mocked response" ,
119
- null ,
120
+ HttpHeaders () ,
120
121
""" {"code": "$errorCode "}""" .toByteArray(),
121
122
null ,
122
123
)
You can’t perform that action at this time.
0 commit comments