BATCH-311:Added factory for JobInstanceProperties.

This commit is contained in:
lucasward
2008-01-23 23:17:51 +00:00
parent 50a9f0d84d
commit 21f23e05d1
2 changed files with 13 additions and 0 deletions

View File

@@ -152,6 +152,15 @@ public class JobInstancePropertiesTests extends TestCase {
assertEquals(string1, string2);
}
public void testIsEmpty(){
JobInstanceProperties props = new JobInstanceProperties();
assertTrue(props.isEmtpy());
props = new JobInstancePropertiesBuilder().addString("test", "test").toJobParameters();
assertFalse(props.isEmtpy());
}
// Not sure how to properly test this since there is no order garuntee, commenting out for now.
//