99import java .util .List ;
1010import java .util .Map ;
1111
12- import com .fasterxml .jackson .databind .JsonNode ;
13- import com .fasterxml .jackson .databind .ObjectMapper ;
14- import io .restassured .path .json .JsonPath ;
15- import org .junit .jupiter .api .Assertions ;
1612import org .junit .jupiter .api .Test ;
1713
1814import com .redhat .labs .lodestar .utils .ResourceLoader ;
@@ -51,7 +47,7 @@ void testGetRuntimeConfigurationNoType() {
5147 String response = given ().when ().contentType (ContentType .JSON ).get ()
5248 .then ().statusCode (200 ).extract ().asString ();
5349
54- Assertions . assertEquals (expectedResponse , response );
50+ assertEquals (expectedResponse , response );
5551
5652 }
5753
@@ -61,7 +57,7 @@ void testGetRuntimeConfigurationTypeOne() throws Exception {
6157 String response = given ().when ().contentType (ContentType .JSON ).queryParam ("type" , "TypeOne" ).get ()
6258 .then ().statusCode (200 ).extract ().asString ();
6359
64- Assertions . assertEquals (expectedResponse , response );
60+ assertEquals (expectedResponse , response );
6561
6662 }
6763
@@ -71,7 +67,7 @@ void testGetRuntimeConfigurationTypeTwo() {
7167 String response = given ().when ().contentType (ContentType .JSON ).queryParam ("type" , "TypeTwo" ).get ()
7268 .then ().statusCode (200 ).extract ().asString ();
7369
74- Assertions . assertEquals (expectedResponse , response );
70+ assertEquals (expectedResponse , response );
7571
7672 }
7773
@@ -106,4 +102,20 @@ void testGetEngagementOptions() {
106102
107103 }
108104
105+ @ Test
106+ void testGetParticipantOptions () {
107+ given ().when ().contentType (ContentType .JSON ).get ("participant/options" )
108+ .then ().statusCode (200 ).body ("size()" , equalTo (2 ))
109+ .body ("jurist" , equalTo ("Jurist" )).body ("judge" , equalTo ("Judge" ));
110+
111+ }
112+
113+ @ Test
114+ void testGetParticipantOptionsTyped () {
115+ given ().queryParam ("engagementType" , "TypeTwo" ).when ().contentType (ContentType .JSON ).get ("participant/options" )
116+ .then ().statusCode (200 ).body ("size()" , equalTo (2 ))
117+ .body ("plaintiff" , equalTo ("Plaintiff" )).body ("defendant" , equalTo ("Defendant" ));
118+
119+ }
120+
109121}
0 commit comments