Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
dk131072
spring-framework
提交
45c6eb1d
S
spring-framework
项目概览
dk131072
/
spring-framework
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
spring-framework
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
45c6eb1d
编写于
3月 28, 2011
作者:
S
Sam Brannen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[SPR-8089] re-ignoring JMX tests that require the presence of jmxremote_optional.jar.
上级
309fa921
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
38 addition
and
9 deletion
+38
-9
org.springframework.context/src/test/java/org/springframework/jmx/access/MBeanClientInterceptorTests.java
...ringframework/jmx/access/MBeanClientInterceptorTests.java
+4
-2
org.springframework.context/src/test/java/org/springframework/jmx/access/RemoteMBeanClientInterceptorTests.java
...amework/jmx/access/RemoteMBeanClientInterceptorTests.java
+11
-5
org.springframework.context/src/test/java/org/springframework/jmx/support/ConnectorServerFactoryBeanTests.java
...ramework/jmx/support/ConnectorServerFactoryBeanTests.java
+6
-0
org.springframework.context/src/test/java/org/springframework/jmx/support/MBeanServerConnectionFactoryBeanTests.java
...rk/jmx/support/MBeanServerConnectionFactoryBeanTests.java
+17
-2
未找到文件。
org.springframework.context/src/test/java/org/springframework/jmx/access/MBeanClientInterceptorTests.java
浏览文件 @
45c6eb1d
...
...
@@ -186,8 +186,10 @@ public class MBeanClientInterceptorTests extends AbstractMBeanServerTests {
}
}
// @Ignore has no effect for JUnit 3.8 tests; however, we leave it
// here so that developers can easily search for ignored tests.
// @Ignore should have no effect for JUnit 3.8 tests; however, it appears
// that tests on the CI server -- as well as those in Eclipse -- do in
// fact get ignored. So we leave @Ignore here so that developers can
// easily search for ignored tests.
//
// Once fixed, renamed to test* instead of ignore*.
@Ignore
(
"Requires jmxremote_optional.jar; see comments in AbstractMBeanServerTests for details."
)
...
...
org.springframework.context/src/test/java/org/springframework/jmx/access/RemoteMBeanClientInterceptorTests.java
浏览文件 @
45c6eb1d
...
...
@@ -26,9 +26,16 @@ import javax.management.remote.JMXConnectorServer;
import
javax.management.remote.JMXConnectorServerFactory
;
import
javax.management.remote.JMXServiceURL
;
import
org.junit.Ignore
;
/**
* @author Rob Harrop
*/
// @Ignore should have no effect for JUnit 3.8 tests; however, it appears
// that tests on the CI server -- as well as those in Eclipse -- do in
// fact get ignored. So we leave @Ignore here so that developers can
// easily search for ignored tests.
@Ignore
(
"Requires jmxremote_optional.jar; see comments in AbstractMBeanServerTests for details."
)
public
class
RemoteMBeanClientInterceptorTests
extends
MBeanClientInterceptorTests
{
private
static
final
String
SERVICE_URL
=
"service:jmx:jmxmp://localhost:9876"
;
...
...
@@ -42,8 +49,7 @@ public class RemoteMBeanClientInterceptorTests extends MBeanClientInterceptorTes
this
.
connectorServer
=
JMXConnectorServerFactory
.
newJMXConnectorServer
(
getServiceUrl
(),
null
,
getServer
());
try
{
this
.
connectorServer
.
start
();
}
catch
(
BindException
ex
)
{
}
catch
(
BindException
ex
)
{
// skipping tests, server already running at this port
runTests
=
false
;
}
...
...
org.springframework.context/src/test/java/org/springframework/jmx/support/ConnectorServerFactoryBeanTests.java
浏览文件 @
45c6eb1d
...
...
@@ -28,11 +28,17 @@ import javax.management.remote.JMXConnector;
import
javax.management.remote.JMXConnectorFactory
;
import
javax.management.remote.JMXServiceURL
;
import
org.junit.Ignore
;
import
org.springframework.jmx.AbstractMBeanServerTests
;
/**
* @author Rob Harrop
*/
// @Ignore should have no effect for JUnit 3.8 tests; however, it appears
// that tests on the CI server -- as well as those in Eclipse -- do in
// fact get ignored. So we leave @Ignore here so that developers can
// easily search for ignored tests.
@Ignore
(
"Requires jmxremote_optional.jar; see comments in AbstractMBeanServerTests for details."
)
public
class
ConnectorServerFactoryBeanTests
extends
AbstractMBeanServerTests
{
private
static
final
String
OBJECT_NAME
=
"spring:type=connector,name=test"
;
...
...
org.springframework.context/src/test/java/org/springframework/jmx/support/MBeanServerConnectionFactoryBeanTests.java
浏览文件 @
45c6eb1d
...
...
@@ -23,6 +23,7 @@ import javax.management.remote.JMXConnectorServer;
import
javax.management.remote.JMXConnectorServerFactory
;
import
javax.management.remote.JMXServiceURL
;
import
org.junit.Ignore
;
import
org.springframework.aop.support.AopUtils
;
import
org.springframework.jmx.AbstractMBeanServerTests
;
...
...
@@ -42,7 +43,14 @@ public class MBeanServerConnectionFactoryBeanTests extends AbstractMBeanServerTe
return
JMXConnectorServerFactory
.
newJMXConnectorServer
(
getServiceUrl
(),
null
,
getServer
());
}
public
void
testValidConnection
()
throws
Exception
{
// @Ignore should have no effect for JUnit 3.8 tests; however, it appears
// that tests on the CI server -- as well as those in Eclipse -- do in
// fact get ignored. So we leave @Ignore here so that developers can
// easily search for ignored tests.
//
// Once fixed, renamed to test* instead of ignore*.
@Ignore
(
"Requires jmxremote_optional.jar; see comments in AbstractMBeanServerTests for details."
)
public
void
ignoreTestValidConnection
()
throws
Exception
{
JMXConnectorServer
connectorServer
=
getConnectorServer
();
connectorServer
.
start
();
...
...
@@ -75,7 +83,14 @@ public class MBeanServerConnectionFactoryBeanTests extends AbstractMBeanServerTe
}
}
public
void
testWithLazyConnection
()
throws
Exception
{
// @Ignore should have no effect for JUnit 3.8 tests; however, it appears
// that tests on the CI server -- as well as those in Eclipse -- do in
// fact get ignored. So we leave @Ignore here so that developers can
// easily search for ignored tests.
//
// Once fixed, renamed to test* instead of ignore*.
@Ignore
(
"Requires jmxremote_optional.jar; see comments in AbstractMBeanServerTests for details."
)
public
void
ignoreTestWithLazyConnection
()
throws
Exception
{
MBeanServerConnectionFactoryBean
bean
=
new
MBeanServerConnectionFactoryBean
();
bean
.
setServiceUrl
(
SERVICE_URL
);
bean
.
setConnectOnStartup
(
false
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录