Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
f5c43a90
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
4
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_jdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
f5c43a90
编写于
10月 03, 2013
作者:
P
psandoz
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8025567: Mark relevant public stream tests as serialization hostile
Reviewed-by: alanb
上级
a80e13e1
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
16 addition
and
12 deletion
+16
-12
test/java/util/stream/test/org/openjdk/tests/java/util/stream/ForEachOpTest.java
...est/org/openjdk/tests/java/util/stream/ForEachOpTest.java
+4
-4
test/java/util/stream/test/org/openjdk/tests/java/util/stream/SliceOpTest.java
.../test/org/openjdk/tests/java/util/stream/SliceOpTest.java
+6
-3
test/java/util/stream/test/org/openjdk/tests/java/util/stream/StreamBuilderTest.java
...org/openjdk/tests/java/util/stream/StreamBuilderTest.java
+4
-4
test/java/util/stream/test/org/openjdk/tests/java/util/stream/ToArrayOpTest.java
...est/org/openjdk/tests/java/util/stream/ToArrayOpTest.java
+2
-1
未找到文件。
test/java/util/stream/test/org/openjdk/tests/java/util/stream/ForEachOpTest.java
浏览文件 @
f5c43a90
...
@@ -69,7 +69,7 @@ public class ForEachOpTest extends OpTestCase {
...
@@ -69,7 +69,7 @@ public class ForEachOpTest extends OpTestCase {
};
};
}
}
@Test
@Test
(
groups
=
{
"serialization-hostile"
})
public
void
testForEachOrdered
()
{
public
void
testForEachOrdered
()
{
List
<
Integer
>
input
=
countTo
(
10000
);
List
<
Integer
>
input
=
countTo
(
10000
);
TestData
.
OfRef
<
Integer
>
data
=
TestData
.
Factory
.
ofCollection
(
"[1, 10000]"
,
input
);
TestData
.
OfRef
<
Integer
>
data
=
TestData
.
Factory
.
ofCollection
(
"[1, 10000]"
,
input
);
...
@@ -116,7 +116,7 @@ public class ForEachOpTest extends OpTestCase {
...
@@ -116,7 +116,7 @@ public class ForEachOpTest extends OpTestCase {
//
//
@Test
@Test
(
groups
=
{
"serialization-hostile"
})
public
void
testIntForEachOrdered
()
{
public
void
testIntForEachOrdered
()
{
List
<
Integer
>
input
=
countTo
(
10000
);
List
<
Integer
>
input
=
countTo
(
10000
);
TestData
.
OfInt
data
=
TestData
.
Factory
.
ofIntSupplier
(
"[1, 10000]"
,
TestData
.
OfInt
data
=
TestData
.
Factory
.
ofIntSupplier
(
"[1, 10000]"
,
...
@@ -164,7 +164,7 @@ public class ForEachOpTest extends OpTestCase {
...
@@ -164,7 +164,7 @@ public class ForEachOpTest extends OpTestCase {
//
//
@Test
@Test
(
groups
=
{
"serialization-hostile"
})
public
void
testLongForEachOrdered
()
{
public
void
testLongForEachOrdered
()
{
List
<
Integer
>
input
=
countTo
(
10000
);
List
<
Integer
>
input
=
countTo
(
10000
);
TestData
.
OfLong
data
=
TestData
.
Factory
.
ofLongSupplier
(
"[1, 10000]"
,
TestData
.
OfLong
data
=
TestData
.
Factory
.
ofLongSupplier
(
"[1, 10000]"
,
...
@@ -212,7 +212,7 @@ public class ForEachOpTest extends OpTestCase {
...
@@ -212,7 +212,7 @@ public class ForEachOpTest extends OpTestCase {
//
//
@Test
@Test
(
groups
=
{
"serialization-hostile"
})
public
void
testDoubleForEachOrdered
()
{
public
void
testDoubleForEachOrdered
()
{
List
<
Integer
>
input
=
countTo
(
10000
);
List
<
Integer
>
input
=
countTo
(
10000
);
TestData
.
OfDouble
data
=
TestData
.
Factory
.
ofDoubleSupplier
(
"[1, 10000]"
,
TestData
.
OfDouble
data
=
TestData
.
Factory
.
ofDoubleSupplier
(
"[1, 10000]"
,
...
...
test/java/util/stream/test/org/openjdk/tests/java/util/stream/SliceOpTest.java
浏览文件 @
f5c43a90
...
@@ -147,7 +147,8 @@ public class SliceOpTest extends OpTestCase {
...
@@ -147,7 +147,8 @@ public class SliceOpTest extends OpTestCase {
return
Math
.
max
(
0
,
dataSize
-
skip
);
return
Math
.
max
(
0
,
dataSize
-
skip
);
}
}
@Test
(
dataProvider
=
"StreamTestData<Integer>"
,
dataProviderClass
=
StreamTestDataProvider
.
class
)
@Test
(
dataProvider
=
"StreamTestData<Integer>"
,
dataProviderClass
=
StreamTestDataProvider
.
class
,
groups
=
{
"serialization-hostile"
})
public
void
testSkipOps
(
String
name
,
TestData
.
OfRef
<
Integer
>
data
)
{
public
void
testSkipOps
(
String
name
,
TestData
.
OfRef
<
Integer
>
data
)
{
List
<
Integer
>
skips
=
sizes
(
data
.
size
());
List
<
Integer
>
skips
=
sizes
(
data
.
size
());
...
@@ -169,7 +170,8 @@ public class SliceOpTest extends OpTestCase {
...
@@ -169,7 +170,8 @@ public class SliceOpTest extends OpTestCase {
}
}
}
}
@Test
(
dataProvider
=
"StreamTestData<Integer>"
,
dataProviderClass
=
StreamTestDataProvider
.
class
)
@Test
(
dataProvider
=
"StreamTestData<Integer>"
,
dataProviderClass
=
StreamTestDataProvider
.
class
,
groups
=
{
"serialization-hostile"
})
public
void
testSkipLimitOps
(
String
name
,
TestData
.
OfRef
<
Integer
>
data
)
{
public
void
testSkipLimitOps
(
String
name
,
TestData
.
OfRef
<
Integer
>
data
)
{
List
<
Integer
>
skips
=
sizes
(
data
.
size
());
List
<
Integer
>
skips
=
sizes
(
data
.
size
());
List
<
Integer
>
limits
=
skips
;
List
<
Integer
>
limits
=
skips
;
...
@@ -242,7 +244,8 @@ public class SliceOpTest extends OpTestCase {
...
@@ -242,7 +244,8 @@ public class SliceOpTest extends OpTestCase {
testSkipLimitOps
(
"testSkipLimitOpsWithNonSplittingSpliterator"
,
data
);
testSkipLimitOps
(
"testSkipLimitOpsWithNonSplittingSpliterator"
,
data
);
}
}
@Test
(
dataProvider
=
"StreamTestData<Integer>"
,
dataProviderClass
=
StreamTestDataProvider
.
class
)
@Test
(
dataProvider
=
"StreamTestData<Integer>"
,
dataProviderClass
=
StreamTestDataProvider
.
class
,
groups
=
{
"serialization-hostile"
})
public
void
testLimitOps
(
String
name
,
TestData
.
OfRef
<
Integer
>
data
)
{
public
void
testLimitOps
(
String
name
,
TestData
.
OfRef
<
Integer
>
data
)
{
List
<
Integer
>
limits
=
sizes
(
data
.
size
());
List
<
Integer
>
limits
=
sizes
(
data
.
size
());
...
...
test/java/util/stream/test/org/openjdk/tests/java/util/stream/StreamBuilderTest.java
浏览文件 @
f5c43a90
...
@@ -97,7 +97,7 @@ public class StreamBuilderTest extends OpTestCase {
...
@@ -97,7 +97,7 @@ public class StreamBuilderTest extends OpTestCase {
checkISE
(()
->
sb
.
build
());
checkISE
(()
->
sb
.
build
());
}
}
@Test
(
dataProvider
=
"sizes"
)
@Test
(
dataProvider
=
"sizes"
,
groups
=
{
"serialization-hostile"
}
)
public
void
testStreamBuilder
(
int
size
)
{
public
void
testStreamBuilder
(
int
size
)
{
testStreamBuilder
(
size
,
(
s
)
->
{
testStreamBuilder
(
size
,
(
s
)
->
{
Stream
.
Builder
<
Integer
>
sb
=
Stream
.
builder
();
Stream
.
Builder
<
Integer
>
sb
=
Stream
.
builder
();
...
@@ -159,7 +159,7 @@ public class StreamBuilderTest extends OpTestCase {
...
@@ -159,7 +159,7 @@ public class StreamBuilderTest extends OpTestCase {
checkISE
(()
->
sb
.
build
());
checkISE
(()
->
sb
.
build
());
}
}
@Test
(
dataProvider
=
"sizes"
)
@Test
(
dataProvider
=
"sizes"
,
groups
=
{
"serialization-hostile"
}
)
public
void
testIntStreamBuilder
(
int
size
)
{
public
void
testIntStreamBuilder
(
int
size
)
{
testIntStreamBuilder
(
size
,
(
s
)
->
{
testIntStreamBuilder
(
size
,
(
s
)
->
{
IntStream
.
Builder
sb
=
IntStream
.
builder
();
IntStream
.
Builder
sb
=
IntStream
.
builder
();
...
@@ -221,7 +221,7 @@ public class StreamBuilderTest extends OpTestCase {
...
@@ -221,7 +221,7 @@ public class StreamBuilderTest extends OpTestCase {
checkISE
(()
->
sb
.
build
());
checkISE
(()
->
sb
.
build
());
}
}
@Test
(
dataProvider
=
"sizes"
)
@Test
(
dataProvider
=
"sizes"
,
groups
=
{
"serialization-hostile"
}
)
public
void
testLongStreamBuilder
(
int
size
)
{
public
void
testLongStreamBuilder
(
int
size
)
{
testLongStreamBuilder
(
size
,
(
s
)
->
{
testLongStreamBuilder
(
size
,
(
s
)
->
{
LongStream
.
Builder
sb
=
LongStream
.
builder
();
LongStream
.
Builder
sb
=
LongStream
.
builder
();
...
@@ -282,7 +282,7 @@ public class StreamBuilderTest extends OpTestCase {
...
@@ -282,7 +282,7 @@ public class StreamBuilderTest extends OpTestCase {
checkISE
(()
->
sb
.
build
());
checkISE
(()
->
sb
.
build
());
}
}
@Test
(
dataProvider
=
"sizes"
)
@Test
(
dataProvider
=
"sizes"
,
groups
=
{
"serialization-hostile"
}
)
public
void
testDoubleStreamBuilder
(
int
size
)
{
public
void
testDoubleStreamBuilder
(
int
size
)
{
testDoubleStreamBuilder
(
size
,
(
s
)
->
{
testDoubleStreamBuilder
(
size
,
(
s
)
->
{
DoubleStream
.
Builder
sb
=
DoubleStream
.
builder
();
DoubleStream
.
Builder
sb
=
DoubleStream
.
builder
();
...
...
test/java/util/stream/test/org/openjdk/tests/java/util/stream/ToArrayOpTest.java
浏览文件 @
f5c43a90
...
@@ -165,7 +165,8 @@ public class ToArrayOpTest extends OpTestCase {
...
@@ -165,7 +165,8 @@ public class ToArrayOpTest extends OpTestCase {
};
};
}
}
@Test
(
dataProvider
=
"StreamTestData<Integer>"
,
dataProviderClass
=
StreamTestDataProvider
.
class
)
@Test
(
dataProvider
=
"StreamTestData<Integer>"
,
dataProviderClass
=
StreamTestDataProvider
.
class
,
groups
=
{
"serialization-hostile"
})
public
void
testStatefulOpPermutations
(
String
name
,
TestData
.
OfRef
<
Integer
>
data
)
{
public
void
testStatefulOpPermutations
(
String
name
,
TestData
.
OfRef
<
Integer
>
data
)
{
for
(
Function
<
Stream
<
Integer
>,
Stream
<
Integer
>>
f
:
statefulOpPermutations
)
{
for
(
Function
<
Stream
<
Integer
>,
Stream
<
Integer
>>
f
:
statefulOpPermutations
)
{
withData
(
data
).
terminal
(
f
,
s
->
s
.
toArray
())
withData
(
data
).
terminal
(
f
,
s
->
s
.
toArray
())
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录