mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-16 10:59:03 +00:00
feat: Added to AbstractDocumentTest verification of originalValue in document (#3070)
This commit is contained in:
+5
-1
@@ -114,12 +114,16 @@ class AbstractDocumentTest {
|
||||
final String originalValue = "originalValue";
|
||||
final String updatedValue = "updatedValue";
|
||||
|
||||
// Initializing the value
|
||||
document.put(key, originalValue);
|
||||
|
||||
// Verifying that the initial value is retrieved correctly
|
||||
assertEquals(originalValue, document.get(key));
|
||||
|
||||
// Updating the value
|
||||
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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user