// Path: src/main/java/org/ktc/soapui/maven/extension/impl/RunnerType.java
// public enum RunnerType {
//     PRO {
//         @Override
//         public SoapUITestCaseRunner newTestRunner() {
//             return new SoapUIProExtensionTestCaseRunner("SoapUI Pro Maven2 TestCase Runner");
//         }
// 
//         @Override
//         public SoapUIMockServiceRunner newMockRunner() {
//             return new SoapUIProExtensionMockServiceRunner("SoapUI Pro Maven2 MockService Runner");
//         }
// 
//         @Override
//         public SoapUIMockAsWarGenerator newMockAsWarGenerator() {
//             // currently no constructor with String arguments
//             return new SoapUIProMockAsWarGenerator();
//         }
// 
//         @Override
//         public boolean isProRunner() {
//             return true;
//         }
// 
//     },
//     OSS {
//         @Override
//         public SoapUITestCaseRunner newTestRunner() {
//             return new SoapUIExtensionTestCaseRunner("SoapUI Maven2 TestCase Runner");
//         }
// 
//         @Override
//         public SoapUIMockServiceRunner newMockRunner() {
//             return new SoapUIExtensionMockServiceRunner("SoapUI Maven2 MockService Runner");
//         }
// 
//         @Override
//         public SoapUIMockAsWarGenerator newMockAsWarGenerator() {
//             return new SoapUIExtensionMockAsWarGenerator("SoapUI Maven2 MockAsWar Generator");
//         }
// 
//         @Override
//         public boolean isProRunner() {
//             return false;
//         }
// 
//     };
// 
//     public abstract SoapUITestCaseRunner newTestRunner();
// 
//     public abstract SoapUIMockServiceRunner newMockRunner();
// 
//     public abstract SoapUIMockAsWarGenerator newMockAsWarGenerator();
// 
//     public abstract boolean isProRunner();
// }
// 
// Path: src/main/java/org/ktc/soapui/maven/extension/impl/enums/EnumConverter.java
// public class EnumConverter {
// 
//     public static ProjectConversionType toProjectConversionType(String value) {
//         try {
//             return ProjectConversionType.valueOf(value);
//         } catch (RuntimeException e) {
//             throw new UnknownEnumException("Unsupported project conversion type " + value + ". Valid values are "
//                     + buildEnumValuesToString(ProjectConversionType.values()) + "", e);
//         }
//     }
// 
//     public static RunnerType toRunnerType(String value) {
//         try {
//             return RunnerType.valueOf(value);
//         } catch (RuntimeException e) {
//             throw new UnknownEnumException("Unsupported runner type " + value + ". Valid values are "
//                     + buildEnumValuesToString(RunnerType.values()) + "", e);
//         }
//     }
// 
//     private static String buildEnumValuesToString(Object[] values) {
//         return "[" + StringUtils.join(values, ',') + "]";
//     }
//     
// }


import com.eviware.soapui.tools.SoapUIMockServiceRunner;
import org.ktc.soapui.maven.extension.impl.RunnerType;
import org.ktc.soapui.maven.extension.impl.enums.EnumConverter;
/*
 * Copyright 2014 Thomas Bouffard (redfish4ktc)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package org.ktc.soapui.maven.extension.impl.runner.wrapper;


public class SoapUIMockRunnerWrapper extends AbstractRunnerWrapper<SoapUIMockServiceRunner> {

    public static SoapUIMockRunnerWrapper newSoapUIMockServiceRunner(String runnerType) {
// Path: src/main/java/org/ktc/soapui/maven/extension/impl/RunnerType.java
// public enum RunnerType {
//     PRO {
//         @Override
//         public SoapUITestCaseRunner newTestRunner() {
//             return new SoapUIProExtensionTestCaseRunner("SoapUI Pro Maven2 TestCase Runner");
//         }
// 
//         @Override
//         public SoapUIMockServiceRunner newMockRunner() {
//             return new SoapUIProExtensionMockServiceRunner("SoapUI Pro Maven2 MockService Runner");
//         }
// 
//         @Override
//         public SoapUIMockAsWarGenerator newMockAsWarGenerator() {
//             // currently no constructor with String arguments
//             return new SoapUIProMockAsWarGenerator();
//         }
// 
//         @Override
//         public boolean isProRunner() {
//             return true;
//         }
// 
//     },
//     OSS {
//         @Override
//         public SoapUITestCaseRunner newTestRunner() {
//             return new SoapUIExtensionTestCaseRunner("SoapUI Maven2 TestCase Runner");
//         }
// 
//         @Override
//         public SoapUIMockServiceRunner newMockRunner() {
//             return new SoapUIExtensionMockServiceRunner("SoapUI Maven2 MockService Runner");
//         }
// 
//         @Override
//         public SoapUIMockAsWarGenerator newMockAsWarGenerator() {
//             return new SoapUIExtensionMockAsWarGenerator("SoapUI Maven2 MockAsWar Generator");
//         }
// 
//         @Override
//         public boolean isProRunner() {
//             return false;
//         }
// 
//     };
// 
//     public abstract SoapUITestCaseRunner newTestRunner();
// 
//     public abstract SoapUIMockServiceRunner newMockRunner();
// 
//     public abstract SoapUIMockAsWarGenerator newMockAsWarGenerator();
// 
//     public abstract boolean isProRunner();
// }
// 
// Path: src/main/java/org/ktc/soapui/maven/extension/impl/enums/EnumConverter.java
// public class EnumConverter {
// 
//     public static ProjectConversionType toProjectConversionType(String value) {
//         try {
//             return ProjectConversionType.valueOf(value);
//         } catch (RuntimeException e) {
//             throw new UnknownEnumException("Unsupported project conversion type " + value + ". Valid values are "
//                     + buildEnumValuesToString(ProjectConversionType.values()) + "", e);
//         }
//     }
// 
//     public static RunnerType toRunnerType(String value) {
//         try {
//             return RunnerType.valueOf(value);
//         } catch (RuntimeException e) {
//             throw new UnknownEnumException("Unsupported runner type " + value + ". Valid values are "
//                     + buildEnumValuesToString(RunnerType.values()) + "", e);
//         }
//     }
// 
//     private static String buildEnumValuesToString(Object[] values) {
//         return "[" + StringUtils.join(values, ',') + "]";
//     }
//     
// }


// Path: src/main/java/org/ktc/soapui/maven/extension/impl/runner/wrapper/SoapUIMockRunnerWrapper.java
import com.eviware.soapui.tools.SoapUIMockServiceRunner;
import org.ktc.soapui.maven.extension.impl.RunnerType;
import org.ktc.soapui.maven.extension.impl.enums.EnumConverter;

/*
 * Copyright 2014 Thomas Bouffard (redfish4ktc)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package org.ktc.soapui.maven.extension.impl.runner.wrapper;


public class SoapUIMockRunnerWrapper extends AbstractRunnerWrapper<SoapUIMockServiceRunner> {

    public static SoapUIMockRunnerWrapper newSoapUIMockServiceRunner(String runnerType) {
        RunnerType runnerTypeEnum = EnumConverter.toRunnerType(runnerType);