Examples of Scenario


Examples of org.moresbycoffee.mbyhave8.structure.Scenario

    @Test
    public void the_secenario_callbacks_should_be_called_before_and_after_the_scenario() {
        final ScenarioHooks hooks = Mockito.mock(ScenarioHooks.class);
        final InOrder inOrder = Mockito.inOrder(hooks);

        final Scenario scenario = TestUtils.successScenario();

        scenario.execute(hooks);

        final ArgumentCaptor<Scenario> scenarioCaptor = ArgumentCaptor.forClass(Scenario.class);
        inOrder.verify(hooks).startScenario(scenarioCaptor.capture());
        inOrder.verify(hooks).endScenario(Mockito.eq(scenarioCaptor.getValue()), Mockito.eq(ScenarioResult.Success));
View Full Code Here

Examples of org.netbeans.jemmy.Scenario

  void run() throws Exception {
    AbstractAppletTag appletTag = fAppletPluginArguments.getAppletTag();
    AbstractAppletStub appletStub = fAppletContext.newStub(newApplet(appletTag), appletTag, fAppletPluginArguments);

    final Scenario scenario = newScenario(appletStub.getRootFrame());
    final ScenarioRunner jemmyRunnable = new ScenarioRunner(scenario);

        internalRun(appletStub, jemmyRunnable);
    }
View Full Code Here

Examples of rinde.sim.scenario.Scenario

        .setScenarioLength(240)
        .build();
    final RandomGenerator rng = new MersenneTwister(123);

    for (int i = 0; i < 10; i++) {
      final Scenario s = sg.generate(rng);

      Metrics.checkTimeWindowStrictness(s);

      final List<Double> loads = Metrics.measureLoad(s);
      Analysis.writeLoads(loads, new File("files/generator/load/scenario" + i
View Full Code Here

Examples of teammates.testing.object.Scenario

*/

public class AutoImportTestData {

  public static void main(String args[]) {
    Scenario sc = Scenario.fromJSONFile("./scenario2.json");
    TMAPI.cleanup();
 
    // -----Course 1-----//
    TMAPI.createCourse(sc.course);
    TMAPI.enrollStudents(sc.course.courseId, sc.course.students);
    // ..evaluation 1 OPEN
    sc.evaluation.p2pcomments = "false";
    TMAPI.createEvaluation(sc.evaluation);
    TMAPI.studentsJoinCourse(sc.students, sc.course.courseId);
    TMAPI.openEvaluation(sc.course.courseId, sc.evaluation.name);
    TMAPI.studentsSubmitFeedbacks(sc.course.students, sc.course.courseId,
        sc.evaluation.name);

    // ..evaluation 2 PUBLISHED
    TMAPI.createEvaluation(sc.evaluation2);
    TMAPI.studentsJoinCourse(sc.students, sc.course.courseId);
    TMAPI.openEvaluation(sc.course.courseId, sc.evaluation2.name);

    // TMAPI.firstStudentDidNotSubmitFeedbacks(sc.students, sc.course.courseId,
    // sc.evaluation2.name);
    TMAPI.studentsSubmitFeedbacks(
        sc.students.subList(1, sc.students.size() - 1), sc.course.courseId,
        sc.evaluation2.name);

    TMAPI.closeEvaluation(sc.course.courseId, sc.evaluation2.name);
    TMAPI.publishEvaluation(sc.course.courseId, sc.evaluation2.name);

    Scenario nsc = Scenario.newScenario("target/test-classes/scenario.json");

    // -----Course 2-----//
    TMAPI.createCourse(nsc.course2);
    TMAPI.enrollStudents(nsc.course2.courseId, nsc.course2.students);
    // ..evaluation 3 CLOSED
View Full Code Here

Examples of trams.data.Scenario

    private void createAndStoreScenarios ( List<Route> routes, List<Vehicle> vehicles, List<Driver> drivers, int passengerSatisfaction, String playerName, double balance ) {
      Session session = HibernateUtil.getSessionFactory().getCurrentSession();
        session.beginTransaction();
       
        ApplicationContext theContext = new ClassPathXmlApplicationContext("trams/data/context.xml");
        Scenario theScenario = (Scenario) theContext.getBean("LanduffScenario");
        theScenario.setPlayerName(playerName);
        theScenario.setBalance(balance);
        theScenario.setPassengerSatisfaction(passengerSatisfaction);
        theScenario.setRoutes(routes);
        theScenario.setVehicles(vehicles);
        theScenario.setDrivers(drivers);
       
        session.save(theScenario);
        session.getTransaction().commit();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.