db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig Russell (JIRA)" <j...@apache.org>
Subject [jira] Created: (JDO-579) Assertions have parameters swapped
Date Sat, 01 Mar 2008 18:12:51 GMT
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.

View raw message