Skip to content

Commit

Permalink
Merge pull request #1906 from scop/spelling
Browse files Browse the repository at this point in the history
Spelling fixes
  • Loading branch information
fehguy committed Sep 7, 2016
2 parents e9f0b1d + a9567b4 commit 7a94cd0
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
Expand Up @@ -13,16 +13,16 @@
public @interface SecurityDefinition {

/**
* OAuth security defintion objects
* OAuth security definition objects
*
* @return OAuth security defintion objects
* @return OAuth security definition objects
*/
OAuth2Definition[] oAuth2Definitions() default {};

/**
* API Key security defintion objects
* API Key security definition objects
*
* @return API Key security defintion objects
* @return API Key security definition objects
*/
ApiKeyAuthDefinition[] apiKeyAuthDefintions() default {};

Expand Down
Expand Up @@ -432,7 +432,7 @@ protected Parameter readImplicitParam(ApiImplicitParam param) {
} else if (param.paramType().equalsIgnoreCase("header")) {
p = new HeaderParameter();
} else {
LOGGER.warn("Unkown implicit parameter type: [" + param.paramType() + "]");
LOGGER.warn("Unknown implicit parameter type: [" + param.paramType() + "]");
return null;
}
final Type type = ReflectionUtils.typeFromString(param.dataType());
Expand Down
Expand Up @@ -231,7 +231,7 @@ public void scanParametersFromBaseResource(){
Parameter description = parameters.get(0);
assertTrue(description instanceof PathParameter);
assertEquals(description.getName(), "description");
assertEquals(description.getDescription(), "Overriden description");
assertEquals(description.getDescription(), "Overridden description");

Parameter id = parameters.get(1);
assertTrue(id instanceof PathParameter);
Expand Down
Expand Up @@ -15,9 +15,9 @@
@Path("/{id}/v1/books/")
public class BookResource extends BaseResource {

@ApiParam("Overriden description")
@ApiParam("Overridden description")
@PathParam("description")
private String description = "Overriden";
private String description = "Overridden";

@Override
public String getDescription() {
Expand Down
Expand Up @@ -249,7 +249,7 @@ public static <T> void testCommonMethods(Class<T> clazz, Set<String> exclusions)
Object actual = Whitebox.invokeMethod(instance, getterMethodName);
Whitebox.invokeMethod(instance, method.getName(), parametersArray);
res = Whitebox.invokeMethod(instance, getterMethodName);
assertEquals(actual, res, "the value must not change when passing an unkown value to " + method);
assertEquals(actual, res, "the value must not change when passing an unknown value to " + method);
}
}
}
Expand Down
Expand Up @@ -180,7 +180,7 @@ public void testSetSummary() {
operation.setSummary("summary");

// then
assertEquals(operation.getSummary(), "summary", "The get sumary must equals the set one");
assertEquals(operation.getSummary(), "summary", "The get summary must equal the set one");
}

@Test
Expand Down
Expand Up @@ -235,7 +235,7 @@ public void testSecurityDefinition() {

// then
assertEquals(swagger.getSecurityDefinitions().get(name), securityDefinition,
"Must be able to retrieve the added security definiton");
"Must be able to retrieve the added security definition");
}

@Test
Expand Down

0 comments on commit 7a94cd0

Please sign in to comment.