コード例 #1
0
  private static DefaultTestCase buildTestLength() throws SecurityException, NoSuchMethodException {
    TestCaseBuilder tc = new TestCaseBuilder();
    VariableReference string0 = tc.appendStringPrimitive("01234");

    Method method = TestCaseStringLength.class.getMethod("test", String.class);
    tc.appendMethod(null, method, string0);
    return tc.getDefaultTestCase();
  }
コード例 #2
0
  private static DefaultTestCase buildTestIndexOfCharInt()
      throws SecurityException, NoSuchMethodException {
    TestCaseBuilder tc = new TestCaseBuilder();
    VariableReference string0 = tc.appendStringPrimitive("H....Xello");

    Method method = TestCaseStringIndexOfCharInt.class.getMethod("test", String.class);
    tc.appendMethod(null, method, string0);
    return tc.getDefaultTestCase();
  }
コード例 #3
0
  private static DefaultTestCase buildTestNotEquals()
      throws SecurityException, NoSuchMethodException {
    TestCaseBuilder tc = new TestCaseBuilder();
    VariableReference string0 = tc.appendStringPrimitive("Not equal to Hello World");

    Method method = TestCaseStringNotEquals.class.getMethod("test", String.class);
    tc.appendMethod(null, method, string0);
    return tc.getDefaultTestCase();
  }