Package fitnesse.slim.instructions

Examples of fitnesse.slim.instructions.CallInstruction


  @Test
  public void localizedCheckWithFunctionAndTrailingName() throws Exception {
    buildInstructionsFor("|localized check|function|arg|trail|result|\n", true);
    List<CallInstruction> expectedInstructions =
      asList(
              new CallInstruction("localizedScriptTable_id_0", "localizedScriptTableActor", "functionTrail", new Object[]{"arg"})
      );
    assertEquals(expectedInstructions, instructions());
  }
View Full Code Here


  @Test
  public void rejectWithFunctionCall() throws Exception {
    buildInstructionsFor("|reject|function|arg|\n", false);
    List<CallInstruction> expectedInstructions =
      asList(
              new CallInstruction("scriptTable_id_0", "scriptTableActor", "function", new Object[]{"arg"})
      );
    assertEquals(expectedInstructions, instructions());
  }
View Full Code Here

  @Test
  public void localizedRejectWithFunctionCall() throws Exception {
    buildInstructionsFor("|localized reject|function|arg|\n", true);
    List<CallInstruction> expectedInstructions =
      asList(
              new CallInstruction("localizedScriptTable_id_0", "localizedScriptTableActor", "function", new Object[]{"arg"})
      );
    assertEquals(expectedInstructions, instructions());
  }
View Full Code Here

  @Test
  public void ensureWithFunctionCall() throws Exception {
    buildInstructionsFor("|ensure|function|arg|\n", false);
    List<CallInstruction> expectedInstructions =
      asList(
              new CallInstruction("scriptTable_id_0", "scriptTableActor", "function", new Object[]{"arg"})
      );
    assertEquals(expectedInstructions, instructions());
  }
View Full Code Here

  @Test
  public void localizedEnsureWithFunctionCall() throws Exception {
    buildInstructionsFor("|localized ensure|function|arg|\n", true);
    List<CallInstruction> expectedInstructions =
      asList(
              new CallInstruction("localizedScriptTable_id_0", "localizedScriptTableActor", "function", new Object[]{"arg"})
      );
    assertEquals(expectedInstructions, instructions());
  }
View Full Code Here

  @Test
  public void showWithFunctionCall() throws Exception {
    buildInstructionsFor("|show|function|arg|\n", false);
    List<CallInstruction> expectedInstructions =
      asList(
              new CallInstruction("scriptTable_id_0", "scriptTableActor", "function", new Object[]{"arg"})
      );
    assertEquals(expectedInstructions, instructions());
  }
View Full Code Here

  @Test
  public void localizedShowWithFunctionCall() throws Exception {
    buildInstructionsFor("|localized show|function|arg|\n", true);
    List<CallInstruction> expectedInstructions =
      asList(
              new CallInstruction("localizedScriptTable_id_0", "localizedScriptTableActor", "function", new Object[]{"arg"})
      );
    assertEquals(expectedInstructions, instructions());
  }
View Full Code Here

  @Test
  public void useSymbol() throws Exception {
    buildInstructionsFor("|function|$V|\n", false);
    List<CallInstruction> expectedInstructions =
      asList(
              new CallInstruction("scriptTable_id_0", "scriptTableActor", "function", new Object[]{"$V"})
      );
    assertEquals(expectedInstructions, instructions());
  }
View Full Code Here

        "!|DT:myScenario|\n" +
        "|input|\n" +
        "|7|\n"
    );
    List<CallInstruction> expectedInstructions =
            asList(new CallInstruction("decisionTable_did_0/scriptTable_s_id_0", "scriptTableActor", "function", new Object[]{"7"}));
    assertEquals(expectedInstructions, instructions());
  }
View Full Code Here

        "|user name|password|pin|\n" +
        "|bob|xyzzy|7734|\n" +
        "|bill|yabba|8892|\n"
    );
    List<CallInstruction> expectedInstructions =
            asList(new CallInstruction("decisionTable_did_0/scriptTable_s_id_0", "scriptTableActor", "loginWithPasswordAndPin", new Object[]{"bob", "xyzzy", "7734"}), new CallInstruction("decisionTable_did_1/scriptTable_s_id_0", "scriptTableActor", "loginWithPasswordAndPin", new Object[]{"bill", "yabba", "8892"}));
    assertEquals(expectedInstructions, instructions());
  }
View Full Code Here

TOP

Related Classes of fitnesse.slim.instructions.CallInstruction

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.