Issue Details (XML | Word | Printable)

Key: APF-1191
Type: Bug Bug
Status: Open Open
Priority: Minor Minor
Assignee: Matt Raible
Reporter: Dazhi Yan
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
AppFuse

testSaveConflictingUser error on db2

Created: 08/Feb/10 10:00 PM   Updated: 08/Feb/10 10:00 PM
Component/s: Build, Test, or Deploy Process
Affects Version/s: 2.1.0-M2
Fix Version/s: None

Environment: windows,db2


 Description  « Hide
at com.mycompany.webapp.action.UserActionTest

    public void testSaveConflictingUser() throws Exception {
        .......
        // e-mail address from existing user
        User existingUser = (User) userManager.getUsers().get(0);
        // userManager.getUsers().get(0) will get same user on db2!!!
        // need add two rows below to insure get right(exiting user) user,not same user
        if(user.getId()==existingUser.getId())
                existingUser = (User) userManager.getUsers().get(1);


There are no entries against this issue.