accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From els...@apache.org
Subject [08/23] accumulo git commit: ACCUMULO-4065 Change stubbed methods to throwing UnsupportedOperationExceptions.
Date Wed, 02 Dec 2015 02:38:25 GMT
ACCUMULO-4065 Change stubbed methods to throwing UnsupportedOperationExceptions.


Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/4bae0a44
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/4bae0a44
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/4bae0a44

Branch: refs/heads/master
Commit: 4bae0a44d65acad99992acf8ca15ab3099632c34
Parents: 44b17c6
Author: Josh Elser <elserj@apache.org>
Authored: Tue Dec 1 16:46:46 2015 -0500
Committer: Josh Elser <elserj@apache.org>
Committed: Tue Dec 1 16:46:46 2015 -0500

----------------------------------------------------------------------
 .../accumulo/server/util/RpcWrapperTest.java    | 28 ++++++++++++--------
 1 file changed, 17 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/4bae0a44/server/base/src/test/java/org/apache/accumulo/server/util/RpcWrapperTest.java
----------------------------------------------------------------------
diff --git a/server/base/src/test/java/org/apache/accumulo/server/util/RpcWrapperTest.java
b/server/base/src/test/java/org/apache/accumulo/server/util/RpcWrapperTest.java
index 63a836f..e345c10 100644
--- a/server/base/src/test/java/org/apache/accumulo/server/util/RpcWrapperTest.java
+++ b/server/base/src/test/java/org/apache/accumulo/server/util/RpcWrapperTest.java
@@ -140,12 +140,12 @@ public class RpcWrapperTest {
   private static class fake_fields implements org.apache.thrift.TFieldIdEnum {
     @Override
     public short getThriftFieldId() {
-      return 0;
+      throw new UnsupportedOperationException();
     }
 
     @Override
     public String getFieldName() {
-      return null;
+      throw new UnsupportedOperationException();
     }
   }
 
@@ -203,12 +203,12 @@ public class RpcWrapperTest {
     @SuppressWarnings("rawtypes")
     @Override
     public TBase getResult(I iface, foo_args args) throws TException {
-      return null;
+      throw new UnsupportedOperationException();
     }
 
     @Override
     public foo_args getEmptyArgsInstance() {
-      return null;
+      throw new UnsupportedOperationException();
     }
   }
 
@@ -221,41 +221,47 @@ public class RpcWrapperTest {
 
     @Override
     public int compareTo(foo_args o) {
-      return 0;
+      throw new UnsupportedOperationException();
     }
 
     @Override
     public void read(TProtocol iprot) throws TException {
+      throw new UnsupportedOperationException();
     }
 
     @Override
     public void write(TProtocol oprot) throws TException {
+      throw new UnsupportedOperationException();
     }
 
     @Override
     public fake_fields fieldForId(int fieldId) {
-      return null;
+      throw new UnsupportedOperationException();
     }
 
     @Override
     public boolean isSet(fake_fields field) {
-      return false;
+      throw new UnsupportedOperationException();
     }
 
     @Override
     public Object getFieldValue(fake_fields field) {
-      return null;
+      throw new UnsupportedOperationException();
     }
 
     @Override
-    public void setFieldValue(fake_fields field, Object value) {}
+    public void setFieldValue(fake_fields field, Object value) {
+      throw new UnsupportedOperationException();
+    }
 
     @Override
     public TBase<foo_args,fake_fields> deepCopy() {
-      return null;
+      throw new UnsupportedOperationException();
     }
 
     @Override
-    public void clear() {}
+    public void clear() {
+      throw new UnsupportedOperationException();
+    }
   }
 }


Mime
View raw message