Skip to content

Commit 1575b56

Browse files
authored
feat: Added to AbstractDocumentTest verification of originalValue in document (#3070)
1 parent af0b901 commit 1575b56

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

abstract-document/src/test/java/com/iluwatar/abstractdocument/AbstractDocumentTest.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,16 @@ void shouldUpdateExistingValue() {
114114
final String originalValue = "originalValue";
115115
final String updatedValue = "updatedValue";
116116

117+
// Initializing the value
117118
document.put(key, originalValue);
118119

120+
// Verifying that the initial value is retrieved correctly
121+
assertEquals(originalValue, document.get(key));
122+
119123
// Updating the value
120124
document.put(key, updatedValue);
121125

122-
//Verifying that the updated value is retrieved correctly
126+
// Verifying that the updated value is retrieved correctly
123127
assertEquals(updatedValue, document.get(key));
124128
}
125129
}

0 commit comments

Comments
 (0)