use of org.evosuite.symbolic.TestCaseBuilder in project evosuite by EvoSuite.
the class TestSolverStringFunctions method buildTestSubstring.
private static DefaultTestCase buildTestSubstring() throws SecurityException, NoSuchMethodException {
TestCaseBuilder tc = new TestCaseBuilder();
VariableReference string0 = tc.appendStringPrimitive("unhappy");
Method method = TestCaseStringSubstring.class.getMethod("test", String.class);
tc.appendMethod(null, method, string0);
return tc.getDefaultTestCase();
}
use of org.evosuite.symbolic.TestCaseBuilder in project evosuite by EvoSuite.
the class TestSolverStringFunctions method buildTestCharAt.
private static DefaultTestCase buildTestCharAt() throws SecurityException, NoSuchMethodException {
TestCaseBuilder tc = new TestCaseBuilder();
VariableReference string0 = tc.appendStringPrimitive("XHello");
Method method = TestCaseStringCharAt.class.getMethod("test", String.class);
tc.appendMethod(null, method, string0);
return tc.getDefaultTestCase();
}
use of org.evosuite.symbolic.TestCaseBuilder in project evosuite by EvoSuite.
the class MockJOptionPaneShowInputDialogTest method buildTestCase0.
private static TestCase buildTestCase0(InstrumentingClassLoader cl) throws ClassNotFoundException, NoSuchMethodException, SecurityException {
TestCaseBuilder builder = new TestCaseBuilder();
Class<?> clazz = cl.loadClass(ShowInputDialogExample.class.getCanonicalName());
Constructor<?> constructor = clazz.getConstructor();
VariableReference showMessageDialogExample0 = builder.appendConstructor(constructor);
Method showInputDialogsMethod = clazz.getMethod("showInputDialogs");
builder.appendMethod(showMessageDialogExample0, showInputDialogsMethod);
return builder.getDefaultTestCase();
}
use of org.evosuite.symbolic.TestCaseBuilder in project evosuite by EvoSuite.
the class MockJOptionPaneShowInternalInputDialogTest method buildTestCase0.
private static TestCase buildTestCase0(InstrumentingClassLoader cl) throws ClassNotFoundException, NoSuchMethodException, SecurityException {
TestCaseBuilder builder = new TestCaseBuilder();
Class<?> clazz = cl.loadClass(TARGET_CLASS);
Constructor<?> constructor = clazz.getConstructor();
VariableReference showMessageDialogExample0 = builder.appendConstructor(constructor);
Method showInputDialogsMethod = clazz.getMethod("showInternalInputDialogs");
builder.appendMethod(showMessageDialogExample0, showInputDialogsMethod);
return builder.getDefaultTestCase();
}
use of org.evosuite.symbolic.TestCaseBuilder in project evosuite by EvoSuite.
the class MockJOptionPaneShowConfirmDialogTest method buildTestCase0.
private static TestCase buildTestCase0(InstrumentingClassLoader cl) throws ClassNotFoundException, NoSuchMethodException, SecurityException {
TestCaseBuilder builder = new TestCaseBuilder();
Class<?> clazz = cl.loadClass(ShowConfirmDialogExample.class.getCanonicalName());
Constructor<?> constructor = clazz.getConstructor();
VariableReference showMessageDialogExample0 = builder.appendConstructor(constructor);
Method showConfirmDialogsMethod = clazz.getMethod("showConfirmDialogs");
builder.appendMethod(showMessageDialogExample0, showConfirmDialogsMethod);
return builder.getDefaultTestCase();
}
Aggregations