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
3242e892
Commit
3242e892
authored
Mar 04, 2019
by
Johnny Lim
Committed by
Stephane Nicoll
Mar 04, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
See gh-16083
parent
48c83b04
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
13 deletions
+1
-13
DataNeo4jTestIntegrationTests.java
...toconfigure/data/neo4j/DataNeo4jTestIntegrationTests.java
+1
-13
No files found.
spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/data/neo4j/DataNeo4jTestIntegrationTests.java
View file @
3242e892
...
@@ -18,10 +18,7 @@ package org.springframework.boot.test.autoconfigure.data.neo4j;
...
@@ -18,10 +18,7 @@ package org.springframework.boot.test.autoconfigure.data.neo4j;
import
org.junit.ClassRule
;
import
org.junit.ClassRule
;
import
org.junit.Test
;
import
org.junit.Test
;
import
org.junit.rules.TestRule
;
import
org.junit.runner.Description
;
import
org.junit.runner.RunWith
;
import
org.junit.runner.RunWith
;
import
org.junit.runners.model.Statement
;
import
org.neo4j.ogm.session.Session
;
import
org.neo4j.ogm.session.Session
;
import
org.testcontainers.containers.Neo4jContainer
;
import
org.testcontainers.containers.Neo4jContainer
;
...
@@ -50,19 +47,10 @@ import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
...
@@ -50,19 +47,10 @@ import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
@DataNeo4jTest
@DataNeo4jTest
public
class
DataNeo4jTestIntegrationTests
{
public
class
DataNeo4jTestIntegrationTests
{
@ClassRule
public
static
SkippableContainer
<
Neo4jContainer
<?>>
neo4j
=
new
SkippableContainer
<
Neo4jContainer
<?>>(
public
static
SkippableContainer
<
Neo4jContainer
<?>>
neo4j
=
new
SkippableContainer
<
Neo4jContainer
<?>>(
()
->
new
Neo4jContainer
<>().
withAdminPassword
(
null
));
()
->
new
Neo4jContainer
<>().
withAdminPassword
(
null
));
@ClassRule
public
static
TestRule
skippableContainer
=
new
TestRule
()
{
@Override
public
Statement
apply
(
Statement
base
,
Description
description
)
{
return
neo4j
.
apply
(
base
,
description
);
}
};
@Autowired
@Autowired
private
Session
session
;
private
Session
session
;
...
...
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