use of org.apache.hive.service.server.HiveServer2.ServerOptionsProcessor in project hive by apache.
the class TestServerOptionsProcessor method test.
@Test
public void test() {
ServerOptionsProcessor optProcessor = new ServerOptionsProcessor("HiveServer2");
final String key = "testkey";
final String value = "value123";
String[] args = { "-hiveconf", key + "=" + value };
Assert.assertEquals("checking system property before processing options", null, System.getProperty(key));
optProcessor.parse(args);
Assert.assertEquals("checking system property after processing options", value, System.getProperty(key));
}
Aggregations