Beispiel #1
0
 /** Test of addChildActivity method, of class Activity. */
 @Test
 public void testAddChildActivity() {
   System.out.println("addChildActivity");
   Activity childActivity = null;
   Activity instance = new ChildActivity();
   instance.addChildActivity(childActivity);
   // TODO review the generated test code and remove the default call to fail.
   fail("The test case is a prototype.");
 }
Beispiel #2
0
 /** Test of getScene method, of class Activity. */
 @Test
 public void testGetScene() {
   System.out.println("getScene");
   // Setup
   Activity act = new ChildActivity();
   VBox vbox = new VBox();
   act.setScene(vbox);
   // Assertion
   assertEquals(vbox, act.getScene());
 }
Beispiel #3
0
 /** Test of getParent method, of class Activity. */
 @Test
 public void testGetParent() {
   System.out.println("getParent");
   // Setup
   Activity parent = new ParentActivity();
   Activity child = new ChildActivity();
   child.setParent(parent);
   // Assertion
   assertEquals(parent, child.getParent());
 }
Beispiel #4
0
 /** Test of getChildActivities method, of class Activity. */
 @Test
 public void testGetChildActivities() {
   System.out.println("getChildActivities");
   Class<? extends Activity> clazz = null;
   Activity instance = new ChildActivity();
   List expResult = null;
   List result = instance.getChildActivities(clazz);
   assertEquals(expResult, result);
   // TODO review the generated test code and remove the default call to fail.
   fail("The test case is a prototype.");
 }