Package fitnesse.slim.instructions

Examples of fitnesse.slim.instructions.ImportInstruction


    buildInstructionsFor(
      "|fitnesse.slim.test|\n" +
        "|x.y.z|\n"
    );
    List<? extends Instruction> expectedInstructions =
            Arrays.asList(new ImportInstruction("import_id_0", "fitnesse.slim.test"), new ImportInstruction("import_id_1", "x.y.z"));
    assertEquals(expectedInstructions, instructions);
  }
View Full Code Here


      throw new SyntaxError("Import tables must have at least two rows.");

    for (int row = 1; row < rows; row++) {
      String importString = table.getCellContents(0, row);
      if (importString.length() > 0) {
        Instruction importInstruction = new ImportInstruction(makeInstructionTag(), importString);
        instructions.add(makeAssertion(importInstruction, new ImportExpectation(0, row)));
      }
    }
    return instructions;
  }
View Full Code Here

  private void addEchoInt(String id, String number) {
    statements.add(new CallInstruction(id, "testSlim", "echoInt", new Object[] { number }));
  }

  private void addImportAndMake() {
    statements.add(new ImportInstruction("i1", getImport()));
    statements.add(new MakeInstruction("m1", "testSlim", "TestSlim"));
  }
View Full Code Here

TOP

Related Classes of fitnesse.slim.instructions.ImportInstruction

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.