--- a/connectivity/com.nokia.carbide.remoteConnections.tests/src/com/nokia/carbide/remoteconnections/tests/discovery/RandomDiscoveryAgent.java Fri Jan 29 15:42:36 2010 -0600
+++ b/connectivity/com.nokia.carbide.remoteConnections.tests/src/com/nokia/carbide/remoteconnections/tests/discovery/RandomDiscoveryAgent.java Fri Jan 29 15:44:10 2010 -0600
@@ -35,6 +35,31 @@
import com.nokia.carbide.remoteconnections.tests.extensions.TestFilter;
public class RandomDiscoveryAgent implements IDeviceDiscoveryAgent {
+ public class RandomPrerequisiteStatus implements IPrerequisiteStatus {
+
+ private boolean OK;
+ private String errorText;
+ private URL location;
+
+ RandomPrerequisiteStatus() {
+ OK = true;
+ errorText = null;
+ location = null;
+ }
+ public String getErrorText() {
+ return errorText;
+ }
+
+ public URL getURL() {
+ return location;
+ }
+
+ public boolean isOK() {
+ return OK;
+ }
+
+ }
+
private static final String CONNECTION_TYPE =
"com.nokia.carbide.remoteconnections.tests.extensions.IntervalConnectionType";
private Random random = new Random();
@@ -113,4 +138,12 @@
thread.stopRunning();
}
+ public String getDisplayName() {
+ return "Random Test Discovery Agent";
+ }
+
+ public IPrerequisiteStatus getPrerequisiteStatus() {
+ return (new RandomPrerequisiteStatus());
+ }
+
}