Skip to content

Commit 437ac07

Browse files
authored
Merge pull request #2875 from swagger-api/issue-2783
refs #2783 - fixes test
2 parents 480f09d + 61f3fbf commit 437ac07

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)