-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Maven to gradle migration #188
Conversation
@@ -41,9 +41,6 @@ class K8sServiceLocatorFT extends Specification { | |||
|
|||
static WireMockRule wireMockRule | |||
|
|||
@Autowired |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unused
JavaTimeModule javaTimeModule = new JavaTimeModule(); | ||
|
||
//According to issue https://bitbucket.org/atlassian/swagger-request-validator/issues/331/timestamp-iso8601-format-issue | ||
Json.mapper().registerModule(javaTimeModule); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Issue fixed in swagger-request-validator new version
Pull Request Test Coverage Report for Build #645
💛 - Coveralls |
…in latest swagger-request-validator
a961bd8
to
921f61d
Compare
@@ -57,6 +54,7 @@ class K8sServiceLocatorFT extends Specification { | |||
wireMockRule.stop() | |||
} | |||
|
|||
@DirtiesContext(methodMode = DirtiesContext.MethodMode.BEFORE_METHOD) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After migration system properties required for this test were setting after spring context loaded, it was one possible workaraund, replaced with setting those properties in static initialization block
) | ||
.andExpect(status().isOk()) | ||
.andExpect(content().contentType("application/json;charset=UTF-8")) | ||
.andExpect(content().contentType('application/json')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
…atic initializer block to initialize system properties
Full build test:
https://github.com/HLTech/judge-d/actions/runs/1171705785