Skip to content

Commit f6b59fb

Browse files
committed
Merge pull request #4476 from izeye/typo-20151114
* pr/4476: Polish
2 parents 6a05927 + 1e4f8fd commit f6b59fb

File tree

8 files changed

+21
-21
lines changed

8 files changed

+21
-21
lines changed

spring-boot-cli/src/test/java/org/springframework/boot/cli/TestCommandIntegrationTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ public class TestCommandIntegrationTests {
4242
public CliTester cli = new CliTester("test-samples/");
4343

4444
@Before
45-
public void setup() throws Exception {
45+
public void setUp() throws Exception {
4646
System.setProperty("disableSpringSnapshotRepos", "false");
4747
}
4848

4949
@After
50-
public void teardown() {
50+
public void tearDown() {
5151
System.clearProperty("disableSpringSnapshotRepos");
5252
}
5353

spring-boot-devtools/src/test/java/org/springframework/boot/devtools/livereload/LiveReloadServerTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,13 @@ public class LiveReloadServerTests {
6363
private MonitoredLiveReloadServer server;
6464

6565
@Before
66-
public void setup() throws Exception {
66+
public void setUp() throws Exception {
6767
this.server = new MonitoredLiveReloadServer(this.port);
6868
this.server.start();
6969
}
7070

7171
@After
72-
public void teardown() throws Exception {
72+
public void tearDown() throws Exception {
7373
this.server.stop();
7474
}
7575

spring-boot/src/test/java/org/springframework/boot/context/ConfigurationWarningsApplicationContextInitializerTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public void noLogIfInRealPackage() throws Exception {
6666
}
6767

6868
@Test
69-
public void noLogWithoutComponetScanAnnotation() throws Exception {
69+
public void noLogWithoutComponentScanAnnotation() throws Exception {
7070
load(InDefaultPackageWithoutScanConfiguration.class);
7171
assertThat(this.output.toString(), not(containsString(SCAN_WARNING)));
7272
}

spring-boot/src/test/java/org/springframework/boot/context/embedded/AbstractEmbeddedServletContainerFactoryTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public abstract class AbstractEmbeddedServletContainerFactoryTests {
118118
private final HttpClientContext httpClientContext = HttpClientContext.create();
119119

120120
@After
121-
public void teardown() {
121+
public void tearDown() {
122122
if (this.container != null) {
123123
try {
124124
this.container.stop();
@@ -866,13 +866,13 @@ private class TestGzipInputStreamFactory implements InputStreamFactory {
866866
private final AtomicBoolean requested = new AtomicBoolean(false);
867867

868868
@Override
869-
public InputStream create(InputStream instream) throws IOException {
869+
public InputStream create(InputStream in) throws IOException {
870870
if (this.requested.get()) {
871871
throw new IllegalStateException(
872872
"On deflated InputStream already requested");
873873
}
874874
this.requested.set(true);
875-
return new GZIPInputStream(instream);
875+
return new GZIPInputStream(in);
876876
}
877877

878878
public boolean wasCompressionUsed() {

spring-boot/src/test/java/org/springframework/boot/context/embedded/AbstractFilterRegistrationBeanTests.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ public void startupWithSpecifiedValues() throws Exception {
8787
bean.setServletNames(new LinkedHashSet<String>(Arrays.asList("s1", "s2")));
8888
bean.addServletNames("s3");
8989
bean.setServletRegistrationBeans(
90-
Collections.singleton(mockServletRegistation("s4")));
91-
bean.addServletRegistrationBeans(mockServletRegistation("s5"));
90+
Collections.singleton(mockServletRegistration("s4")));
91+
bean.addServletRegistrationBeans(mockServletRegistration("s5"));
9292
bean.setMatchAfter(true);
9393
bean.onStartup(this.servletContext);
9494
verify(this.servletContext).addFilter(eq("test"), getExpectedFilter());
@@ -148,9 +148,9 @@ public void addServletRegistrationBeanMustNotBeNull() throws Exception {
148148
@Test
149149
public void setServletRegistrationBeanReplacesValue() throws Exception {
150150
AbstractFilterRegistrationBean bean = createFilterRegistrationBean(
151-
mockServletRegistation("a"));
151+
mockServletRegistration("a"));
152152
bean.setServletRegistrationBeans(new LinkedHashSet<ServletRegistrationBean>(
153-
Arrays.asList(mockServletRegistation("b"))));
153+
Arrays.asList(mockServletRegistration("b"))));
154154
bean.onStartup(this.servletContext);
155155
verify(this.registration).addMappingForServletNames(
156156
AbstractFilterRegistrationBean.ASYNC_DISPATCHER_TYPES, false, "b");
@@ -221,7 +221,7 @@ public void withSpecificDispatcherTypesEnumSet() throws Exception {
221221
protected abstract AbstractFilterRegistrationBean createFilterRegistrationBean(
222222
ServletRegistrationBean... servletRegistrationBeans);
223223

224-
protected final ServletRegistrationBean mockServletRegistation(String name) {
224+
protected final ServletRegistrationBean mockServletRegistration(String name) {
225225
ServletRegistrationBean bean = new ServletRegistrationBean();
226226
bean.setName(name);
227227
return bean;

spring-boot/src/test/java/org/springframework/boot/context/embedded/undertow/FileSessionPersistenceTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public void loadsNullForMissingFile() throws Exception {
6565
}
6666

6767
@Test
68-
public void presistAndLoad() throws Exception {
68+
public void persistAndLoad() throws Exception {
6969
Map<String, PersistentSession> sessionData = new LinkedHashMap<String, PersistentSession>();
7070
Map<String, Object> data = new LinkedHashMap<String, Object>();
7171
data.put("spring", "boot");

spring-boot/src/test/java/org/springframework/boot/context/web/ErrorPageFilterTests.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ public void doFilter(ServletRequest request, ServletResponse response)
334334
}
335335

336336
@Test
337-
public void responseIsNotCommitedWhenRequestIsAsync() throws Exception {
337+
public void responseIsNotCommittedWhenRequestIsAsync() throws Exception {
338338
this.request.setAsyncStarted(true);
339339
this.filter.doFilter(this.request, this.response, this.chain);
340340
assertThat(this.chain.getRequest(), equalTo((ServletRequest) this.request));
@@ -344,7 +344,7 @@ public void responseIsNotCommitedWhenRequestIsAsync() throws Exception {
344344
}
345345

346346
@Test
347-
public void responseIsCommitedWhenRequestIsAsyncAndExceptionIsThrown()
347+
public void responseIsCommittedWhenRequestIsAsyncAndExceptionIsThrown()
348348
throws Exception {
349349
this.filter.addErrorPages(new ErrorPage("/error"));
350350
this.request.setAsyncStarted(true);
@@ -364,7 +364,7 @@ public void doFilter(ServletRequest request, ServletResponse response)
364364
}
365365

366366
@Test
367-
public void responseIsCommitedWhenRequestIsAsyncAndStatusIs400Plus()
367+
public void responseIsCommittedWhenRequestIsAsyncAndStatusIs400Plus()
368368
throws Exception {
369369
this.filter.addErrorPages(new ErrorPage("/error"));
370370
this.request.setAsyncStarted(true);
@@ -384,7 +384,7 @@ public void doFilter(ServletRequest request, ServletResponse response)
384384
}
385385

386386
@Test
387-
public void responseIsNotCommitedDuringAsyncDispatch() throws Exception {
387+
public void responseIsNotCommittedDuringAsyncDispatch() throws Exception {
388388
setUpAsyncDispatch();
389389
this.filter.doFilter(this.request, this.response, this.chain);
390390
assertThat(this.chain.getRequest(), equalTo((ServletRequest) this.request));
@@ -394,7 +394,7 @@ public void responseIsNotCommitedDuringAsyncDispatch() throws Exception {
394394
}
395395

396396
@Test
397-
public void responseIsCommitedWhenExceptionIsThrownDuringAsyncDispatch()
397+
public void responseIsCommittedWhenExceptionIsThrownDuringAsyncDispatch()
398398
throws Exception {
399399
this.filter.addErrorPages(new ErrorPage("/error"));
400400
setUpAsyncDispatch();
@@ -414,7 +414,7 @@ public void doFilter(ServletRequest request, ServletResponse response)
414414
}
415415

416416
@Test
417-
public void responseIsCommitedWhenStatusIs400PlusDuringAsyncDispatch()
417+
public void responseIsCommittedWhenStatusIs400PlusDuringAsyncDispatch()
418418
throws Exception {
419419
this.filter.addErrorPages(new ErrorPage("/error"));
420420
setUpAsyncDispatch();

spring-boot/src/test/java/org/springframework/boot/json/AbstractJsonParserTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public void testSimpleMap() {
4343
}
4444

4545
@Test
46-
public void testDoubleValie() {
46+
public void testDoubleValue() {
4747
Map<String, Object> map = this.parser.parseMap("{\"foo\":\"bar\",\"spam\":1.23}");
4848
assertEquals(2, map.size());
4949
assertEquals("bar", map.get("foo"));

0 commit comments

Comments
 (0)