File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed
modules/coverage-report/src/test/java/org/jooby/issues Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change 1+ package org .jooby .issues ;
2+
3+ import org .jooby .test .ServerFeature ;
4+ import org .junit .Test ;
5+
6+ import java .util .ArrayList ;
7+ import java .util .List ;
8+ import java .util .Optional ;
9+
10+ public class Issue1312 extends ServerFeature {
11+
12+ public static class Person {
13+ String name ;
14+
15+ String country ;
16+
17+ Person child ;
18+
19+
20+ @ Override
21+ public String toString () {
22+ String data = name + " " + country ;
23+ if (child !=null ) {
24+ data += "; child {" + child .toString () + "}" ;
25+ }
26+ return data ;
27+ }
28+ }
29+
30+ {
31+ get ("/" , req -> {
32+ return req .params (Person .class );
33+ });
34+
35+ }
36+
37+ @ Test
38+ public void rootList () throws Exception {
39+ request ()
40+ .get ("/?name=P&country=AR&child.name=X&child.country=UY" )
41+ .expect ("[Pedro PicaPiedra]" );
42+ }
43+
44+ }
You can’t perform that action at this time.
0 commit comments