Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
d7ae8caf
Commit
d7ae8caf
authored
Nov 05, 2013
by
Phillip Webb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move tests from 'samples' to 'test-samples'
parent
065220c0
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
9 additions
and
9 deletions
+9
-9
TestCommandIntegrationTests.java
...springframework/boot/cli/TestCommandIntegrationTests.java
+9
-9
book.groovy
spring-boot-cli/test-samples/book.groovy
+0
-0
book_and_tests.groovy
spring-boot-cli/test-samples/book_and_tests.groovy
+0
-0
empty.groovy
spring-boot-cli/test-samples/empty.groovy
+0
-0
failures.groovy
spring-boot-cli/test-samples/failures.groovy
+0
-0
spock.groovy
spring-boot-cli/test-samples/spock.groovy
+0
-0
test.groovy
spring-boot-cli/test-samples/test.groovy
+0
-0
No files found.
spring-boot-cli/src/test/java/org/springframework/boot/cli/TestCommandIntegrationTests.java
View file @
d7ae8caf
...
...
@@ -54,7 +54,7 @@ public class TestCommandIntegrationTests {
@Test
public
void
noTests
()
throws
Throwable
{
TestCommand
command
=
new
TestCommand
();
command
.
run
(
"samples/book.groovy"
);
command
.
run
(
"
test-
samples/book.groovy"
);
TestResults
results
=
command
.
getResults
();
assertEquals
(
0
,
results
.
getRunCount
());
assertEquals
(
0
,
results
.
getFailureCount
());
...
...
@@ -64,7 +64,7 @@ public class TestCommandIntegrationTests {
@Test
public
void
empty
()
throws
Exception
{
TestCommand
command
=
new
TestCommand
();
command
.
run
(
"samples/empty.groovy"
);
command
.
run
(
"
test-
samples/empty.groovy"
);
TestResults
results
=
command
.
getResults
();
assertEquals
(
0
,
results
.
getRunCount
());
assertEquals
(
0
,
results
.
getFailureCount
());
...
...
@@ -75,10 +75,10 @@ public class TestCommandIntegrationTests {
public
void
noFile
()
throws
Exception
{
try
{
TestCommand
command
=
new
TestCommand
();
command
.
run
(
"samples/nothing.groovy"
);
command
.
run
(
"
test-
samples/nothing.groovy"
);
}
catch
(
RuntimeException
ex
)
{
assertEquals
(
"Can't find samples/nothing.groovy"
,
ex
.
getMessage
());
assertEquals
(
"Can't find
test-
samples/nothing.groovy"
,
ex
.
getMessage
());
throw
ex
;
}
}
...
...
@@ -86,7 +86,7 @@ public class TestCommandIntegrationTests {
@Test
public
void
appAndTestsInOneFile
()
throws
Exception
{
TestCommand
command
=
new
TestCommand
();
command
.
run
(
"samples/book_and_tests.groovy"
);
command
.
run
(
"
test-
samples/book_and_tests.groovy"
);
TestResults
results
=
command
.
getResults
();
assertEquals
(
1
,
results
.
getRunCount
());
assertEquals
(
0
,
results
.
getFailureCount
());
...
...
@@ -96,7 +96,7 @@ public class TestCommandIntegrationTests {
@Test
public
void
appInOneFileTestsInAnotherFile
()
throws
Exception
{
TestCommand
command
=
new
TestCommand
();
command
.
run
(
"
samples/book.groovy"
,
"
samples/test.groovy"
);
command
.
run
(
"
test-samples/book.groovy"
,
"test-
samples/test.groovy"
);
TestResults
results
=
command
.
getResults
();
assertEquals
(
1
,
results
.
getRunCount
());
assertEquals
(
0
,
results
.
getFailureCount
());
...
...
@@ -106,7 +106,7 @@ public class TestCommandIntegrationTests {
@Test
public
void
spockTester
()
throws
Exception
{
TestCommand
command
=
new
TestCommand
();
command
.
run
(
"samples/spock.groovy"
);
command
.
run
(
"
test-
samples/spock.groovy"
);
TestResults
results
=
command
.
getResults
();
assertEquals
(
1
,
results
.
getRunCount
());
assertEquals
(
0
,
results
.
getFailureCount
());
...
...
@@ -116,7 +116,7 @@ public class TestCommandIntegrationTests {
@Test
public
void
spockAndJunitTester
()
throws
Exception
{
TestCommand
command
=
new
TestCommand
();
command
.
run
(
"
samples/spock.groovy"
,
"
samples/book_and_tests.groovy"
);
command
.
run
(
"
test-samples/spock.groovy"
,
"test-
samples/book_and_tests.groovy"
);
TestResults
results
=
command
.
getResults
();
assertEquals
(
2
,
results
.
getRunCount
());
assertEquals
(
0
,
results
.
getFailureCount
());
...
...
@@ -126,7 +126,7 @@ public class TestCommandIntegrationTests {
@Test
public
void
verifyFailures
()
throws
Exception
{
TestCommand
command
=
new
TestCommand
();
command
.
run
(
"samples/failures.groovy"
);
command
.
run
(
"
test-
samples/failures.groovy"
);
TestResults
results
=
command
.
getResults
();
assertEquals
(
5
,
results
.
getRunCount
());
assertEquals
(
3
,
results
.
getFailureCount
());
...
...
spring-boot-cli/samples/book.groovy
→
spring-boot-cli/
test-
samples/book.groovy
View file @
d7ae8caf
File moved
spring-boot-cli/samples/book_and_tests.groovy
→
spring-boot-cli/
test-
samples/book_and_tests.groovy
View file @
d7ae8caf
File moved
spring-boot-cli/samples/empty.groovy
→
spring-boot-cli/
test-
samples/empty.groovy
View file @
d7ae8caf
File moved
spring-boot-cli/samples/failures.groovy
→
spring-boot-cli/
test-
samples/failures.groovy
View file @
d7ae8caf
File moved
spring-boot-cli/samples/spock.groovy
→
spring-boot-cli/
test-
samples/spock.groovy
View file @
d7ae8caf
File moved
spring-boot-cli/samples/test.groovy
→
spring-boot-cli/
test-
samples/test.groovy
View file @
d7ae8caf
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment