@@ -0,0 +1,1517 @@
+/**%0A * %0A */%0Apackage com.varone.web.util;%0A%0Aimport static org.junit.Assert.*;%0A%0Aimport org.apache.hadoop.conf.Configuration;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport com.varone.node.MetricsProperties;%0A%0A/**%0A * @author allen%0A *%0A */%0Apublic class VarOneConfigurationTest %7B%0A%09%0A%09private VarOneConfiguration varOneConf;%0A%09%0A%09/**%0A%09 * @throws java.lang.Exception%0A%09 */%0A%09@Before%0A%09public void setUp() throws Exception %7B%0A%09%09this.varOneConf = new VarOneConfiguration();%0A%09%7D%0A%0A%09/**%0A%09 * Test method for %7B@link com.varone.web.util.VarOneConfiguration#VarOneConfiguration()%7D.%0A%09 */%0A%09@Test%0A%09public void testVarOneConfiguration() %7B%0A%09%09assertNotNull(this.varOneConf);%0A%09%7D%0A%0A%09/**%0A%09 * Test method for %7B@link com.varone.web.util.VarOneConfiguration#loadHadoopConfiguration()%7D.%0A%09 */%0A%09@Test%0A%09public void testLoadHadoopConfiguration() %7B%0A%09%09Configuration config = this.varOneConf.loadHadoopConfiguration();%0A%09%09assertNotNull(config);%0A%09%09assertNotNull(config.get(%22fs.default.name%22));%0A%09%09assertNotNull(config.get(%22yarn.resourcemanager.address%22));%0A%09%09assertNotNull(config.get(%22spark.eventLog.dir%22));%0A%09%7D%0A%0A%09/**%0A%09 * Test method for %7B@link com.varone.web.util.VarOneConfiguration#loadMetricsConfiguration()%7D.%0A%09 */%0A%09@Test%0A%09public void testLoadMetricsConfiguration() %7B%0A%09%09MetricsProperties metricsConfiguration = this.varOneConf.loadMetricsConfiguration();%0A%09%09assertNotNull(metricsConfiguration);%0A%09%09assertNotNull(metricsConfiguration.getCsvDir());%0A%09%09assertNotNull(metricsConfiguration.getCsvPeriod());%0A%09%09assertNotNull(metricsConfiguration.getCsvUnit());%0A%09%7D%0A%0A%7D%0A

add testing code for VarOneConfiguration