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/df753e85
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ranger/tree/df753e85
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ranger/diff/df753e85

Branch: refs/heads/ranger-0.5
Commit: df753e85e02eedea75421d21942686a03813187c
Parents: 276a3da
Author: Alok Lal <[email protected]>
Authored: Fri Jun 12 12:40:04 2015 -0700
Committer: sneethiraj <[email protected]>
Committed: Sat Jun 13 21:37:08 2015 -0400

----------------------------------------------------------------------
 .../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/df753e85/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));

Reply via email to