public void test_from_scenario11() throws Exception {
initialValues[7] = null;
ArrayType stackTraceArray = new ArrayType(1, stackTraceElementType);
OpenType[] types = { SimpleType.LONG, SimpleType.STRING,
SimpleType.STRING, SimpleType.BOOLEAN, SimpleType.BOOLEAN,
SimpleType.LONG, SimpleType.LONG, SimpleType.LONG,
SimpleType.LONG, SimpleType.STRING, SimpleType.LONG,
SimpleType.STRING, stackTraceArray, SimpleType.STRING };
CompositeType compositeType = getCompositeType(initialNames, types);
CompositeData data = new CompositeDataSupport(compositeType,
initialNames, initialValues);
try {
ThreadInfo.from(data);
fail("should throw NullPointerException");
} catch (NullPointerException e) {
// Expected
}
}
ThreadInfoTest.java 文件源码
java
阅读 20
收藏 0
点赞 0
评论 0
项目:cn1
作者:
评论列表
文章目录