unit testing - How to test hbase mapreduce code? -


class reduce {     private htable table = null;      protected void setup() {         table = new htable(context.getconfiguration,"tablename");     }      public void reduce() {         ...     } } 

i'd write unit test above code, not know how mock htable, run error (not find hbase-default.xml error..). think happened in new htable(). there methods mock object , pass reduce class?

now i'm using junit, mrunit, powermock+mockito.


Comments

Popular posts from this blog

javascript - IndexedDB error: Uncaught DataCloneError: Failed to execute 'put' on 'IDBObjectStore': An object could not be cloned -

amazon web services - When using Cognito credentials with AWS in a browser (javascript), keep getting "missing credentials" error -

c# - How to set the datatextfield value instead of the value on a drop down list? -