Kaydet (Commit) daa6fe41 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Why check that resValue != oldValue

...if all we want to verify is that resValue == newValue (and it is the test
code's responsibility to come up with a newValue != oldValue, but which might
sometimes not be possible)?

Change-Id: Ibfce322b50bb0074ca76c33ad0c83541a8d4dc41
üst 8bde421c
...@@ -386,7 +386,7 @@ public class MultiPropertyTest extends MultiMethodTest ...@@ -386,7 +386,7 @@ public class MultiPropertyTest extends MultiMethodTest
{ {
// if no exception thrown // if no exception thrown
// check that the new value is set // check that the new value is set
if ((!compare(resValue, newValue)) || (compare(resValue, oldValue))) if (!compare(resValue, newValue))
{ {
log.println("Value for '" + propName + "' hasn't changed as expected"); log.println("Value for '" + propName + "' hasn't changed as expected");
try try
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment