String name = "someMethod";
Class[] types = new Class[] {int.class, Object.class};
InvocationConstraint ic = Delegation.YES;
InvocationConstraints constraints = new InvocationConstraints(
ic, null);
MethodDesc md = callConstructor(testCase, name, types, constraints);
String result = md.toString();
if (result.length() == 0) {
throw new TestException(
"result should not be empty string");
}
// 2
if (testCase == case2arg) {
name = "*someMethod";
md = callConstructor(testCase, name, types, constraints);
result = md.toString();
if (result.length() == 0) {
throw new TestException(
"result should not be empty string");
}
name = "*5someMethod";
md = callConstructor(testCase, name, types, constraints);
result = md.toString();
if (result.length() == 0) {
throw new TestException(
"result should not be empty string");
}
}
// 3
if (testCase == case2arg) {
name = "someMethod*";
md = callConstructor(testCase, name, types, constraints);
result = md.toString();
if (result.length() == 0) {
throw new TestException(
"result should not be empty string");
}
}