Skip to content
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

Integration with REST-assured #134

Merged
merged 1 commit into from
Jan 20, 2020
Merged

Conversation

aguibert
Copy link
Member

@aguibert aguibert commented Jan 16, 2020

Add integration with REST-assured if it's on the classpath. This will save the user from needing to write the following code:

RestAssured.baseURI = "http://" + app.getContainerIpAddress() + "/myservice";
RestAssured.basePath = "/myapp";
RestAssured.port = app.getFirstMappedPort();

RestAssured.config = RestAssured.config.objectMapperConfig(ObjectMapperConfig.objectMapperConfig()
                                    .defaultObjectMapperType(ObjectMapperType.JSONB));

This can't be merged yet because neither the ObjectMapperType.JSONB enum nor the objectMapper(ObjectMapperType) config methods exist yet, but I've proposed both to REST-assured in this PR: rest-assured/rest-assured#1257

@aguibert aguibert added the is:enhancement New feature or request label Jan 16, 2020
@aguibert aguibert self-assigned this Jan 16, 2020
@aguibert
Copy link
Member Author

Fixes #130

@aguibert aguibert marked this pull request as ready for review January 19, 2020 19:43
@aguibert aguibert merged commit 2503a15 into MicroShed:master Jan 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is:enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant