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

Map to Object #275

Open
johanhaleby opened this issue Jul 20, 2015 · 3 comments
Open

Map to Object #275

johanhaleby opened this issue Jul 20, 2015 · 3 comments

Comments

@johanhaleby
Copy link
Collaborator

From johan.ha...@gmail.com on October 06, 2011 18:54:42

E.g.

Greeting greeting = get("/something").andMap().path("greeting.firstName").and().path("greeting.lastName").to(Greeting.class);

Original issue: http://code.google.com/p/rest-assured/issues/detail?id=121

@johanhaleby
Copy link
Collaborator Author

From johan.ha...@gmail.com on October 07, 2011 00:37:50

Perhaps this should be added to JsonPath and XmlPath instead? E.g.

Greeting greeting = get("/something").jsonPath().map().includeString("greeting.firstName").and().include("greeting.lastName").to(Greeting.class);

@johanhaleby
Copy link
Collaborator Author

From johan.ha...@gmail.com on December 16, 2011 07:24:32

Perhaps:

Greeting greeting = get("/something").jsonPath().map().path("greeting.firstName", String.class).and().path("greeting.lastName").to(Greeting.class);

@johanhaleby
Copy link
Collaborator Author

From johan.ha...@gmail.com on December 16, 2011 07:26:29

Greeting greeting = get("/something").andMap().path("greeting.firstName").and().path("greeting.lastName").to(Greeting.class);

Here we could determine whether to use JsonPath or XmlPath by looking at the content-type of the response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant