[Batchserver-cvs] batchserver/test/org/jmonks/batch/framework/config BasicJobControllerConfigTest.j
Brought to you by:
suresh_pragada
From: Suresh <sur...@us...> - 2006-09-15 20:24:24
|
Update of /cvsroot/batchserver/batchserver/test/org/jmonks/batch/framework/config In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27965 Added Files: BasicJobControllerConfigTest.java ConfigurationExceptionTest.java FrameworkConfigTest.java JobConfigFactoryTest.java JobConfigTest.java JobControllerConfigTest.java PoolJobControllerConfigTest.java Log Message: no message --- NEW FILE: BasicJobControllerConfigTest.java --- /* * BasicJobControllerConfigTest.java * JUnit based test * * Created on March 8, 2006, 10:38 PM */ package org.jmonks.batch.framework.config; import java.util.HashMap; import java.util.Map; import junit.framework.*; /** * Test cases to test the BasicJobControllerConfig class. * @author Suresh Pragada */ public class BasicJobControllerConfigTest extends TestCase { public BasicJobControllerConfigTest(String testName) { super(testName); } protected void setUp() throws Exception { } protected void tearDown() throws Exception { } public static Test suite() { TestSuite suite = new TestSuite(BasicJobControllerConfigTest.class); return suite; } /** * Test to make sure that controller config never returns null. */ public void testGetBasicJobProcessorClassName() { FrameworkConfig frameworkConfig=FrameworkConfig.getInstance(); assertNotNull(frameworkConfig); FrameworkConfig.JobConfigFactoryConfig factoryConfig=frameworkConfig.getJobConfigFactoryConfig(); assertNotNull(factoryConfig); JobConfigFactory factory=JobConfigFactory.getJobConfigFactory(factoryConfig); assertNotNull(factory); JobConfig jobConfig=factory.getJobConfig("process_file_xyz"); assertNotNull(jobConfig); BasicJobControllerConfig controllerConfig=(BasicJobControllerConfig)jobConfig.getJobControllerConfig(); assertNotNull(controllerConfig); String jobProcessorName=controllerConfig.getBasicJobProcessorClassName(); assertNotNull(jobProcessorName); } /** * Test to make sure that basic job processor config properties are not null. */ public void testGetBasicJobProcessorConfigProperties() { FrameworkConfig frameworkConfig=FrameworkConfig.getInstance(); assertNotNull(frameworkConfig); FrameworkConfig.JobConfigFactoryConfig factoryConfig=frameworkConfig.getJobConfigFactoryConfig(); assertNotNull(factoryConfig); JobConfigFactory factory=JobConfigFactory.getJobConfigFactory(factoryConfig); assertNotNull(factory); JobConfig jobConfig=factory.getJobConfig("process_file_xyz"); assertNotNull(jobConfig); BasicJobControllerConfig controllerConfig=(BasicJobControllerConfig)jobConfig.getJobControllerConfig(); assertNotNull(controllerConfig); Map configProps=controllerConfig.getBasicJobProcessorConfigProperties(); assertNotNull(configProps); } /** * Test case to make get prefix is not returning any null prefix. */ public void testGetJobControllerConfigPropertyPrefix() { FrameworkConfig frameworkConfig=FrameworkConfig.getInstance(); assertNotNull(frameworkConfig); FrameworkConfig.JobConfigFactoryConfig factoryConfig=frameworkConfig.getJobConfigFactoryConfig(); assertNotNull(factoryConfig); JobConfigFactory factory=JobConfigFactory.getJobConfigFactory(factoryConfig); assertNotNull(factory); JobConfig jobConfig=factory.getJobConfig("process_file_xyz"); assertNotNull(jobConfig); BasicJobControllerConfig controllerConfig=(BasicJobControllerConfig)jobConfig.getJobControllerConfig(); assertNotNull(controllerConfig); String prefix=controllerConfig.getJobControllerConfigPropertyPrefix(); assertNotNull(prefix); assertTrue(!"".equals(prefix)); } /** * Test to make sure that properties being overriden. */ public void testOverrideConfigProperties() { } } --- NEW FILE: JobConfigTest.java --- /* * JobConfigTest.java * JUnit based test * * Created on March 8, 2006, 10:13 PM */ package org.jmonks.batch.framework.config; import junit.framework.*; import java.util.Map; /** * Test cases to test the JobConfig class. * @author Suresh Pragada */ public class JobConfigTest extends TestCase { public JobConfigTest(String testName) { super(testName); } protected void setUp() throws Exception { } protected void tearDown() throws Exception { } public static Test suite() { TestSuite suite = new TestSuite(JobConfigTest.class); return suite; } /** * Test case to make sure that JobConfig never returns null controller object. */ public void testGetJobControllerConfig() { FrameworkConfig frameworkConfig=FrameworkConfig.getInstance(); assertNotNull(frameworkConfig); FrameworkConfig.JobConfigFactoryConfig factoryConfig=frameworkConfig.getJobConfigFactoryConfig(); assertNotNull(factoryConfig); JobConfigFactory factory=JobConfigFactory.getJobConfigFactory(factoryConfig); assertNotNull(factory); JobConfig jobConfig=factory.getJobConfig("process_file_abc"); assertNotNull(jobConfig); JobControllerConfig controllerConfig=jobConfig.getJobControllerConfig(); assertNotNull(controllerConfig); } /** * Test that getJobName doesnt return null and make sure it returns the same job name * that we requested. */ public void testGetJobName() { FrameworkConfig frameworkConfig=FrameworkConfig.getInstance(); assertNotNull(frameworkConfig); FrameworkConfig.JobConfigFactoryConfig factoryConfig=frameworkConfig.getJobConfigFactoryConfig(); assertNotNull(factoryConfig); JobConfigFactory factory=JobConfigFactory.getJobConfigFactory(factoryConfig); assertNotNull(factory); JobConfig jobConfig=factory.getJobConfig("process_file_abc"); assertNotNull(jobConfig); String jobName=jobConfig.getJobName(); assertNotNull(jobName); assertEquals("process_file_abc",jobName); } } --- NEW FILE: ConfigurationExceptionTest.java --- /* * ConfigurationExceptionTest.java * JUnit based test * * Created on March 5, 2006, 5:14 PM */ package org.jmonks.batch.framework.config; import junit.framework.*; import org.jmonks.batch.framework.ErrorCode; /** * Test all the cases of Configuration Exception. * @author Suresh Pragada */ public class ConfigurationExceptionTest extends TestCase { public ConfigurationExceptionTest(String testName) { super(testName); } protected void setUp() throws Exception { } protected void tearDown() throws Exception { } public static Test suite() { TestSuite suite = new TestSuite(ConfigurationExceptionTest.class); return suite; } /** * Test that exception is not return null for the error code. */ public void testGetErrorCode() { ConfigurationException exception=new ConfigurationException(ConfigurationException.FRAMEWORK_CONFIG, "Some Message"); String cmpName=exception.getExceptionComponent(); assertNotNull(cmpName); } /** * Test that exception cannot be instantiated until unless the error code has been passed. */ public void testInstantiation() { try { ConfigurationException exception=(ConfigurationException)ConfigurationException.class.newInstance(); fail("ConfigurationException should not be instantiated."); } catch(InstantiationException ex) { /** * This is expected as ConfigurationException cannot be instantiated. */ } catch(IllegalAccessException ex) { /** * This is expected as the constructor of ConfigurationException is private. */ } } } --- NEW FILE: JobControllerConfigTest.java --- /* * JobControllerConfigTest.java * JUnit based test * * Created on March 8, 2006, 10:21 PM */ package org.jmonks.batch.framework.config; import java.util.HashMap; import junit.framework.*; import java.util.Map; /** * * @author Suresh Pragada */ public class JobControllerConfigTest extends TestCase { public JobControllerConfigTest(String testName) { super(testName); } protected void setUp() throws Exception { } protected void tearDown() throws Exception { } public static Test suite() { TestSuite suite = new TestSuite(JobControllerConfigTest.class); return suite; } /** * Test to make sure returned controller class name cannot be null. */ public void testGetJobControllerClasName() { FrameworkConfig frameworkConfig=FrameworkConfig.getInstance(); assertNotNull(frameworkConfig); FrameworkConfig.JobConfigFactoryConfig factoryConfig=frameworkConfig.getJobConfigFactoryConfig(); assertNotNull(factoryConfig); JobConfigFactory factory=JobConfigFactory.getJobConfigFactory(factoryConfig); assertNotNull(factory); JobConfig jobConfig=factory.getJobConfig("process_file_abc"); assertNotNull(jobConfig); JobControllerConfig controllerConfig=jobConfig.getJobControllerConfig(); assertNotNull(controllerConfig); String controllerClassName=controllerConfig.getJobControllerClasName(); assertNotNull(controllerClassName); } /** * Test to make sure controller config never returns null map. */ public void testGetJobControllerConfigProperties() { FrameworkConfig frameworkConfig=FrameworkConfig.getInstance(); assertNotNull(frameworkConfig); FrameworkConfig.JobConfigFactoryConfig factoryConfig=frameworkConfig.getJobConfigFactoryConfig(); assertNotNull(factoryConfig); JobConfigFactory factory=JobConfigFactory.getJobConfigFactory(factoryConfig); assertNotNull(factory); JobConfig jobConfig=factory.getJobConfig("process_file_abc"); assertNotNull(jobConfig); JobControllerConfig controllerConfig=jobConfig.getJobControllerConfig(); assertNotNull(controllerConfig); Map controllerConfigProps=controllerConfig.getJobControllerConfigProperties(); assertNotNull(controllerConfigProps); } /** * Test to make sure that it overrides the given values and add the missing values. */ public void testOverrideConfigProperties() { FrameworkConfig frameworkConfig=FrameworkConfig.getInstance(); assertNotNull(frameworkConfig); FrameworkConfig.JobConfigFactoryConfig factoryConfig=frameworkConfig.getJobConfigFactoryConfig(); assertNotNull(factoryConfig); JobConfigFactory factory=JobConfigFactory.getJobConfigFactory(factoryConfig); assertNotNull(factory); JobConfig jobConfig=factory.getJobConfig("process_file_abc"); assertNotNull(jobConfig); JobControllerConfig controllerConfig=jobConfig.getJobControllerConfig(); assertNotNull(controllerConfig); Map controllerConfigProps=controllerConfig.getJobControllerConfigProperties(); assertNotNull(controllerConfigProps); String introducingKey=controllerConfig.getJobControllerConfigPropertyPrefix()+"somekey"; String introducingValue="Value being introduced"; Map newProps=new HashMap(); newProps.put(introducingKey,introducingValue); controllerConfig.overrideConfigProperties(newProps); String introducedValue=(String)controllerConfig.getJobControllerConfigProperties().get(introducingKey); assertNotNull(introducedValue); assertEquals(introducingValue,introducedValue); String overridingValue="Value being overriden"; Map overridenProps=new HashMap(); overridenProps.put(introducingKey,overridingValue); controllerConfig.overrideConfigProperties(overridenProps); String overridenValue=(String)controllerConfig.getJobControllerConfigProperties().get(introducingKey); assertNotNull(overridenValue); assertEquals(overridingValue,overridenValue); } /** * Test to make sure controller config doesnt return null or empty as common property prefix. */ public void testGetJobControllerConfigPropertyPrefix() { FrameworkConfig frameworkConfig=FrameworkConfig.getInstance(); assertNotNull(frameworkConfig); FrameworkConfig.JobConfigFactoryConfig factoryConfig=frameworkConfig.getJobConfigFactoryConfig(); assertNotNull(factoryConfig); JobConfigFactory factory=JobConfigFactory.getJobConfigFactory(factoryConfig); assertNotNull(factory); JobConfig jobConfig=factory.getJobConfig("process_file_abc"); assertNotNull(jobConfig); JobControllerConfig controllerConfig=jobConfig.getJobControllerConfig(); assertNotNull(controllerConfig); String prefixName=controllerConfig.getJobControllerConfigPropertyPrefix(); assertNotNull(prefixName); assertTrue(!"".equals(prefixName)); } } --- NEW FILE: FrameworkConfigTest.java --- /* * FrameworkConfigTest.java * JUnit based test * * Created on March 5, 2006, 4:24 PM */ package org.jmonks.batch.framework.config; import junit.framework.*; /** * Test cases to test the FrameworkConfig class. * * @author Suresh Pragada */ public class FrameworkConfigTest extends TestCase { public FrameworkConfigTest(String testName) { super(testName); } protected void setUp() throws Exception { } protected void tearDown() throws Exception { } public static Test suite() { TestSuite suite=new TestSuite(FrameworkConfigTest.class); return suite; } /** * Test that FrameworkConfig cannot be instantiated. */ public void testInstantiation() { try { FrameworkConfig frameworkConfig=(FrameworkConfig)FrameworkConfig.class.newInstance(); fail("FrameworkConfig should not be instantiated."); } catch(InstantiationException ex) { /** * This is expected as FrameworkConfig cannot be instantiated. */ } catch(IllegalAccessException ex) { /** * This is expected as the constructor of FrameworkConfig is private. */ } } /** * Test that make sure getInstance never returns null object. */ public void testGetInstance() { FrameworkConfig config=FrameworkConfig.getInstance(); assertNotNull(config); System.out.println(config); } /** * Test that job-config-factory-config is configured properly in the framework-config.xml file * and it doestn return null factory class name and properties map. */ public void testGetJobConfigFactoryConfig() { FrameworkConfig frameworkConfig=FrameworkConfig.getInstance(); assertNotNull(frameworkConfig); FrameworkConfig.JobConfigFactoryConfig factoryConfig=frameworkConfig.getJobConfigFactoryConfig(); assertNotNull(factoryConfig); assertNotNull(factoryConfig.getJobConfigFactoryClassName()); assertNotNull(factoryConfig.getJobConfigFactoryProperties()); System.out.println(factoryConfig); } /** * Test that logging-config is configured properly in the framework-config.xml file and * make sure it defines all the required properties. */ public void testGetLoggingConfig() { FrameworkConfig frameworkConfig=FrameworkConfig.getInstance(); assertNotNull(frameworkConfig); FrameworkConfig.FrameworkLoggingConfig loggingConfig=frameworkConfig.getFrameworkLoggingConfig(); assertNotNull(loggingConfig); assertNotNull(loggingConfig.getJobLoggingDirecotry()); assertTrue(!loggingConfig.getJobLoggingDirecotry().equals("")); assertNotNull(loggingConfig.getFrameworkLoggingLevel()); assertNotNull(loggingConfig.getJobBasePackageName()); assertNotNull(loggingConfig.getJobLoggingLevel()); System.out.println(loggingConfig); } /** * Test that mgmt-mntr-config is properly configured and make sure it doesnt return null for * manager class name and properties. */ public void testGetMgmtMntrConfig() { FrameworkConfig frameworkConfig=FrameworkConfig.getInstance(); assertNotNull(frameworkConfig); FrameworkConfig.JobConnectorConfig mmConfig=frameworkConfig.getJobConnectorConfig(); assertNotNull(mmConfig); assertNotNull(mmConfig.getJobConnectorHelperClassName()); assertNotNull(mmConfig.getJobConnectorConfigProperties()); System.out.println(mmConfig); } /** * Test that repository-config is properly configured and make sure it doesnt return null * for the repository class name and properties. */ public void testGetRepositoryConfig() { FrameworkConfig frameworkConfig=FrameworkConfig.getInstance(); assertNotNull(frameworkConfig); FrameworkConfig.RepositoryConfig repConfig=frameworkConfig.getRepositoryConfig(); assertNotNull(repConfig); assertNotNull(repConfig.getRepositoryClassName()); assertNotNull(repConfig.getRepositoryConfigProperties()); System.out.println(repConfig); } /** * Test that job-controller-config is properly configured. */ public void testGetJobControllerConfig() { FrameworkConfig frameworkConfig=FrameworkConfig.getInstance(); assertNotNull(frameworkConfig); FrameworkConfig.JobControllerConfig controllerConfig=frameworkConfig.getJobControllerConfig(); assertNotNull(controllerConfig); String configClassName=controllerConfig.getConfigClassName("org.jmonks.batchserver.framework.controller.pool.PoolJobController", "xml-factory-config-class-name"); System.out.println(configClassName); assertNotNull(configClassName); System.out.println(controllerConfig); } } --- NEW FILE: PoolJobControllerConfigTest.java --- /* * PoolJobControllerConfigTest.java * JUnit based test * * Created on March 9, 2006, 6:59 PM */ package org.jmonks.batch.framework.config; import junit.framework.*; import java.util.HashMap; import java.util.Iterator; import java.util.Map; /** * Test cases to test PoolJobControllerConfig class. * @author Suresh Pragada */ public class PoolJobControllerConfigTest extends TestCase { public PoolJobControllerConfigTest(String testName) { super(testName); } protected void setUp() throws Exception { } protected void tearDown() throws Exception { } public static Test suite() { TestSuite suite = new TestSuite(PoolJobControllerConfigTest.class); return suite; } /** * Test to make sure that it is not returning null loader class name. */ public void testGetPoolJobLoaderClassName() { FrameworkConfig frameworkConfig=FrameworkConfig.getInstance(); assertNotNull(frameworkConfig); FrameworkConfig.JobConfigFactoryConfig factoryConfig=frameworkConfig.getJobConfigFactoryConfig(); assertNotNull(factoryConfig); JobConfigFactory factory=JobConfigFactory.getJobConfigFactory(factoryConfig); assertNotNull(factory); JobConfig jobConfig=factory.getJobConfig("process_file_abc"); assertNotNull(jobConfig); PoolJobControllerConfig controllerConfig=(PoolJobControllerConfig)jobConfig.getJobControllerConfig(); assertNotNull(controllerConfig); String loaderClassName=controllerConfig.getPoolJobLoaderClassName(); assertNotNull(loaderClassName); } /** * Test to make sure loader properties is not return null map. */ public void testGetPoolJobLoaderConfigProperties() { FrameworkConfig frameworkConfig=FrameworkConfig.getInstance(); assertNotNull(frameworkConfig); FrameworkConfig.JobConfigFactoryConfig factoryConfig=frameworkConfig.getJobConfigFactoryConfig(); assertNotNull(factoryConfig); JobConfigFactory factory=JobConfigFactory.getJobConfigFactory(factoryConfig); assertNotNull(factory); JobConfig jobConfig=factory.getJobConfig("process_file_abc"); assertNotNull(jobConfig); PoolJobControllerConfig controllerConfig=(PoolJobControllerConfig)jobConfig.getJobControllerConfig(); assertNotNull(controllerConfig); Map configProps=controllerConfig.getPoolJobLoaderConfigProperties(); assertNotNull(configProps); } /** * Test to make sure that processor classname is not null. */ public void testGetPoolJobProcessorClassName() { FrameworkConfig frameworkConfig=FrameworkConfig.getInstance(); assertNotNull(frameworkConfig); FrameworkConfig.JobConfigFactoryConfig factoryConfig=frameworkConfig.getJobConfigFactoryConfig(); assertNotNull(factoryConfig); JobConfigFactory factory=JobConfigFactory.getJobConfigFactory(factoryConfig); assertNotNull(factory); JobConfig jobConfig=factory.getJobConfig("process_file_abc"); assertNotNull(jobConfig); PoolJobControllerConfig controllerConfig=(PoolJobControllerConfig)jobConfig.getJobControllerConfig(); assertNotNull(controllerConfig); String processorClassName=controllerConfig.getPoolJobProcessorClassName(); assertNotNull(processorClassName); } /** * Test to make sure that it wont return null properties. */ public void testGetPoolJobProcessorConfigProperties() { FrameworkConfig frameworkConfig=FrameworkConfig.getInstance(); assertNotNull(frameworkConfig); FrameworkConfig.JobConfigFactoryConfig factoryConfig=frameworkConfig.getJobConfigFactoryConfig(); assertNotNull(factoryConfig); JobConfigFactory factory=JobConfigFactory.getJobConfigFactory(factoryConfig); assertNotNull(factory); JobConfig jobConfig=factory.getJobConfig("process_file_abc"); assertNotNull(jobConfig); PoolJobControllerConfig controllerConfig=(PoolJobControllerConfig)jobConfig.getJobControllerConfig(); assertNotNull(controllerConfig); Map configProps=controllerConfig.getPoolJobProcessorConfigProperties(); assertNotNull(configProps); } /** * Test to make sure, it doesnt return null pool class name. */ public void testGetPoolClassName() { FrameworkConfig frameworkConfig=FrameworkConfig.getInstance(); assertNotNull(frameworkConfig); FrameworkConfig.JobConfigFactoryConfig factoryConfig=frameworkConfig.getJobConfigFactoryConfig(); assertNotNull(factoryConfig); JobConfigFactory factory=JobConfigFactory.getJobConfigFactory(factoryConfig); assertNotNull(factory); JobConfig jobConfig=factory.getJobConfig("process_file_abc"); assertNotNull(jobConfig); PoolJobControllerConfig controllerConfig=(PoolJobControllerConfig)jobConfig.getJobControllerConfig(); assertNotNull(controllerConfig); String poolClassName=controllerConfig.getPoolClassName(); assertNotNull(poolClassName); } /** * Test to make sure pool config properities will not be null. */ public void testGetPoolConfigProperties() { FrameworkConfig frameworkConfig=FrameworkConfig.getInstance(); assertNotNull(frameworkConfig); FrameworkConfig.JobConfigFactoryConfig factoryConfig=frameworkConfig.getJobConfigFactoryConfig(); assertNotNull(factoryConfig); JobConfigFactory factory=JobConfigFactory.getJobConfigFactory(factoryConfig); assertNotNull(factory); JobConfig jobConfig=factory.getJobConfig("process_file_abc"); assertNotNull(jobConfig); PoolJobControllerConfig controllerConfig=(PoolJobControllerConfig)jobConfig.getJobControllerConfig(); assertNotNull(controllerConfig); Map configProps=controllerConfig.getPoolConfigProperties(); assertNotNull(configProps); } /** * Test to make sure prefix will not be null. */ public void testGetJobControllerConfigPropertyPrefix() { FrameworkConfig frameworkConfig=FrameworkConfig.getInstance(); assertNotNull(frameworkConfig); FrameworkConfig.JobConfigFactoryConfig factoryConfig=frameworkConfig.getJobConfigFactoryConfig(); assertNotNull(factoryConfig); JobConfigFactory factory=JobConfigFactory.getJobConfigFactory(factoryConfig); assertNotNull(factory); JobConfig jobConfig=factory.getJobConfig("process_file_abc"); assertNotNull(jobConfig); PoolJobControllerConfig controllerConfig=(PoolJobControllerConfig)jobConfig.getJobControllerConfig(); assertNotNull(controllerConfig); String prefix=controllerConfig.getJobControllerConfigPropertyPrefix(); assertNotNull(prefix); assertTrue(!"".equals(prefix)); } /** * Test to make sure the new properties will be overriden. */ public void testOverrideConfigProperties() { } } --- NEW FILE: JobConfigFactoryTest.java --- /* * JobConfigFactoryTest.java * JUnit based test * * Created on March 8, 2006, 8:01 PM */ package org.jmonks.batch.framework.config; import junit.framework.*; import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetException; import java.util.Map; import org.jmonks.batch.framework.ErrorCode; /** * Test cases to test the JobConfigFactory * @author Suresh Pragada */ public class JobConfigFactoryTest extends TestCase { public JobConfigFactoryTest(String testName) { super(testName); } protected void setUp() throws Exception { } protected void tearDown() throws Exception { } public static Test suite() { TestSuite suite = new TestSuite(JobConfigFactoryTest.class); //TestSuite suite=new TestSuite(); //suite.addTest(new JobConfigFactoryTest("testGetJobConfigFactory")); return suite; } /** * Test case will check the config factory returned property or not. */ public void testGetJobConfigFactory() { FrameworkConfig frameworkConfig=FrameworkConfig.getInstance(); assertNotNull(frameworkConfig); FrameworkConfig.JobConfigFactoryConfig jobConfigFactoryConfig=frameworkConfig.getJobConfigFactoryConfig(); assertNotNull(jobConfigFactoryConfig); JobConfigFactory configFactory=JobConfigFactory.getJobConfigFactory(jobConfigFactoryConfig); assertNotNull(configFactory); } /** * Test case to make sure requested job being returned or not. */ public void testGetJobConfig() { FrameworkConfig frameworkConfig=FrameworkConfig.getInstance(); assertNotNull(frameworkConfig); FrameworkConfig.JobConfigFactoryConfig jobConfigFactoryConfig=frameworkConfig.getJobConfigFactoryConfig(); assertNotNull(jobConfigFactoryConfig); JobConfigFactory configFactory=JobConfigFactory.getJobConfigFactory(jobConfigFactoryConfig); assertNotNull(configFactory); JobConfig jobConfigNotExist=configFactory.getJobConfig("job_not_exist"); assertNull(jobConfigNotExist); JobConfig jobProcessFileAbc=configFactory.getJobConfig("process_file_abc"); assertNotNull(jobProcessFileAbc); JobConfig jobProcessFileXyz=configFactory.getJobConfig("process_file_xyz"); assertNotNull(jobProcessFileXyz); } } |