1 package com.eviware.soapui.support.resolver; 2 3 import com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase; 4 import com.eviware.soapui.impl.wsdl.teststeps.WsdlRunTestCaseTestStep; 5 import com.eviware.soapui.support.resolver.ResolveContext.Resolver; 6 7 public class CreateNewEmptyTestCase implements Resolver 8 { 9 10 private boolean resolved; 11 private WsdlRunTestCaseTestStep testStep; 12 13 public CreateNewEmptyTestCase(WsdlRunTestCaseTestStep wsdlRunTestCaseTestStep) 14 { 15 testStep = wsdlRunTestCaseTestStep; 16 } 17 18 public String getDescription() 19 { 20 return "Create new empty test case"; 21 } 22 23 @Override 24 public String toString() 25 { 26 return getDescription(); 27 } 28 29 public String getResolvedPath() 30 { 31 return null; 32 } 33 34 public boolean isResolved() 35 { 36 return resolved; 37 } 38 39 public boolean resolve() 40 { 41 WsdlTestCase tCase = testStep.getTestCase().getTestSuite().addNewTestCase("New Test Case"); 42 testStep.setTargetTestCase(tCase); 43 resolved = true; 44 return resolved; 45 } 46 47 }