public class HConnectionTestingUtility extends Object
Connection
testing utility.Constructor and Description |
---|
HConnectionTestingUtility() |
Modifier and Type | Method and Description |
---|---|
static org.apache.hadoop.hbase.client.Connection |
getMockedConnection(org.apache.hadoop.conf.Configuration conf)
Get a Mocked
Connection that goes with the passed conf configuration
instance. |
public HConnectionTestingUtility()
public static org.apache.hadoop.hbase.client.Connection getMockedConnection(org.apache.hadoop.conf.Configuration conf) throws IOException
Connection
that goes with the passed conf
configuration
instance. Minimally the mock will return <code>conf</conf> when
Connection.getConfiguration()
is invoked. Be sure to shutdown the connection when done
by calling Connection.close()
else it will stick around; this is probably not what you
want.conf
- configurationconf
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.