use of com.ibm.streamsx.topology.jobconfig.JobConfig in project streamsx.topology by IBMStreams.
the class JobConfigSubmissionTest method testGroupJobConfig.
@Test
public void testGroupJobConfig() throws Exception {
JobConfig config = new JobConfig();
config.setJobGroup("default");
List<String> result = testItDirect("testGroupJobConfig", config);
// job id
assertFalse(result.get(0).isEmpty());
// job name
assertFalse(result.get(2).isEmpty());
// job group
assertEquals("default", result.get(2));
// data-directory
assertEquals("<empty>", result.get(3));
}
use of com.ibm.streamsx.topology.jobconfig.JobConfig in project streamsx.topology by IBMStreams.
the class JobSubmissionAPITest method testEmptyJobConfig.
@Test
public void testEmptyJobConfig() {
JobConfig jc = new JobConfig();
assertNull(jc.getJobGroup());
assertNull(jc.getJobName());
_testMostlyEmptyJobConfig(jc);
}
use of com.ibm.streamsx.topology.jobconfig.JobConfig in project streamsx.topology by IBMStreams.
the class JobSubmissionAPITest method testFromConfigJobConfig.
@Test
public void testFromConfigJobConfig() {
Map<String, Object> config = new HashMap<>();
JobConfig jc = new JobConfig();
jc.setJobGroup("groupE");
jc.setJobName("nameF");
config.put(JobProperties.CONFIG, jc);
JobConfig jcc = JobConfig.fromProperties(config);
assertSame(jc, jcc);
config.put(JobProperties.GROUP, "groupC");
config.put(JobProperties.NAME, "nameD");
jcc = JobConfig.fromProperties(config);
assertSame(jc, jcc);
assertEquals("groupE", jc.getJobGroup());
assertEquals("nameF", jc.getJobName());
}
use of com.ibm.streamsx.topology.jobconfig.JobConfig in project streamsx.topology by IBMStreams.
the class JobSubmissionAPITest method testConstructedJobConfig.
@Test
public void testConstructedJobConfig() {
JobConfig jc = new JobConfig("groupY", "nameX");
assertEquals("groupY", jc.getJobGroup());
assertEquals("nameX", jc.getJobName());
_testMostlyEmptyJobConfig(jc);
}
use of com.ibm.streamsx.topology.jobconfig.JobConfig in project streamsx.topology by IBMStreams.
the class JobSubmissionAPITest method testSettersJobConfig.
@Test
public void testSettersJobConfig() {
JobConfig jc = new JobConfig();
jc.setJobGroup("groupYY");
jc.setJobName("nameXX");
assertEquals("groupYY", jc.getJobGroup());
assertEquals("nameXX", jc.getJobName());
}
Aggregations