mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-14 18:18:45 +00:00
feat: Added to AbstractDocumentTest verification of originalValue in document (#3070)
This commit is contained in:
1 parent
af0b901706
commit
1575b56b98
1 file changed
+5
-1
+5
-1
@@ -114,12 +114,16 @@ class AbstractDocumentTest {
|
|||||||
final String originalValue = "originalValue";
|
final String originalValue = "originalValue";
|
||||||
final String updatedValue = "updatedValue";
|
final String updatedValue = "updatedValue";
|
||||||
|
|
||||||
|
// Initializing the value
|
||||||
document.put(key, originalValue);
|
document.put(key, originalValue);
|
||||||
|
|
||||||
|
// Verifying that the initial value is retrieved correctly
|
||||||
|
assertEquals(originalValue, document.get(key));
|
||||||
|
|
||||||
// Updating the value
|
// Updating the value
|
||||||
document.put(key, updatedValue);
|
document.put(key, updatedValue);
|
||||||
|
|
||||||
//Verifying that the updated value is retrieved correctly
|
// Verifying that the updated value is retrieved correctly
|
||||||
assertEquals(updatedValue, document.get(key));
|
assertEquals(updatedValue, document.get(key));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user