Skip to content

Commit 5ef36d8

Browse files
committed
java: update links to new canonical repo
1 parent 51c6b1d commit 5ef36d8

File tree

14 files changed

+70
-48
lines changed

14 files changed

+70
-48
lines changed

Diff for: java/client/src/org/openqa/selenium/chrome/ChromeDriverService.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
Copyright 2011-2012 Selenium committers
3-
Copyright 2011-2012 Software Freedom Conservancy
3+
Copyright 2011-2015 Software Freedom Conservancy
44
55
Licensed under the Apache License, Version 2.0 (the "License");
66
you may not use this file except in compliance with the License.
@@ -116,8 +116,8 @@ public Builder withSilent(boolean silent) {
116116
@Override
117117
protected File findDefaultExecutable() {
118118
return findExecutable("chromedriver", CHROME_DRIVER_EXE_PROPERTY,
119-
"http://code.google.com/p/selenium/wiki/ChromeDriver",
120-
"http://chromedriver.storage.googleapis.com/index.html");
119+
"https://github.com/SeleniumHQ/selenium/wiki/ChromeDriver",
120+
"http://chromedriver.storage.googleapis.com/index.html");
121121
}
122122

123123
@Override

Diff for: java/client/src/org/openqa/selenium/ie/InternetExplorerDriverService.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
Copyright 2011-2012 Selenium committers
3-
Copyright 2011-2012 Software Freedom Conservancy
3+
Copyright 2011-2015 Software Freedom Conservancy
44
55
Licensed under the Apache License, Version 2.0 (the "License");
66
you may not use this file except in compliance with the License.
@@ -165,8 +165,8 @@ public Builder withSilent(Boolean silent) {
165165
@Override
166166
protected File findDefaultExecutable() {
167167
return findExecutable("IEDriverServer", IE_DRIVER_EXE_PROPERTY,
168-
"http://code.google.com/p/selenium/wiki/InternetExplorerDriver",
169-
"http://selenium-release.storage.googleapis.com/index.html");
168+
"https://github.com/SeleniumHQ/selenium/wiki/InternetExplorerDriver",
169+
"http://selenium-release.storage.googleapis.com/index.html");
170170
}
171171

172172
@Override

Diff for: java/client/src/org/openqa/selenium/remote/http/JsonHttpCommandCodec.java

+17-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
Copyright 2015 Software Freedom Conservancy
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
117
package org.openqa.selenium.remote.http;
218

319
import static com.google.common.base.Charsets.UTF_8;
@@ -35,11 +51,10 @@
3551
/**
3652
* A command codec that adheres to the Selenium project's JSON/HTTP wire protocol.
3753
*
38-
* @see <a href="https://code.google.com/p/selenium/wiki/JsonWireProtocol">
54+
* @see <a href="https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol">
3955
* JSON wire protocol</a>
4056
*/
4157
public class JsonHttpCommandCodec implements CommandCodec<HttpRequest> {
42-
4358
private static final Splitter PATH_SPLITTER = Splitter.on('/').omitEmptyStrings();
4459
private static final String SESSION_ID_PARAM = "sessionId";
4560

@@ -171,7 +186,6 @@ public JsonHttpCommandCodec() {
171186
defineCommand(IME_ACTIVATE_ENGINE, post("/session/:sessionId/ime/activate"));
172187

173188
// Mobile Spec
174-
// https://code.google.com/p/selenium/source/browse/spec-draft.md?repo=mobile
175189
defineCommand(GET_NETWORK_CONNECTION, get("/session/:sessionId/network_connection"));
176190
defineCommand(SET_NETWORK_CONNECTION, post("/session/:sessionId/network_connection"));
177191
defineCommand(SWITCH_TO_CONTEXT, post("/session/:sessionId/context"));

Diff for: java/client/src/org/openqa/selenium/remote/http/JsonHttpResponseCodec.java

+17-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
Copyright 2015 Software Freedom Conservancy
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
117
package org.openqa.selenium.remote.http;
218

319
import static com.google.common.base.Charsets.UTF_8;
@@ -20,11 +36,10 @@
2036
/**
2137
* A response codec that adheres to the Selenium project's JSON/HTTP wire protocol.
2238
*
23-
* @see <a href="https://code.google.com/p/selenium/wiki/JsonWireProtocol">
39+
* @see <a href="https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol">
2440
* JSON wire protocol</a>
2541
*/
2642
public class JsonHttpResponseCodec implements ResponseCodec<HttpResponse> {
27-
2843
private final ErrorCodes errorCodes = new ErrorCodes();
2944
private final BeanToJsonConverter beanToJsonConverter = new BeanToJsonConverter();
3045
private final JsonToBeanConverter jsonToBeanConverter = new JsonToBeanConverter();

Diff for: java/client/src/org/openqa/selenium/remote/internal/WebElementToJsonConverter.java

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/*
2+
Copyright 2015 Software Freedom Conservancy
23
Copyright 2007-2010 Selenium committers
34
45
Licensed under the Apache License, Version 2.0 (the "License");
@@ -34,7 +35,7 @@
3435
* the WebDriver wire protocol. This class will recursively convert Lists and
3536
* Maps to catch nested references.
3637
*
37-
* @see <a href="http://code.google.com/p/selenium/wiki/JsonWireProtocol#WebElement_JSON_Object">
38+
* @see <a href="https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#webelement-json-object">
3839
* WebDriver JSON Wire Protocol</a>
3940
*/
4041
public class WebElementToJsonConverter implements Function<Object, Object> {
@@ -76,7 +77,7 @@ public Object apply(Object arg) {
7677
return converted;
7778
}
7879

79-
throw new IllegalArgumentException("Argument is of an illegal type: "
80-
+ arg.getClass().getName());
80+
throw new IllegalArgumentException("Argument is of an illegal type: " +
81+
arg.getClass().getName());
8182
}
8283
}

Diff for: java/client/src/org/openqa/selenium/remote/service/DriverService.java

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
Copyright 2011-2012 Selenium committers
3-
Copyright 2011-2012 Software Freedom Conservancy
3+
Copyright 2011-2015 Software Freedom Conservancy
44
55
Licensed under the Apache License, Version 2.0 (the "License");
66
you may not use this file except in compliance with the License.
@@ -43,13 +43,12 @@
4343
* Manages the life and death of a native executable driver server.
4444
*
4545
* It is expected that the driver server implements the
46-
* <a href="http://code.google.com/p/selenium/wiki/JsonWireProtocol">WebDriver Wire Protocol</a>.
46+
* <a href="https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol">WebDriver Wire Protocol</a>.
4747
* In particular, it should implement /status command that is used to check if the server is alive.
4848
* In addition to this, it is supposed that the driver server implements /shutdown hook that is
4949
* used to stop the server.
5050
*/
5151
public class DriverService {
52-
5352
/**
5453
* The base URL for the managed server.
5554
*/
@@ -301,8 +300,6 @@ public DS build() {
301300
protected abstract ImmutableList<String> createArgs();
302301

303302
protected abstract DS createDriverService(File exe, int port, ImmutableList<String> args,
304-
ImmutableMap<String, String> environment);
305-
303+
ImmutableMap<String, String> environment);
306304
}
307-
308305
}

Diff for: java/client/src/org/openqa/selenium/support/PageFactory.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/*
2+
Copyright 2015 Software Freedom Conservancy
23
Copyright 2007-2009 Selenium committers
34
45
Licensed under the Apache License, Version 2.0 (the "License");
@@ -30,10 +31,9 @@
3031
/**
3132
* Factory class to make using Page Objects simpler and easier.
3233
*
33-
* @see <a href="http://code.google.com/p/webdriver/wiki/PageObjects">Page Objects Wiki</a>
34+
* @see <a href="https://github.com/SeleniumHQ/selenium/wiki/PageObjects">Page Objects Wiki</a>
3435
*/
3536
public class PageFactory {
36-
3737
/**
3838
* Instantiate an instance of the given class, and set a lazy proxy for each of the WebElement and
3939
* List&lt;WebElement&gt; fields that have been declared, assuming that the field

Diff for: java/client/test/org/openqa/selenium/ErrorsTest.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
Copyright 2012 Selenium committers
3-
Copyright 2012 Software Freedom Conservancy
3+
Copyright 2012-2015 Software Freedom Conservancy
44
55
Licensed under the Apache License, Version 2.0 (the "License");
66
you may not use this file except in compliance with the License.
@@ -15,7 +15,6 @@
1515
limitations under the License.
1616
*/
1717

18-
1918
package org.openqa.selenium;
2019

2120
import org.junit.Test;

Diff for: java/client/test/org/openqa/selenium/testing/drivers/ExternalDriverSupplier.java

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/*
2+
Copyright 2015 Software Freedom Conservancy
23
Copyright 2013 Selenium committers
34
45
Licensed under the Apache License, Version 2.0 (the "License");
@@ -43,7 +44,7 @@
4344
* <dt>selenium.external.serverUrl</dt>
4445
* <dd>Defines the fully qualified URL of an external WebDriver server to send commands to.
4546
* This server <i>must</i> be compliant with the
46-
* <a href="http://code.google.com/p/selenium/wiki/JsonWireProtocol">JSON wire protocol</a>.
47+
* <a href="https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol">JSON wire protocol</a>.
4748
* If only this property is provided, then this supplier will provide a new
4849
* {@link RemoteWebDriver} instance pointed at the designated server. Otherwise, if a
4950
* custom supplier is also defined (see below), this supplier will wait for the server to
@@ -59,7 +60,6 @@
5960
* </dl>
6061
*/
6162
class ExternalDriverSupplier implements Supplier<WebDriver> {
62-
6363
private static final Logger logger = Logger.getLogger(ExternalDriverSupplier.class.getName());
6464

6565
private static final String DELEGATE_SUPPLIER_CLASS_PROPERTY = "selenium.external.supplierClass";
@@ -192,6 +192,4 @@ public WebDriver get() {
192192
return driver;
193193
}
194194
}
195-
196195
}
197-

Diff for: java/server/src/org/openqa/grid/web/servlet/DisplayHelpServlet.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
Copyright 2011 Selenium committers
3-
Copyright 2011 Software Freedom Conservancy
3+
Copyright 2015 Software Freedom Conservancy
44
55
Licensed under the Apache License, Version 2.0 (the "License");
66
you may not use this file except in compliance with the License.
@@ -31,7 +31,6 @@
3131
import javax.servlet.http.HttpServletResponse;
3232

3333
public class DisplayHelpServlet extends HttpServlet {
34-
3534
private static final long serialVersionUID = 8484071790930378855L;
3635
private static final Logger log = Logger.getLogger(ConsoleServlet.class.getName());
3736
private static String coreVersion;
@@ -73,7 +72,7 @@ protected void process(HttpServletRequest request, HttpServletResponse response)
7372
builder.append("<body>");
7473
builder.append("You are using grid ").append(coreVersion).append(coreRevision);
7574
builder
76-
.append("<br>Find help on the official selenium wiki : <a href='http://code.google.com/p/selenium/wiki/Grid2' >more help here</a>");
75+
.append("<br>Find help on the official selenium wiki : <a href='https://github.com/SeleniumHQ/selenium/wiki/Grid2' >more help here</a>");
7776
builder.append("<br>default monitoring page : <a href='/grid/console' >console</a>");
7877

7978
builder.append("</body>");

Diff for: java/server/src/org/openqa/grid/web/servlet/DriverServlet.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ protected void process(HttpServletRequest request, HttpServletResponse response)
8484

8585
} catch (Throwable e) {
8686
if (r instanceof WebDriverRequest && !response.isCommitted()) {
87-
// http://code.google.com/p/selenium/wiki/JsonWireProtocol#Error_Handling
87+
// https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#error-handling
8888
response.reset();
8989
response.setContentType("application/json");
9090
response.setCharacterEncoding("UTF-8");

Diff for: java/server/src/org/openqa/grid/web/servlet/beta/ConsoleServlet.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ private Object getHeader() {
201201
builder.append("<h2>Grid Console v.");
202202
builder.append(coreVersion).append(coreRevision);
203203
builder.append("</h2>");
204-
builder.append("<div><a id='helplink' target='_blank' href='http://code.google.com/p/selenium/wiki/Grid2'>Help</a></div>");
204+
builder.append("<div><a id='helplink' target='_blank' href='https://github.com/SeleniumHQ/selenium/wiki/Grid2'>Help</a></div>");
205205
builder.append("</div>");
206206
builder.append("");
207207
return builder.toString();

Diff for: java/server/src/org/openqa/selenium/remote/server/xdrpc/CrossDomainRpc.java

+12-13
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
/*
2-
Copyright 2011 Software Freedom Conservancy.
2+
Copyright 2011-2015 Software Freedom Conservancy
33
4-
Licensed under the Apache License, Version 2.0 (the "License");
5-
you may not use this file except in compliance with the License.
6-
You may obtain a copy of the License at
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
77
8-
http://www.apache.org/licenses/LICENSE-2.0
8+
http://www.apache.org/licenses/LICENSE-2.0
99
10-
Unless required by applicable law or agreed to in writing, software
11-
distributed under the License is distributed on an "AS IS" BASIS,
12-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
See the License for the specific language governing permissions and
14-
limitations under the License.
15-
*/
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
1616

1717
package org.openqa.selenium.remote.server.xdrpc;
1818

@@ -23,11 +23,10 @@
2323
* A cross-domain RPC that specifies a command to execute in the WebDriver
2424
* wire protocol.
2525
*
26-
* @see <a href="http://code.google.com/p/selenium/wiki/JsonWireProtocol">
26+
* @see <a href="https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#error-handling">
2727
* WebDriver Wire Protocol</a>
2828
*/
2929
public class CrossDomainRpc {
30-
3130
private final String method;
3231
private final String path;
3332
private final String data;

Diff for: java/server/test/org/openqa/grid/e2e/misc/Issue1586.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
Copyright 2011 Selenium committers
3-
Copyright 2011 Software Freedom Conservancy
3+
Copyright 2015 Software Freedom Conservancy
44
55
Licensed under the Apache License, Version 2.0 (the "License");
66
you may not use this file except in compliance with the License.
@@ -59,7 +59,7 @@ public void test() throws MalformedURLException {
5959
try {
6060
driver = new RemoteWebDriver(new URL(hub.getUrl() + "/grid/driver"), GridTestHelper.getDefaultBrowserCapability());
6161
for (int i = 0; i < 20; i++) {
62-
driver.get("http://code.google.com/p/selenium/");
62+
driver.get("https://github.com/SeleniumHQ/selenium");
6363
WebElement keywordInput = driver.findElement(By.name("q"));
6464
keywordInput.clear();
6565
keywordInput.sendKeys("test");

0 commit comments

Comments
 (0)