Skip to content

Commit

Permalink
Fix exception string in test
Browse files Browse the repository at this point in the history
  • Loading branch information
cdcarter committed Nov 23, 2015
1 parent 7584ca2 commit b4f7ac1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rolluptool/src/classes/TestLREngine.cls
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ private class TestLREngine {
LREngine.RollupOperation.Last));
System.assert(false, 'Expecting an exception');
} catch (Exception e) {
System.assertEquals('Master and detail fields must be the same field type (or text based) for First or Last operations', e.getMessage());
System.assertEquals('Master and detail fields must be the same field type (or text/Id based) for First or Last operations', e.getMessage());
}
try {
LREngine.Context ctx =
Expand All @@ -724,7 +724,7 @@ private class TestLREngine {
LREngine.RollupOperation.First));
System.assert(false, 'Expecting an exception');
} catch (Exception e) {
System.assertEquals('Master and detail fields must be the same field type (or text based) for First or Last operations', e.getMessage());
System.assertEquals('Master and detail fields must be the same field type (or text/Id based) for First or Last operations', e.getMessage());
}
// Master and detail field type match
try {
Expand Down Expand Up @@ -997,4 +997,4 @@ private class TestLREngine {
System.assertEquals(expected1, reloadedAcc3.get(rollupField.master.getName()));
System.assertEquals(expected2, reloadedAcc4.get(rollupField.master.getName()));
}
}
}

0 comments on commit b4f7ac1

Please sign in to comment.