}
}
public void importMockOperation( File file )
{
MockOperationConfig mockOperationNewConfig = null;
if( !file.exists() )
{
UISupport.showErrorMessage( "Error loading mock operation." );
return;
}
try
{
mockOperationNewConfig = MockOperationDocumentConfig.Factory.parse( file ).getMockOperation();
}
catch( Exception e )
{
SoapUI.logError( e );
}
if( mockOperationNewConfig != null )
{
MockOperationConfig newConfig = ( MockOperationConfig )getConfig().addNewMockOperation()
.set( mockOperationNewConfig ).changeType( TestCaseConfig.type );
WsdlMockOperation newMockOperation = new WsdlMockOperation( this, newConfig );
ModelSupport.unsetIds( newMockOperation );
newMockOperation.afterLoad();
mockOperations.add( newMockOperation );