diff --git a/modules/swagger-core/src/test/java/io/swagger/v3/core/converting/ModelConverterTest.java b/modules/swagger-core/src/test/java/io/swagger/v3/core/converting/ModelConverterTest.java index 80c3068d6f..8781f113f0 100644 --- a/modules/swagger-core/src/test/java/io/swagger/v3/core/converting/ModelConverterTest.java +++ b/modules/swagger-core/src/test/java/io/swagger/v3/core/converting/ModelConverterTest.java @@ -391,6 +391,15 @@ public void checkDefaultSkippedPackages(){ assertTrue(modelConverters.skippedPackages.contains("groovy.lang")); } + @Test(description = "It should not process skipped package") + public void ignoreSkippedPackage() throws ClassNotFoundException { + ModelConverters modelConverters = ModelConverters.getInstance(); + final Type type = Class.forName("java.lang.String"); + assertNull(modelConverters.readAllAsResolvedSchema(type)); + + + } + @JsonSerialize(as = AnnotatedImplementationClass.class) abstract class BaseClass { public abstract String field();