else if( testCase.getTestSuite().getProject() == target.getProject() )
{
if( UISupport.confirm( "Move TestCase [" + testCase.getName() + "] to TestSuite [" + target.getName() + "]",
"Move TestCase" ) )
{
WsdlTestCase importedTestCase = target.importTestCase( testCase, testCase.getName(), position, true, true,
false );
if( importedTestCase != null )
{
testCase.getTestSuite().removeTestCase( testCase );
return importedTestCase;
}
}
}
else if( UISupport.confirm( "Move TestCase [" + testCase.getName() + "] to TestSuite [" + target.getName() + "]",
"Move TestCase" ) )
{
Set<Interface> requiredInterfaces = new HashSet<Interface>();
// get required interfaces
for( int y = 0; y < testCase.getTestStepCount(); y++ )
{
WsdlTestStep testStep = testCase.getTestStepAt( y );
requiredInterfaces.addAll( testStep.getRequiredInterfaces() );
}
if( DragAndDropSupport.importRequiredInterfaces( target.getProject(), requiredInterfaces, "Move TestCase" ) )
{
WsdlTestCase importedTestCase = target.importTestCase( testCase, testCase.getName(), position, true, true,
false );
if( importedTestCase != null )
{
testCase.getTestSuite().removeTestCase( testCase );
return importedTestCase;