# HG changeset patch # User Chad Peckham # Date 1264801450 21600 # Node ID cd20cfc0713faac23efbe1c260817cd19705ff00 # Parent d8886f16bea3a075e5a6e2b222c605b38b2a709f Handle prerequisites - bug 10486 diff -r d8886f16bea3 -r cd20cfc0713f 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()); + } + }