ranger-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject ranger git commit: RANGER-1637 - Address coverity errors in the admin tests
Date Thu, 13 Jul 2017 09:01:39 GMT
Repository: ranger
Updated Branches:
  refs/heads/master a92129807 -> 7b61f159f


RANGER-1637 - Address coverity errors in the admin tests

Signed-off-by: Colm O hEigeartaigh <coheigea@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/ranger/repo
Commit: http://git-wip-us.apache.org/repos/asf/ranger/commit/7b61f159
Tree: http://git-wip-us.apache.org/repos/asf/ranger/tree/7b61f159
Diff: http://git-wip-us.apache.org/repos/asf/ranger/diff/7b61f159

Branch: refs/heads/master
Commit: 7b61f159fa8f5c612c65a2b329fd103153cfb0aa
Parents: a921298
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Mon Jun 12 10:43:43 2017 +0100
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Thu Jul 13 10:01:31 2017 +0100

----------------------------------------------------------------------
 .../src/test/java/org/apache/ranger/rest/TestServiceREST.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ranger/blob/7b61f159/security-admin/src/test/java/org/apache/ranger/rest/TestServiceREST.java
----------------------------------------------------------------------
diff --git a/security-admin/src/test/java/org/apache/ranger/rest/TestServiceREST.java b/security-admin/src/test/java/org/apache/ranger/rest/TestServiceREST.java
index 68c5771..4bb0746 100644
--- a/security-admin/src/test/java/org/apache/ranger/rest/TestServiceREST.java
+++ b/security-admin/src/test/java/org/apache/ranger/rest/TestServiceREST.java
@@ -330,7 +330,7 @@ public class TestServiceREST {
 
 		Mockito.when(
 				svcStore.createServiceDef((RangerServiceDef) Mockito
-						.anyObject())).thenReturn(rangerServiceDef);
+						.any())).thenReturn(rangerServiceDef);
 
 		RangerServiceDef dbRangerServiceDef = serviceREST
 				.createServiceDef(rangerServiceDef);
@@ -370,7 +370,7 @@ public class TestServiceREST {
 
 		Mockito.when(
 				svcStore.updateServiceDef((RangerServiceDef) Mockito
-						.anyObject())).thenReturn(rangerServiceDef);
+						.any())).thenReturn(rangerServiceDef);
 
 		RangerServiceDef dbRangerServiceDef = serviceREST
 				.updateServiceDef(rangerServiceDef);


Mime
View raw message