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
bfb843e1
Commit
bfb843e1
authored
Aug 05, 2013
by
Dave Syer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add logging initializer to tests
parent
6bb628ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
AbstractIntegrationTests.java
...mework/boot/sample/data/jpa/AbstractIntegrationTests.java
+5
-2
No files found.
spring-boot-samples/spring-boot-sample-data-jpa/src/test/java/org/springframework/boot/sample/data/jpa/AbstractIntegrationTests.java
View file @
bfb843e1
...
@@ -18,19 +18,22 @@ package org.springframework.boot.sample.data.jpa;
...
@@ -18,19 +18,22 @@ package org.springframework.boot.sample.data.jpa;
import
org.junit.runner.RunWith
;
import
org.junit.runner.RunWith
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.context.initializer.ConfigFileApplicationContextInitializer
;
import
org.springframework.boot.context.initializer.ConfigFileApplicationContextInitializer
;
import
org.springframework.boot.context.initializer.LoggingApplicationContextInitializer
;
import
org.springframework.test.context.ContextConfiguration
;
import
org.springframework.test.context.ContextConfiguration
;
import
org.springframework.test.context.junit4.SpringJUnit4ClassRunner
;
import
org.springframework.test.context.junit4.SpringJUnit4ClassRunner
;
import
org.springframework.test.context.web.WebAppConfiguration
;
import
org.springframework.test.context.web.WebAppConfiguration
;
/**
/**
* Base class for integration tests. Mimics the behavior of
* Base class for integration tests. Mimics the behavio
u
r of
* {@link SpringApplication#run(String...)}.
* {@link SpringApplication#run(String...)}.
*
*
* @author Oliver Gierke
* @author Oliver Gierke
*/
*/
@RunWith
(
SpringJUnit4ClassRunner
.
class
)
@RunWith
(
SpringJUnit4ClassRunner
.
class
)
@WebAppConfiguration
@WebAppConfiguration
@ContextConfiguration
(
classes
=
SampleDataJpaApplication
.
class
,
initializers
=
ConfigFileApplicationContextInitializer
.
class
)
@ContextConfiguration
(
classes
=
SampleDataJpaApplication
.
class
,
initializers
=
{
ConfigFileApplicationContextInitializer
.
class
,
LoggingApplicationContextInitializer
.
class
})
public
abstract
class
AbstractIntegrationTests
{
public
abstract
class
AbstractIntegrationTests
{
}
}
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