Assertions have parameters swapped
----------------------------------
Key: JDO-579
URL: https://issues.apache.org/jira/browse/JDO-579
Project: JDO
Issue Type: Bug
Components: tck2, tck2-legacy
Affects Versions: JDO 2 maintenance release 1
Reporter: Craig Russell
Assignee: Michelle Caisse
Fix For: JDO 2 maintenance release 1
I noticed that some of the tests recently checked in swap the "expected" and
"actual" values, e.g. in Jdoconfig.java,
public void checkPersistent(String name) {
assertEquals("Incorrect PMF name", pmf.getName(), name);
The signature of assertEquals is
public static void assertEquals(java.lang.String message,
java.lang.String expected,
java.lang.String actual)
I didn't check too far, but these need to be fixed for the benefit of those
whose implementation doesn't actually work.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.