Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
darxriggs committed Feb 14, 2019
1 parent 90f747d commit a68b44e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/jvnet/hudson/test/CreateFileBuilder.java
Expand Up @@ -86,7 +86,7 @@ public static final class DescriptorImpl extends Descriptor<Builder> {

@Override
public Builder newInstance(StaplerRequest req, JSONObject data) {
throw new UnsupportedOperationException("This is a temporarytest class, "
throw new UnsupportedOperationException("This is a temporary test class, "
+ "which should not be configured from UI");
}

Expand Down
8 changes: 4 additions & 4 deletions src/main/java/org/jvnet/hudson/test/HudsonTestCase.java
Expand Up @@ -680,15 +680,15 @@ public ComputerLauncher createComputerLauncher(EnvVars env) throws URISyntaxExce
}

/**
* Create a new slave on the local host and wait for it to come onilne
* Create a new slave on the local host and wait for it to come online
* before returning.
*/
public DumbSlave createOnlineSlave() throws Exception {
return createOnlineSlave(null);
}

/**
* Create a new slave on the local host and wait for it to come onilne
* Create a new slave on the local host and wait for it to come online
* before returning.
*/
public DumbSlave createOnlineSlave(Label l) throws Exception {
Expand Down Expand Up @@ -1024,7 +1024,7 @@ public HtmlPage submit(HtmlForm form) throws Exception {
}

/**
* Submits the form by clikcing the submit button of the given name.
* Submits the form by clicking the submit button of the given name.
*
* @param name
* This corresponds to the @name of {@code <f:submit />}
Expand Down Expand Up @@ -1444,7 +1444,7 @@ public void contextReleased(Context cx) {

setAlertHandler(new AlertHandler() {
public void handleAlert(Page page, String message) {
throw new AssertionError("Alert dialog poped up: "+message);
throw new AssertionError("Alert dialog popped up: "+message);
}
});

Expand Down
9 changes: 4 additions & 5 deletions src/main/java/org/jvnet/hudson/test/JenkinsRule.java
Expand Up @@ -1204,7 +1204,7 @@ public <R extends Run> R assertBuildStatus(Result status, Future<? extends R> r)
return assertBuildStatus(status, r.get());
}

/** Determines whether the specifed HTTP status code is generally "good" */
/** Determines whether the specified HTTP status code is generally "good" */
public boolean isGoodHttpStatus(int status) {
if ((400 <= status) && (status <= 417)) {
return false;
Expand All @@ -1215,7 +1215,7 @@ public boolean isGoodHttpStatus(int status) {
return true;
}

/** Assert that the specifed page can be served with a "good" HTTP status,
/** Assert that the specified page can be served with a "good" HTTP status,
* eg, the page is not missing and can be served without a server error
* @param page
*/
Expand Down Expand Up @@ -1440,7 +1440,7 @@ public HtmlPage submit(HtmlForm form) throws Exception {
}

/**
* Submits the form by clikcing the submit button of the given name.
* Submits the form by clicking the submit button of the given name.
*
* @param name
* This corresponds to the @name of {@code <f:submit />}
Expand Down Expand Up @@ -2565,8 +2565,7 @@ public Dim interactiveJavaScriptDebugger() {
// prototype.js calls this method all the time, so ignore this warning.
XML_HTTP_REQUEST_LOGGER.setFilter(new Filter() {
public boolean isLoggable(LogRecord record) {
return !record.getMessage().contains("XMLHttpRequest.getResponseHeader() was called before the respon"
+ "se was available.");
return !record.getMessage().contains("XMLHttpRequest.getResponseHeader() was called before the response was available.");
}
});
// JENKINS-14749: prototype.js intentionally swallows this exception (thrown on Firefox which we simulate), but HtmlUnit still tries to log it.
Expand Down
Expand Up @@ -54,7 +54,7 @@
* For now, this has to be one or more of the plugins statically available in resources
* "/plugins/NAME". TODO: support retrieval through Maven repository.
* TODO: load the HPI file from $M2_REPO or $USER_HOME/.m2 by naming e.g. org.jvnet.hudson.plugins:monitoring:hpi:1.34.0
* (used in conjunction with the depepdency in POM to ensure it's available)
* (used in conjunction with the dependency in POM to ensure it's available)
*/
String[] value();

Expand Down

0 comments on commit a68b44e

Please sign in to comment.