File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
main/java/com/packtpub/javaee8
test/java/com/packtpub/javaee8 Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ public class JsonpResource {
19
19
private JsonArray jsonArray ;
20
20
21
21
@ PostConstruct
22
+ @ HEAD
22
23
public void initialize () {
23
24
this .jsonArray = Json .createArrayBuilder ()
24
25
.add (Json .createObjectBuilder ()
Original file line number Diff line number Diff line change @@ -85,4 +85,10 @@ public void _5_GetJsonpAfterPatch() {
85
85
JsonArray jsonArray = webTarget .request ().accept (MediaType .APPLICATION_JSON ).get (JsonArray .class );
86
86
assertThat (jsonArray .getJsonObject (0 ).getString ("aString" )).isEqualTo ("Patched Json-P" );
87
87
}
88
+
89
+ @ Test
90
+ public void _99_Reset () {
91
+ Response response = webTarget .request ().head ();
92
+ assertThat (response .getStatus ()).isEqualTo (204 );
93
+ }
88
94
}
You can’t perform that action at this time.
0 commit comments