-
Improvement
-
Resolution: Fixed
-
Neutral
-
None
-
None
-
None
-
-
Empty show more show less
-
Saigon 69
-
3
Warning log should not show when current value of property is equal with new value. Here is the unit test that run fails
@Test public void existingPropertyIsReplacedAndNoLog() throws RepositoryException { // GIVEN final MockNode node = new MockNode("foo"); node.setProperty("bar", "new-value"); // WHEN final PropertyValuesTask pvd = new DummyPropertyValuesDelta(); pvd.checkAndModifyPropertyValue(ctx, node, "bar", "expected-value", "new-value"); // THEN assertEquals("new-value", node.getProperty("bar").getValue().getString()); verify(ctx, never()).warn(anyString()); }
Acceptance criteria