Skip to content

Commit 61f3fbf

Browse files
committed
refs #2783 - fixes test
1 parent 480f09d commit 61f3fbf

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

modules/swagger-models/src/test/java/io/swagger/models/parameters/AbstractSerializableParameterTest.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,9 +351,12 @@ public void testGetExampleWithEmptyString() {
351351
// given
352352
instance.setProperty(new LongProperty());
353353
example = "";
354-
354+
355+
// when
356+
instance.setExample(example);
357+
355358
// then
356-
assertEquals(instance.getExample(), null, "The example must be empty string if the value is an empty string");
359+
assertEquals(instance.getExample(), "", "The example must be empty string if the value is an empty string");
357360
}
358361

359362
@Test

0 commit comments

Comments
 (0)