diff --git a/modules/swagger-models/src/test/java/io/swagger/models/parameters/AbstractSerializableParameterTest.java b/modules/swagger-models/src/test/java/io/swagger/models/parameters/AbstractSerializableParameterTest.java index de6376c0a2..0672aecb85 100644 --- a/modules/swagger-models/src/test/java/io/swagger/models/parameters/AbstractSerializableParameterTest.java +++ b/modules/swagger-models/src/test/java/io/swagger/models/parameters/AbstractSerializableParameterTest.java @@ -351,9 +351,12 @@ public void testGetExampleWithEmptyString() { // given instance.setProperty(new LongProperty()); example = ""; - + + // when + instance.setExample(example); + // then - assertEquals(instance.getExample(), null, "The example must be empty string if the value is an empty string"); + assertEquals(instance.getExample(), "", "The example must be empty string if the value is an empty string"); } @Test