Skip to content

Commit

Permalink
Fix order of assertion parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanbrainard committed May 10, 2012
1 parent c71b844 commit 9ec0c51
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/test/java/com/force/api/QueryTest.java
Expand Up @@ -51,11 +51,11 @@ public void testRelationshipQuery() throws JsonGenerationException, JsonMappingE
List<Account> result = api.query(String.format("SELECT Name, (SELECT AccountId, Email, FirstName, LastName FROM Contacts) FROM Account WHERE Id='%s'",a.id),
Account.class).getRecords();
// Note, attribute names are capitalized by the Force.com REST API
assertEquals(result.get(0).contacts.size(),1);
assertEquals(result.get(0).contacts.get(0).getEmail(),"force@test.com");
assertEquals(result.get(0).contacts.get(0).getFirstName(),"FirstName");
assertEquals(result.get(0).contacts.get(0).getLastName(),"LastName");
assertEquals(result.get(0).contacts.get(0).getAccountId(),a.id);
assertEquals(1, result.get(0).contacts.size());
assertEquals("force@test.com", result.get(0).contacts.get(0).getEmail());
assertEquals("FirstName", result.get(0).contacts.get(0).getFirstName());
assertEquals("LastName", result.get(0).contacts.get(0).getLastName());
assertEquals(a.id, result.get(0).contacts.get(0).getAccountId());
}


Expand Down

0 comments on commit 9ec0c51

Please sign in to comment.