Skip to content

Commit 354810c

Browse files
committed
server: Deleting a method that is used in tests only
1 parent 40cfd59 commit 354810c

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

Diff for: java/server/src/org/openqa/grid/common/RegistrationRequest.java

-7
Original file line numberDiff line numberDiff line change
@@ -351,13 +351,6 @@ private static RegistrationRequest parseGrid1Request(String clientRequest) {
351351
}
352352
}
353353

354-
// TODO freynaud : this is only used in tests. Move the method ?
355-
public static RegistrationRequest localWebdriverNoCapabilities() {
356-
RegistrationRequest res = build("-role", "webdriver","-host","localhost");
357-
res.capabilities.clear();
358-
return res;
359-
}
360-
361354
public static RegistrationRequest build(String... args) {
362355
RegistrationRequest res = new RegistrationRequest();
363356
res.args = args;

Diff for: java/server/test/org/openqa/grid/plugin/RemoteProxyInheritanceTest.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ public class RemoteProxyInheritanceTest {
3838

3939
@Test
4040
public void defaultToRemoteProxy() {
41-
RegistrationRequest req = RegistrationRequest.localWebdriverNoCapabilities();
41+
RegistrationRequest res = RegistrationRequest.build("-role", "webdriver", "-host", "localhost");
42+
res.getCapabilities().clear();
43+
RegistrationRequest req = res;
4244

4345
Map<String, Object> app1 = new HashMap<String, Object>();
4446
Map<String, Object> config = new HashMap<String, Object>();

0 commit comments

Comments
 (0)