Skip to content
This repository was archived by the owner on Nov 24, 2022. It is now read-only.

Commit e58eb59

Browse files
author
Shubho
committed
Some cleanup in test
1 parent 3be5b02 commit e58eb59

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

modules/swagger-parser-v3/src/test/java/io/swagger/v3/parser/processors/ExternalRefProcessorTest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
import java.util.Map;
2222

2323
import static org.hamcrest.CoreMatchers.is;
24+
import static org.hamcrest.CoreMatchers.notNullValue;
2425
import static org.junit.Assert.assertThat;
2526
import static org.testng.Assert.assertEquals;
26-
import static org.testng.AssertJUnit.assertTrue;
2727

2828

2929
public 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

0 commit comments

Comments
 (0)