junit/testng: use common configuration

This commit is contained in:
Anna Kozlova
2015-04-07 11:25:59 +02:00
parent 6c5c209172
commit a466f556aa
10 changed files with 131 additions and 118 deletions
@@ -38,7 +38,7 @@ import java.io.IOException;
import java.net.InetAddress;
import java.net.ServerSocket;
public abstract class JavaTestFrameworkRunnableState extends JavaCommandLineState {
public abstract class JavaTestFrameworkRunnableState<T extends ModuleBasedConfiguration<JavaRunConfigurationModule> & CommonJavaRunConfigurationParameters> extends JavaCommandLineState {
private static final Logger LOG = Logger.getInstance("#" + JavaTestFrameworkRunnableState.class.getName());
protected ServerSocket myServerSocket;
protected File myTempFile;
@@ -55,6 +55,8 @@ public abstract class JavaTestFrameworkRunnableState extends JavaCommandLineStat
@NotNull protected abstract AbstractRerunFailedTestsAction createRerunFailedTestsAction(TestConsoleProperties testConsoleProperties, ConsoleView consoleView);
@NotNull protected abstract T getConfiguration();
protected ExecutionResult startSMRunner(Executor executor,
OSProcessHandler handler,
RunConfigurationBase configuration,