@@ -40,7 +40,7 @@ public void convertToUUIDProperty()throws Exception{
4040 " format: uuid\n " ;
4141
4242 Operation operation = Yaml .mapper ().readValue (yaml , Operation .class );
43- Response response = operation .getResponses ().get ("200" );
43+ Response response = operation .getResponsesObject ().get ("200" );
4444 Assert .assertNotNull (response );
4545 Property property = response .getSchema ();
4646
@@ -63,7 +63,7 @@ public void convertToEmailProperty()throws Exception{
6363 " format: email\n " ;
6464
6565 Operation operation = Yaml .mapper ().readValue (yaml , Operation .class );
66- Response response = operation .getResponses ().get ("200" );
66+ Response response = operation .getResponsesObject ().get ("200" );
6767 Assert .assertNotNull (response );
6868 Property property = response .getSchema ();
6969
@@ -85,7 +85,7 @@ public void convertToBooleanProperty()throws Exception{
8585 " type: boolean\n " ;
8686
8787 Operation operation = Yaml .mapper ().readValue (yaml , Operation .class );
88- Response response = operation .getResponses ().get ("200" );
88+ Response response = operation .getResponsesObject ().get ("200" );
8989 Assert .assertNotNull (response );
9090 Property property = response .getSchema ();
9191
@@ -107,7 +107,7 @@ public void convertToDateProperty()throws Exception{
107107 " format: date\n " ;
108108
109109 Operation operation = Yaml .mapper ().readValue (yaml , Operation .class );
110- Response response = operation .getResponses ().get ("200" );
110+ Response response = operation .getResponsesObject ().get ("200" );
111111 Assert .assertNotNull (response );
112112 Property property = response .getSchema ();
113113
@@ -130,7 +130,7 @@ public void convertToDateTimeProperty()throws Exception{
130130 " format: date-time\n " ;
131131
132132 Operation operation = Yaml .mapper ().readValue (yaml , Operation .class );
133- Response response = operation .getResponses ().get ("200" );
133+ Response response = operation .getResponsesObject ().get ("200" );
134134 Assert .assertNotNull (response );
135135 Property property = response .getSchema ();
136136
@@ -153,7 +153,7 @@ public void convertToStringProperty()throws Exception{
153153 " format: password\n " ;
154154
155155 Operation operation = Yaml .mapper ().readValue (yaml , Operation .class );
156- Response response = operation .getResponses ().get ("200" );
156+ Response response = operation .getResponsesObject ().get ("200" );
157157 Assert .assertNotNull (response );
158158 Property property = response .getSchema ();
159159
@@ -178,7 +178,7 @@ public void convertToStringWithEnumProperty()throws Exception{
178178 " - b\n " ;
179179
180180 Operation operation = Yaml .mapper ().readValue (yaml , Operation .class );
181- Response response = operation .getResponses ().get ("200" );
181+ Response response = operation .getResponsesObject ().get ("200" );
182182 Assert .assertNotNull (response );
183183 Property property = response .getSchema ();
184184
@@ -202,7 +202,7 @@ public void convertToStringNewProperty()throws Exception{
202202 " pattern: Pattern\n " ;
203203
204204 Operation operation = Yaml .mapper ().readValue (yaml , Operation .class );
205- Response response = operation .getResponses ().get ("200" );
205+ Response response = operation .getResponsesObject ().get ("200" );
206206 Assert .assertNotNull (response );
207207 Property property = response .getSchema ();
208208
@@ -226,7 +226,7 @@ public void convertToBinaryProperty()throws Exception{
226226 " format: binary\n " ;
227227
228228 Operation operation = Yaml .mapper ().readValue (yaml , Operation .class );
229- Response response = operation .getResponses ().get ("200" );
229+ Response response = operation .getResponsesObject ().get ("200" );
230230 Assert .assertNotNull (response );
231231 Property property = response .getSchema ();
232232
@@ -249,7 +249,7 @@ public void convertToDoubleProperty()throws Exception{
249249 " format: double\n " ;
250250
251251 Operation operation = Yaml .mapper ().readValue (yaml , Operation .class );
252- Response response = operation .getResponses ().get ("200" );
252+ Response response = operation .getResponsesObject ().get ("200" );
253253 Assert .assertNotNull (response );
254254 Property property = response .getSchema ();
255255
@@ -274,7 +274,7 @@ public void convertToNumericNewProperties()throws Exception{
274274 " format: double\n " ;
275275
276276 Operation operation = Yaml .mapper ().readValue (yaml , Operation .class );
277- Response response = operation .getResponses ().get ("200" );
277+ Response response = operation .getResponsesObject ().get ("200" );
278278 Assert .assertNotNull (response );
279279 Property property = response .getSchema ();
280280
@@ -299,7 +299,7 @@ public void convertToByteArrayProperty()throws Exception{
299299 " format: byte\n " ;
300300
301301 Operation operation = Yaml .mapper ().readValue (yaml , Operation .class );
302- Response response = operation .getResponses ().get ("200" );
302+ Response response = operation .getResponsesObject ().get ("200" );
303303 Assert .assertNotNull (response );
304304 Property property = response .getSchema ();
305305
@@ -322,7 +322,7 @@ public void convertToLongProperty()throws Exception{
322322 " format: int64\n " ;
323323
324324 Operation operation = Yaml .mapper ().readValue (yaml , Operation .class );
325- Response response = operation .getResponses ().get ("200" );
325+ Response response = operation .getResponsesObject ().get ("200" );
326326 Assert .assertNotNull (response );
327327 Property property = response .getSchema ();
328328
@@ -345,7 +345,7 @@ public void convertToIntegerProperty()throws Exception{
345345 " format: int32\n " ;
346346
347347 Operation operation = Yaml .mapper ().readValue (yaml , Operation .class );
348- Response response = operation .getResponses ().get ("200" );
348+ Response response = operation .getResponsesObject ().get ("200" );
349349 Assert .assertNotNull (response );
350350 Property property = response .getSchema ();
351351
@@ -371,7 +371,7 @@ public void convertToArrayProperty()throws Exception{
371371 " example: 1985-04-12T23:20:50.52Z" ;
372372
373373 Operation operation = Yaml .mapper ().readValue (yaml , Operation .class );
374- Response response = operation .getResponses ().get ("200" );
374+ Response response = operation .getResponsesObject ().get ("200" );
375375 Assert .assertNotNull (response );
376376 Property property = response .getSchema ();
377377
@@ -596,7 +596,7 @@ public void convertStringProperty()throws Exception{
596596
597597 Path string = swagger .getPaths ().get ("/string" );
598598 Operation operation = string .getOperations ().get (0 );
599- Response response = operation .getResponses ().get ("200" );
599+ Response response = operation .getResponsesObject ().get ("200" );
600600 Property property = response .getSchema ();
601601
602602 PropertyModelConverter converter = new PropertyModelConverter ();
@@ -619,7 +619,7 @@ public void convertStringPropertyWithEnum()throws Exception{
619619
620620 Path string = swagger .getPaths ().get ("/stringenum" );
621621 Operation operation = string .getOperations ().get (0 );
622- Response response = operation .getResponses ().get ("200" );
622+ Response response = operation .getResponsesObject ().get ("200" );
623623 Property property = response .getSchema ();
624624
625625 Assert .assertEquals (((StringProperty )property ).getEnum ().size (),2 );
@@ -645,7 +645,7 @@ public void convertStringRefProperty()throws Exception{
645645
646646 Path string = swagger .getPaths ().get ("/stringRef" );
647647 Operation operation = string .getOperations ().get (0 );
648- Response response = operation .getResponses ().get ("200" );
648+ Response response = operation .getResponsesObject ().get ("200" );
649649 Property property = response .getSchema ();
650650
651651 PropertyModelConverter converter = new PropertyModelConverter ();
@@ -667,7 +667,7 @@ public void convertBooleanProperty()throws Exception{
667667
668668 Path string = swagger .getPaths ().get ("/boolean" );
669669 Operation operation = string .getOperations ().get (0 );
670- Response response = operation .getResponses ().get ("200" );
670+ Response response = operation .getResponsesObject ().get ("200" );
671671 Property property = response .getSchema ();
672672
673673 PropertyModelConverter converter = new PropertyModelConverter ();
@@ -690,7 +690,7 @@ public void convertNumberProperty()throws Exception{
690690
691691 Path string = swagger .getPaths ().get ("/number" );
692692 Operation operation = string .getOperations ().get (0 );
693- Response response = operation .getResponses ().get ("200" );
693+ Response response = operation .getResponsesObject ().get ("200" );
694694 Property property = response .getSchema ();
695695
696696 PropertyModelConverter converter = new PropertyModelConverter ();
@@ -713,7 +713,7 @@ public void convertArrayProperty()throws Exception{
713713
714714 Path string = swagger .getPaths ().get ("/arrayOfInt" );
715715 Operation operation = string .getOperations ().get (0 );
716- Response response = operation .getResponses ().get ("200" );
716+ Response response = operation .getResponsesObject ().get ("200" );
717717 Property property = response .getSchema ();
718718
719719 PropertyModelConverter converter = new PropertyModelConverter ();
@@ -736,7 +736,7 @@ public void convertArrayOfRefProperty()throws Exception{
736736
737737 Path string = swagger .getPaths ().get ("/arrayOfRef" );
738738 Operation operation = string .getOperations ().get (0 );
739- Response response = operation .getResponses ().get ("200" );
739+ Response response = operation .getResponsesObject ().get ("200" );
740740 Property property = response .getSchema ();
741741
742742 PropertyModelConverter converter = new PropertyModelConverter ();
@@ -761,7 +761,7 @@ public void convertArrayRefProperty()throws Exception{
761761
762762 Path string = swagger .getPaths ().get ("/arrayRef" );
763763 Operation operation = string .getOperations ().get (0 );
764- Response response = operation .getResponses ().get ("200" );
764+ Response response = operation .getResponsesObject ().get ("200" );
765765 Property property = response .getSchema ();
766766
767767 PropertyModelConverter converter = new PropertyModelConverter ();
@@ -783,7 +783,7 @@ public void convertObjectProperty()throws Exception{
783783
784784 Path string = swagger .getPaths ().get ("/object" );
785785 Operation operation = string .getOperations ().get (0 );
786- Response response = operation .getResponses ().get ("200" );
786+ Response response = operation .getResponsesObject ().get ("200" );
787787 Property property = response .getSchema ();
788788
789789 PropertyModelConverter converter = new PropertyModelConverter ();
0 commit comments