link start!
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package org.testng.remote.adapter;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Properties;
|
||||
import org.testng.xml.XmlSuite;
|
||||
|
||||
public interface IMasterAdapter {
|
||||
void awaitTermination(long j) throws InterruptedException;
|
||||
|
||||
void init(Properties properties) throws Exception;
|
||||
|
||||
void runSuitesRemotely(XmlSuite xmlSuite, RemoteResultListener remoteResultListener) throws IOException;
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package org.testng.remote.adapter;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Properties;
|
||||
import org.testng.ISuite;
|
||||
import org.testng.xml.XmlSuite;
|
||||
|
||||
public interface IWorkerAdapter {
|
||||
XmlSuite getSuite(long j) throws InterruptedException, IOException;
|
||||
|
||||
void init(Properties properties) throws Exception;
|
||||
|
||||
void returnResult(ISuite iSuite) throws IOException;
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package org.testng.remote.strprotocol;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public interface IMessage extends Serializable {
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package org.testng.remote.strprotocol;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.SocketTimeoutException;
|
||||
|
||||
public interface IMessageSender {
|
||||
void connect() throws IOException;
|
||||
|
||||
void initReceiver() throws SocketTimeoutException;
|
||||
|
||||
IMessage receiveMessage() throws Exception;
|
||||
|
||||
void sendAck();
|
||||
|
||||
void sendMessage(IMessage iMessage) throws Exception;
|
||||
|
||||
void sendStop();
|
||||
|
||||
void shutDown();
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package org.testng.remote.strprotocol;
|
||||
|
||||
public interface IRemoteSuiteListener {
|
||||
void onFinish(SuiteMessage suiteMessage);
|
||||
|
||||
void onInitialization(GenericMessage genericMessage);
|
||||
|
||||
void onStart(SuiteMessage suiteMessage);
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package org.testng.remote.strprotocol;
|
||||
|
||||
public interface IRemoteTestListener {
|
||||
void onFinish(TestMessage testMessage);
|
||||
|
||||
void onStart(TestMessage testMessage);
|
||||
|
||||
void onTestFailedButWithinSuccessPercentage(TestResultMessage testResultMessage);
|
||||
|
||||
void onTestFailure(TestResultMessage testResultMessage);
|
||||
|
||||
void onTestSkipped(TestResultMessage testResultMessage);
|
||||
|
||||
void onTestStart(TestResultMessage testResultMessage);
|
||||
|
||||
void onTestSuccess(TestResultMessage testResultMessage);
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package org.testng.remote.strprotocol;
|
||||
|
||||
public interface IStringMessage extends IMessage {
|
||||
String getMessageAsString();
|
||||
}
|
||||
Reference in New Issue
Block a user