You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@juneau.apache.org by "James Bognar (Jira)" <ji...@apache.org> on 2022/06/24 17:22:00 UTC
[jira] [Closed] (JUNEAU-230) MockRest should allow you to manually specify path variables from parent resources.
[ https://issues.apache.org/jira/browse/JUNEAU-230?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
James Bognar closed JUNEAU-230.
-------------------------------
Resolution: Fixed
Implemented in 9.0.0
> MockRest should allow you to manually specify path variables from parent resources.
> -----------------------------------------------------------------------------------
>
> Key: JUNEAU-230
> URL: https://issues.apache.org/jira/browse/JUNEAU-230
> Project: Juneau
> Issue Type: Improvement
> Components: Code
> Affects Versions: 8.1.3
> Reporter: James Bognar
> Priority: Major
>
> MockRest currently doesn't allow you to easily set the value for "foo" when constructed against Child below:
> {code:java}
> @Rest(path="/foo/{foo}")
> public class Parent {...}
> @Rest(path="/child")
> public class Child {
> public String get(@Path("foo") String foo) {
> return foo;
> }
> }{code}
> Add something like the following:
> {code:java}
> MockRest.create(Child.class).path("foo","bar").build();
> {code}
--
This message was sent by Atlassian Jira
(v8.20.7#820007)