Fix typos
See gh-2019
This commit is contained in:
@@ -533,25 +533,25 @@ public class MockHttpServletRequestTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void httpHeaderRfcFormatedDate() {
|
||||
public void httpHeaderRfcFormattedDate() {
|
||||
request.addHeader(HttpHeaders.IF_MODIFIED_SINCE, "Tue, 21 Jul 2015 10:00:00 GMT");
|
||||
assertEquals(1437472800000L, request.getDateHeader(HttpHeaders.IF_MODIFIED_SINCE));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void httpHeaderFirstVariantFormatedDate() {
|
||||
public void httpHeaderFirstVariantFormattedDate() {
|
||||
request.addHeader(HttpHeaders.IF_MODIFIED_SINCE, "Tue, 21-Jul-15 10:00:00 GMT");
|
||||
assertEquals(1437472800000L, request.getDateHeader(HttpHeaders.IF_MODIFIED_SINCE));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void httpHeaderSecondVariantFormatedDate() {
|
||||
public void httpHeaderSecondVariantFormattedDate() {
|
||||
request.addHeader(HttpHeaders.IF_MODIFIED_SINCE, "Tue Jul 21 10:00:00 2015");
|
||||
assertEquals(1437472800000L, request.getDateHeader(HttpHeaders.IF_MODIFIED_SINCE));
|
||||
}
|
||||
|
||||
@Test(expected = IllegalArgumentException.class)
|
||||
public void httpHeaderFormatedDateError() {
|
||||
public void httpHeaderFormattedDateError() {
|
||||
request.addHeader(HttpHeaders.IF_MODIFIED_SINCE, "This is not a date");
|
||||
request.getDateHeader(HttpHeaders.IF_MODIFIED_SINCE);
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class ProfileValueUtilsTests {
|
||||
}
|
||||
|
||||
private void assertClassIsDisabled(Class<?> testClass) throws Exception {
|
||||
assertFalse("Test class [" + testClass + "] should be disbled.",
|
||||
assertFalse("Test class [" + testClass + "] should be disabled.",
|
||||
ProfileValueUtils.isTestEnabledInThisEnvironment(testClass));
|
||||
}
|
||||
|
||||
|
||||
@@ -88,7 +88,7 @@ public class MethodLevelDirtiesContextTests {
|
||||
@Test
|
||||
@DirtiesContext
|
||||
// test## prefix required for @FixMethodOrder.
|
||||
public void test03_dirtyContextAferTestMethod() throws Exception {
|
||||
public void test03_dirtyContextAfterTestMethod() throws Exception {
|
||||
performAssertions(2);
|
||||
}
|
||||
|
||||
|
||||
@@ -355,7 +355,7 @@ public class ActiveProfilesUtilsTests extends AbstractContextConfigurationUtilsT
|
||||
private static class NoDefaultConstructorActiveProfilesResolver implements ActiveProfilesResolver {
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
NoDefaultConstructorActiveProfilesResolver(Object agument) {
|
||||
NoDefaultConstructorActiveProfilesResolver(Object argument) {
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -79,7 +79,7 @@ public class HeaderAssertionTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void valueEqualsWithMultipeValues() {
|
||||
public void valueEqualsWithMultipleValues() {
|
||||
HttpHeaders headers = new HttpHeaders();
|
||||
headers.add("foo", "bar");
|
||||
headers.add("foo", "baz");
|
||||
|
||||
Reference in New Issue
Block a user