Repository: incubator-ranger Updated Branches: refs/heads/master bef9c7a4c -> a1706e83d
RANGER-549 updating the tests so it would have failed without the fix that was checked in prior Signed-off-by: Madhan Neethiraj <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/incubator-ranger/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ranger/commit/a1706e83 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ranger/tree/a1706e83 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ranger/diff/a1706e83 Branch: refs/heads/master Commit: a1706e83da238f23b036fdb95265bc68298ff9a8 Parents: bef9c7a Author: Alok Lal <[email protected]> Authored: Fri Jun 12 12:40:04 2015 -0700 Committer: Madhan Neethiraj <[email protected]> Committed: Sat Jun 13 09:38:16 2015 -0700 ---------------------------------------------------------------------- .../ranger/plugin/model/validation/TestRangerServiceValidator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/a1706e83/agents-common/src/test/java/org/apache/ranger/plugin/model/validation/TestRangerServiceValidator.java ---------------------------------------------------------------------- diff --git a/agents-common/src/test/java/org/apache/ranger/plugin/model/validation/TestRangerServiceValidator.java b/agents-common/src/test/java/org/apache/ranger/plugin/model/validation/TestRangerServiceValidator.java index 6c20f0d..4b0fdbf 100644 --- a/agents-common/src/test/java/org/apache/ranger/plugin/model/validation/TestRangerServiceValidator.java +++ b/agents-common/src/test/java/org/apache/ranger/plugin/model/validation/TestRangerServiceValidator.java @@ -196,7 +196,7 @@ public class TestRangerServiceValidator { // if name is not null and it points to a service then it should match the id when(service.getId()).thenReturn(7L); RangerService existingService = mock(RangerService.class); - when(existingService.getId()).thenReturn(7L); + when(existingService.getId()).thenReturn(new Long(7L)); when(_store.getService(7L)).thenReturn(existingService); when(_store.getServiceByName("aName")).thenReturn(existingService); assertTrue(_validator.isValid(service, Action.UPDATE, _failures));
