mirror of https://github.com/apache/jclouds.git
Correct spelling errors
This commit is contained in:
parent
db086697aa
commit
736554d049
|
@ -858,7 +858,7 @@ public class FilesystemAsyncBlobStoreTest {
|
||||||
|
|
||||||
// nothing expected
|
// nothing expected
|
||||||
if (null == expectedBlobKeys || 0 == expectedBlobKeys.size()) {
|
if (null == expectedBlobKeys || 0 == expectedBlobKeys.size()) {
|
||||||
assertTrue(blobsRetrieved.isEmpty(), "Wrong blob number retrieved in the containter [" + containerName + "]");
|
assertTrue(blobsRetrieved.isEmpty(), "Wrong blob number retrieved in the container [" + containerName + "]");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -868,7 +868,7 @@ public class FilesystemAsyncBlobStoreTest {
|
||||||
expectedBlobKeysCopy.add(value);
|
expectedBlobKeysCopy.add(value);
|
||||||
}
|
}
|
||||||
assertEquals(blobsRetrieved.size(), expectedBlobKeysCopy.size(),
|
assertEquals(blobsRetrieved.size(), expectedBlobKeysCopy.size(),
|
||||||
"Wrong blob number retrieved in the containter [" + containerName + "]");
|
"Wrong blob number retrieved in the container [" + containerName + "]");
|
||||||
for (StorageMetadata data : blobsRetrieved) {
|
for (StorageMetadata data : blobsRetrieved) {
|
||||||
String blobName = data.getName();
|
String blobName = data.getName();
|
||||||
if (!expectedBlobKeysCopy.remove(blobName)) {
|
if (!expectedBlobKeysCopy.remove(blobName)) {
|
||||||
|
|
|
@ -204,7 +204,7 @@ public class ParallelMultipartUploadStrategy implements AsyncMultipartUploadStra
|
||||||
|
|
||||||
String eTag = client.putObjectManifest(container, key);
|
String eTag = client.putObjectManifest(container, key);
|
||||||
logger.debug(String.format("multipart upload of %s to container %s" +
|
logger.debug(String.format("multipart upload of %s to container %s" +
|
||||||
" succeffully finished with %s retries", key, container, errors.get()));
|
" successfully finished with %s retries", key, container, errors.get()));
|
||||||
return eTag;
|
return eTag;
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
RuntimeException rtex = Throwables2.getFirstThrowableOfType(ex, RuntimeException.class);
|
RuntimeException rtex = Throwables2.getFirstThrowableOfType(ex, RuntimeException.class);
|
||||||
|
|
|
@ -60,7 +60,7 @@ public abstract class BasePayload<V> implements Payload {
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void writeTo(OutputStream outstream) throws IOException {
|
public void writeTo(OutputStream outstream) throws IOException {
|
||||||
checkState(!written || isRepeatable(), "can only be writted to an outputstream once");
|
checkState(!written || isRepeatable(), "can only write to an outputStream once");
|
||||||
written = true;
|
written = true;
|
||||||
InputStream in = getInput();
|
InputStream in = getInput();
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -43,7 +43,7 @@ public class ApisTest {
|
||||||
ApiMetadata apiMetadata;
|
ApiMetadata apiMetadata;
|
||||||
try {
|
try {
|
||||||
apiMetadata = Apis.withId("fake-id");
|
apiMetadata = Apis.withId("fake-id");
|
||||||
fail("Looking for a api with an id that doesn't exist should " + "throw an exceptoin.");
|
fail("Looking for a api with an id that doesn't exist should " + "throw an exception.");
|
||||||
} catch (NoSuchElementException nsee) {
|
} catch (NoSuchElementException nsee) {
|
||||||
; // Expected
|
; // Expected
|
||||||
}
|
}
|
||||||
|
|
|
@ -49,7 +49,7 @@ public class ProvidersTest {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
providerMetadata = Providers.withId("fake-id");
|
providerMetadata = Providers.withId("fake-id");
|
||||||
fail("Looking for a provider with an id that doesn't exist should " + "throw an exceptoin.");
|
fail("Looking for a provider with an id that doesn't exist should " + "throw an exception.");
|
||||||
} catch (NoSuchElementException nsee) {
|
} catch (NoSuchElementException nsee) {
|
||||||
; // Expected
|
; // Expected
|
||||||
}
|
}
|
||||||
|
|
|
@ -96,7 +96,7 @@ public class AsyncGaeHttpCommandExecutorService implements HttpCommandExecutorSe
|
||||||
request = filter.filter(request);
|
request = filter.filter(request);
|
||||||
}
|
}
|
||||||
checkRequestHasContentLengthOrChunkedEncoding(request,
|
checkRequestHasContentLengthOrChunkedEncoding(request,
|
||||||
"After filtering, the request has niether chunked encoding nor content length: " + request);
|
"After filtering, the request has neither chunked encoding nor content length: " + request);
|
||||||
logger.debug("Sending request %s: %s", request.hashCode(), request.getRequestLine());
|
logger.debug("Sending request %s: %s", request.hashCode(), request.getRequestLine());
|
||||||
wirePayloadIfEnabled(wire, request);
|
wirePayloadIfEnabled(wire, request);
|
||||||
HTTPRequest nativeRequest = convertToGaeRequest.apply(request);
|
HTTPRequest nativeRequest = convertToGaeRequest.apply(request);
|
||||||
|
|
|
@ -408,7 +408,7 @@ public class AdminOrgClientLiveTest extends BaseVCloudDirectorClientLiveTest {
|
||||||
orgRef.getHref(), restorableSettings);
|
orgRef.getHref(), restorableSettings);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
if (exception != null) {
|
if (exception != null) {
|
||||||
logger.warn(e, "Error reseting settings; rethrowing origina test exception...");
|
logger.warn(e, "Error resetting settings; rethrowing original test exception...");
|
||||||
throw exception;
|
throw exception;
|
||||||
} else {
|
} else {
|
||||||
throw e;
|
throw e;
|
||||||
|
|
|
@ -225,7 +225,7 @@ public class ParallelMultipartUploadStrategy implements AsyncMultipartUploadStra
|
||||||
}
|
}
|
||||||
String eTag = client.completeMultipartUpload(container, key, uploadId, etags);
|
String eTag = client.completeMultipartUpload(container, key, uploadId, etags);
|
||||||
logger.debug(String.format("multipart upload of %s to container %s with uploadId %s" +
|
logger.debug(String.format("multipart upload of %s to container %s with uploadId %s" +
|
||||||
" succeffully finished with %s retries", key, container, uploadId, errors.get()));
|
" successfully finished with %s retries", key, container, uploadId, errors.get()));
|
||||||
return eTag;
|
return eTag;
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
RuntimeException rtex = Throwables2.getFirstThrowableOfType(ex, RuntimeException.class);
|
RuntimeException rtex = Throwables2.getFirstThrowableOfType(ex, RuntimeException.class);
|
||||||
|
|
|
@ -211,7 +211,7 @@ public class GoGridLiveTestDisabled extends BaseComputeServiceContextLiveTest {
|
||||||
|
|
||||||
Job latestJobFetched = Iterables.getOnlyElement(client.getJobServices().getJobsById(latestJobId));
|
Job latestJobFetched = Iterables.getOnlyElement(client.getJobServices().getJobsById(latestJobId));
|
||||||
|
|
||||||
assert latestJob.equals(latestJobFetched) : "Job and its reprentation found by ID don't match";
|
assert latestJob.equals(latestJobFetched) : "Job and its representation found by ID don't match";
|
||||||
|
|
||||||
long[] idsOfAllJobs = new long[jobs.size()];
|
long[] idsOfAllJobs = new long[jobs.size()];
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
|
|
@ -107,7 +107,7 @@ public class NewServerData implements PostData {
|
||||||
* stops them all fitting in 'neatly' (that's not a problem on the bigger-, non-low
|
* stops them all fitting in 'neatly' (that's not a problem on the bigger-, non-low
|
||||||
* contention-plans.
|
* contention-plans.
|
||||||
*/
|
*/
|
||||||
@SerializedName("vps_paramters")
|
@SerializedName("vps_parameters")
|
||||||
private ServerParameters serverParameters;
|
private ServerParameters serverParameters;
|
||||||
|
|
||||||
@SerializedName("meta_data")
|
@SerializedName("meta_data")
|
||||||
|
|
|
@ -27,10 +27,10 @@ public class FunctionNotFoundException extends RuntimeException {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
public FunctionNotFoundException(String functionName, OsFamily family) {
|
public FunctionNotFoundException(String functionName, OsFamily family) {
|
||||||
super("function: " + functionName + " not found for famiy: " + family);
|
super("function: " + functionName + " not found for family: " + family);
|
||||||
}
|
}
|
||||||
|
|
||||||
public FunctionNotFoundException(String functionName, OsFamily family, Throwable cause) {
|
public FunctionNotFoundException(String functionName, OsFamily family, Throwable cause) {
|
||||||
super("function: " + functionName + " not found for famiy: " + family, cause);
|
super("function: " + functionName + " not found for family: " + family, cause);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue