This repository was archived by the owner on Nov 24, 2022. It is now read-only.
File tree Expand file tree Collapse file tree
modules/swagger-parser-v3/src/test/java/io/swagger/v3/parser/processors Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121import java .util .Map ;
2222
2323import static org .hamcrest .CoreMatchers .is ;
24+ import static org .hamcrest .CoreMatchers .notNullValue ;
2425import static org .junit .Assert .assertThat ;
2526import static org .testng .Assert .assertEquals ;
26- import static org .testng .AssertJUnit .assertTrue ;
2727
2828
2929public class ExternalRefProcessorTest {
@@ -137,11 +137,11 @@ public void testNestedExternalRefs(@Injectable final Schema mockedModel){
137137 times = 1 ;
138138 }};
139139
140- String actualRef = new ExternalRefProcessor (cache , testedOpenAPI ).processRefToExternalSchema (customerURL , refFormat );
140+ new ExternalRefProcessor (cache , testedOpenAPI ).processRefToExternalSchema (customerURL , refFormat );
141141
142- assertTrue (testedOpenAPI .getComponents ().getSchemas ().get ("Customer" ) != null );
143- assertTrue (testedOpenAPI .getComponents ().getSchemas ().get ("Contact" ) != null );
144- assertTrue (testedOpenAPI .getComponents ().getSchemas ().get ("Address" ) != null );
142+ assertThat (testedOpenAPI .getComponents ().getSchemas ().get ("Customer" ), notNullValue () );
143+ assertThat (testedOpenAPI .getComponents ().getSchemas ().get ("Contact" ), notNullValue () );
144+ assertThat (testedOpenAPI .getComponents ().getSchemas ().get ("Address" ), notNullValue () );
145145 }
146146
147147
You can’t perform that action at this time.
0 commit comments