Package tests.jfun.models

Examples of tests.jfun.models.Automobile


        .starter("start2")
        .stopper("stop2")
        .manage(c);
      Container yan = createYanContainer();
      yan.registerComponent("target", c);
      Automobile a = (Automobile)yan.getInstance("target");
      assertFalse(a.isRunning1());
      assertFalse(a.isRunning2());
      man1.start();
      assertTrue(a.isRunning1());
      assertFalse(a.isRunning2());
      man2.start();
      assertTrue(a.isRunning1());
      assertTrue(a.isRunning2());  
      man1.stop();
      assertFalse(a.isRunning1());
      assertTrue(a.isRunning2());
      man2.stop();
      assertFalse(a.isRunning1());
      assertFalse(a.isRunning2());
    }
View Full Code Here

TOP

Related Classes of tests.jfun.models.Automobile

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.