Handle prerequisites - bug 10486
authorChad Peckham <chad.peckham@nokia.com>
Fri, 29 Jan 2010 15:44:10 -0600
changeset 850 cd20cfc0713f
parent 849 d8886f16bea3
child 851 d2a19f32069e
Handle prerequisites - bug 10486
connectivity/com.nokia.carbide.remoteConnections.tests/src/com/nokia/carbide/remoteconnections/tests/discovery/RandomDiscoveryAgent.java
--- 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());
+	}
+
 }