use of org.evosuite.symbolic.TestCaseBuilder in project evosuite by EvoSuite.
the class MockJOptionPaneShowInternalConfirmDialogTest 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);
VariableReference int0 = builder.appendIntPrimitive(1);
Method showMessageDialogMethod = clazz.getMethod("showInternalConfirmDialog", int.class);
builder.appendMethod(showMessageDialogExample0, showMessageDialogMethod, int0);
return builder.getDefaultTestCase();
}
use of org.evosuite.symbolic.TestCaseBuilder in project evosuite by EvoSuite.
the class MockJOptionPaneShowInternalConfirmDialogTest method buildTestCase1.
private static TestCase buildTestCase1(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);
VariableReference int0 = builder.appendIntPrimitive(0);
Method showMessageDialogMethod = clazz.getMethod("showInternalConfirmDialog", int.class);
builder.appendMethod(showMessageDialogExample0, showMessageDialogMethod, int0);
return builder.getDefaultTestCase();
}
use of org.evosuite.symbolic.TestCaseBuilder in project evosuite by EvoSuite.
the class MockJOptionPaneShowMessageDialogTest method buildTestCase0FalseBranch.
private static TestCase buildTestCase0FalseBranch(InstrumentingClassLoader cl) throws ClassNotFoundException, NoSuchMethodException, SecurityException {
TestCaseBuilder builder = new TestCaseBuilder();
Class<?> clazz = cl.loadClass(ShowMessageDialogExample.class.getCanonicalName());
Constructor<?> constructor = clazz.getConstructor();
VariableReference showMessageDialogExample0 = builder.appendConstructor(constructor);
VariableReference int0 = builder.appendIntPrimitive(1);
Method showMessageDialogMethod = clazz.getMethod("showMessageDialog0", int.class);
builder.appendMethod(showMessageDialogExample0, showMessageDialogMethod, int0);
return builder.getDefaultTestCase();
}
use of org.evosuite.symbolic.TestCaseBuilder in project evosuite by EvoSuite.
the class MockJOptionPaneShowMessageDialogTest method buildTestCase1FalseBranch.
private static TestCase buildTestCase1FalseBranch(InstrumentingClassLoader cl) throws ClassNotFoundException, NoSuchMethodException, SecurityException {
TestCaseBuilder builder = new TestCaseBuilder();
Class<?> clazz = cl.loadClass(ShowMessageDialogExample.class.getCanonicalName());
Constructor<?> constructor = clazz.getConstructor();
VariableReference showMessageDialogExample0 = builder.appendConstructor(constructor);
VariableReference int0 = builder.appendIntPrimitive(1);
Method showMessageDialogMethod = clazz.getMethod("showMessageDialog1", int.class);
builder.appendMethod(showMessageDialogExample0, showMessageDialogMethod, int0);
return builder.getDefaultTestCase();
}
use of org.evosuite.symbolic.TestCaseBuilder in project evosuite by EvoSuite.
the class MockJOptionPaneShowMessageDialogTest method buildTestCase2FalseBranch.
private static TestCase buildTestCase2FalseBranch(InstrumentingClassLoader cl) throws ClassNotFoundException, NoSuchMethodException, SecurityException {
TestCaseBuilder builder = new TestCaseBuilder();
Class<?> clazz = cl.loadClass(ShowMessageDialogExample.class.getCanonicalName());
Constructor<?> constructor = clazz.getConstructor();
VariableReference showMessageDialogExample0 = builder.appendConstructor(constructor);
VariableReference int0 = builder.appendIntPrimitive(1);
Method showMessageDialogMethod = clazz.getMethod("showMessageDialog2", int.class);
builder.appendMethod(showMessageDialogExample0, showMessageDialogMethod, int0);
return builder.getDefaultTestCase();
}
Aggregations