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
2cacc19c
Commit
2cacc19c
authored
May 09, 2016
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
See gh-5901
parent
a4ba8f61
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
20 deletions
+1
-20
IntegrationAutoConfigurationTests.java
...figure/integration/IntegrationAutoConfigurationTests.java
+1
-20
No files found.
spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/integration/IntegrationAutoConfigurationTests.java
View file @
2cacc19c
...
@@ -30,7 +30,6 @@ import org.springframework.context.annotation.AnnotationConfigApplicationContext
...
@@ -30,7 +30,6 @@ import org.springframework.context.annotation.AnnotationConfigApplicationContext
import
org.springframework.integration.support.channel.HeaderChannelRegistry
;
import
org.springframework.integration.support.channel.HeaderChannelRegistry
;
import
org.springframework.test.context.support.TestPropertySourceUtils
;
import
org.springframework.test.context.support.TestPropertySourceUtils
;
import
static
org
.
hamcrest
.
Matchers
.
hasSize
;
import
static
org
.
junit
.
Assert
.
assertEquals
;
import
static
org
.
junit
.
Assert
.
assertEquals
;
import
static
org
.
junit
.
Assert
.
assertNotNull
;
import
static
org
.
junit
.
Assert
.
assertNotNull
;
...
@@ -57,27 +56,9 @@ public class IntegrationAutoConfigurationTests {
...
@@ -57,27 +56,9 @@ public class IntegrationAutoConfigurationTests {
@Test
@Test
public
void
integrationIsAvailable
()
{
public
void
integrationIsAvailable
()
{
load
();
load
();
MBeanServer
mBeanServer
=
this
.
context
.
getBean
(
MBeanServer
.
class
);
assertDomains
(
mBeanServer
,
true
,
"org.springframework.integration"
,
"org.springframework.integration.monitor"
);
assertNotNull
(
this
.
context
.
getBean
(
HeaderChannelRegistry
.
class
));
assertNotNull
(
this
.
context
.
getBean
(
HeaderChannelRegistry
.
class
));
}
}
@Test
public
void
disableIntegration
()
{
load
(
"spring.jmx.enabled=false"
);
assertEquals
(
0
,
this
.
context
.
getBeansOfType
(
MBeanServer
.
class
).
size
());
}
@Test
public
void
customizeDomain
()
{
load
(
"spring.jmx.default-domain=org.foo"
);
MBeanServer
mBeanServer
=
this
.
context
.
getBean
(
MBeanServer
.
class
);
assertDomains
(
mBeanServer
,
true
,
"org.foo"
);
assertDomains
(
mBeanServer
,
false
,
"org.springframework.integration"
,
"org.springframework.integration.monitor"
);
}
@Test
@Test
public
void
parentContext
()
{
public
void
parentContext
()
{
this
.
context
=
new
AnnotationConfigApplicationContext
();
this
.
context
=
new
AnnotationConfigApplicationContext
();
...
@@ -106,7 +87,7 @@ public class IntegrationAutoConfigurationTests {
...
@@ -106,7 +87,7 @@ public class IntegrationAutoConfigurationTests {
@Test
@Test
public
void
disableJmxIntegration
()
{
public
void
disableJmxIntegration
()
{
load
(
"spring.jmx.enabled=false"
);
load
(
"spring.jmx.enabled=false"
);
assertEquals
(
this
.
context
.
getBeansOfType
(
MBeanServer
.
class
),
hasSize
(
0
));
assertEquals
(
0
,
this
.
context
.
getBeansOfType
(
MBeanServer
.
class
).
size
(
));
}
}
@Test
@Test
...
...
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