KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > oddjob > values > SetJobTest


1 /*
2  * Copyright (c) 2005, Rob Gordon.
3  */

4 package org.oddjob.values;
5
6 import junit.framework.TestCase;
7
8 import org.oddjob.Helper;
9 import org.oddjob.Oddjob;
10 import org.oddjob.state.JobState;
11
12 /**
13  *
14  * @author Rob Gordon.
15  */

16 public class SetJobTest extends TestCase {
17
18     public void testBasic() {
19         Oddjob oj = new Oddjob();
20         oj.setInput(getClass().getResourceAsStream("set-test.xml"));
21         oj.run();
22         
23         CheckBasicSetters check = (CheckBasicSetters)oj.lookup("check");
24         assertNotNull(check);
25         assertEquals("Job state", JobState.COMPLETE, Helper.getJobState(check));
26     }
27     
28 }
29
Popular Tags