mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Fix description of test file to be tests.groovy
Corrected the documentation to refer to file as tests.groovy, rather than test.groovy. Updated cope snippet as tests.groovy should expect "Hello World!" rather than "Hello World". Closes gh-1593
This commit is contained in:
parent
468db03aef
commit
a8af254765
@ -220,7 +220,7 @@ In this example, `tests.groovy` contains JUnit `@Test` methods or Spock `Specifi
|
||||
classes. All the common framework annotations and static methods should be available to
|
||||
you without having to `import` them.
|
||||
|
||||
Here is the `test.groovy` file that we used above (with a JUnit test):
|
||||
Here is the `tests.groovy` file that we used above (with a JUnit test):
|
||||
|
||||
[source,groovy,indent=0]
|
||||
----
|
||||
@ -228,7 +228,7 @@ Here is the `test.groovy` file that we used above (with a JUnit test):
|
||||
|
||||
@Test
|
||||
void homeSaysHello() {
|
||||
assertEquals("Hello World", new WebApplication().home())
|
||||
assertEquals("Hello World!", new WebApplication().home())
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user