KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > oddjob > monitor > model > ExplorerContextTest


1 /*
2  * (c) Rob Gordon 2005
3  */

4 package org.oddjob.monitor.model;
5
6 import org.oddjob.Oddjob;
7
8 import junit.framework.TestCase;
9
10 public class ExplorerContextTest extends TestCase {
11
12     /**
13      * Trivial test to check oddjob is set.
14      *
15      */

16     public void testOddjobSet() {
17         ExplorerModel em = new ExplorerModel();
18         em.setRoot(new Object JavaDoc());
19         ExplorerContext ec1 = new ExplorerContext(em);
20         
21         Oddjob oj = new Oddjob();
22         ExplorerContext ec2 = new ExplorerContext(oj, ec1);
23         
24         assertEquals(oj, ec2.getOddjob());
25     }
26 }
27
Popular Tags