Search in sources :

Example 1 with ServerOptionsProcessor

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));
}
Also used : ServerOptionsProcessor(org.apache.hive.service.server.HiveServer2.ServerOptionsProcessor) Test(org.junit.Test)

Aggregations

ServerOptionsProcessor (org.apache.hive.service.server.HiveServer2.ServerOptionsProcessor)1 Test (org.junit.Test)1