connectivity/com.nokia.carbide.remoteConnections.tests/src/com/nokia/carbide/remoteconnections/tests/discovery/RandomDiscoveryAgent.java
equal
deleted
inserted
replaced
90 IConnection2 connection = (IConnection2) factory.createConnection(settings); |
90 IConnection2 connection = (IConnection2) factory.createConnection(settings); |
91 connection.setDisplayName(connection.getConnectionType().getDisplayName() + " " + val + " ms"); |
91 connection.setDisplayName(connection.getConnectionType().getDisplayName() + " " + val + " ms"); |
92 connection.setDynamic(true); |
92 connection.setDynamic(true); |
93 connections.add(connection); |
93 connections.add(connection); |
94 manager.addConnection(connection); |
94 manager.addConnection(connection); |
95 manager.setDefaultConnection(connection); |
95 manager.setCurrentConnection(connection); |
96 } |
96 } |
97 |
97 |
98 private String getRandomIntervalString() { |
98 private String getRandomIntervalString() { |
99 int r = getRandomIntBetween(1000, 30000); |
99 int r = getRandomIntBetween(1000, 30000); |
100 return Integer.toString(r); |
100 return Integer.toString(r); |