mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-16 16:15: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
+4
+4
@@ -114,8 +114,12 @@ 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);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user