Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
doujutun3207
flink
提交
c5efb1f2
F
flink
项目概览
doujutun3207
/
flink
与 Fork 源项目一致
从无法访问的项目Fork
通知
24
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
flink
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
c5efb1f2
编写于
12月 11, 2017
作者:
N
Nico Kruber
提交者:
zentol
12月 12, 2017
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[FLINK-8241][tests] Remove ResultPartitionWriter-related "@PrepareForTest" annotations
This closes #5147.
上级
beb11976
变更
6
显示空白变更内容
内联
并排
Showing
6 changed file
with
4 addition
and
15 deletion
+4
-15
flink-runtime/src/test/java/org/apache/flink/runtime/io/network/api/writer/RecordWriterTest.java
...flink/runtime/io/network/api/writer/RecordWriterTest.java
+1
-1
flink-runtime/src/test/java/org/apache/flink/runtime/io/network/api/writer/ResultPartitionWriterTest.java
...time/io/network/api/writer/ResultPartitionWriterTest.java
+0
-5
flink-runtime/src/test/java/org/apache/flink/runtime/operators/chaining/ChainTaskTest.java
...pache/flink/runtime/operators/chaining/ChainTaskTest.java
+1
-2
flink-runtime/src/test/java/org/apache/flink/runtime/operators/chaining/ChainedAllReduceDriverTest.java
...untime/operators/chaining/ChainedAllReduceDriverTest.java
+1
-2
flink-streaming-java/src/test/java/org/apache/flink/streaming/runtime/io/StreamRecordWriterTest.java
...he/flink/streaming/runtime/io/StreamRecordWriterTest.java
+1
-2
flink-streaming-java/src/test/java/org/apache/flink/streaming/runtime/tasks/StreamTaskTestHarness.java
.../flink/streaming/runtime/tasks/StreamTaskTestHarness.java
+0
-3
未找到文件。
flink-runtime/src/test/java/org/apache/flink/runtime/io/network/api/writer/RecordWriterTest.java
浏览文件 @
c5efb1f2
...
...
@@ -74,7 +74,7 @@ import static org.mockito.Mockito.times;
import
static
org
.
mockito
.
Mockito
.
verify
;
import
static
org
.
mockito
.
Mockito
.
when
;
@PrepareForTest
({
ResultPartitionWriter
.
class
,
EventSerializer
.
class
})
@PrepareForTest
({
EventSerializer
.
class
})
@RunWith
(
PowerMockRunner
.
class
)
public
class
RecordWriterTest
{
...
...
flink-runtime/src/test/java/org/apache/flink/runtime/io/network/api/writer/ResultPartitionWriterTest.java
浏览文件 @
c5efb1f2
...
...
@@ -30,16 +30,11 @@ import org.apache.flink.runtime.io.network.partition.ResultPartitionManager;
import
org.apache.flink.runtime.io.network.partition.ResultPartitionType
;
import
org.apache.flink.runtime.taskmanager.TaskActions
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.powermock.core.classloader.annotations.PrepareForTest
;
import
org.powermock.modules.junit4.PowerMockRunner
;
import
static
org
.
junit
.
Assert
.
assertEquals
;
import
static
org
.
junit
.
Assert
.
assertTrue
;
import
static
org
.
mockito
.
Mockito
.
mock
;
@PrepareForTest
({
ResultPartitionWriter
.
class
})
@RunWith
(
PowerMockRunner
.
class
)
public
class
ResultPartitionWriterTest
{
// ---------------------------------------------------------------------------------------------
...
...
flink-runtime/src/test/java/org/apache/flink/runtime/operators/chaining/ChainTaskTest.java
浏览文件 @
c5efb1f2
...
...
@@ -29,7 +29,6 @@ import org.apache.flink.runtime.testutils.recordutils.RecordComparatorFactory;
import
org.apache.flink.runtime.testutils.recordutils.RecordSerializerFactory
;
import
org.apache.flink.api.common.functions.RichGroupReduceFunction
;
import
org.apache.flink.configuration.Configuration
;
import
org.apache.flink.runtime.io.network.api.writer.ResultPartitionWriter
;
import
org.apache.flink.runtime.operators.DriverStrategy
;
import
org.apache.flink.runtime.operators.BatchTask
;
import
org.apache.flink.runtime.operators.FlatMapDriver
;
...
...
@@ -51,7 +50,7 @@ import org.powermock.core.classloader.annotations.PrepareForTest;
import
org.powermock.modules.junit4.PowerMockRunner
;
@RunWith
(
PowerMockRunner
.
class
)
@PrepareForTest
({
Task
.
class
,
ResultPartitionWriter
.
class
})
@PrepareForTest
({
Task
.
class
})
@PowerMockIgnore
({
"javax.management.*"
,
"com.sun.jndi.*"
})
public
class
ChainTaskTest
extends
TaskTestBase
{
...
...
flink-runtime/src/test/java/org/apache/flink/runtime/operators/chaining/ChainedAllReduceDriverTest.java
浏览文件 @
c5efb1f2
...
...
@@ -22,7 +22,6 @@ import org.apache.flink.api.common.functions.FlatMapFunction;
import
org.apache.flink.api.common.functions.ReduceFunction
;
import
org.apache.flink.api.common.operators.util.UserCodeClassWrapper
;
import
org.apache.flink.configuration.Configuration
;
import
org.apache.flink.runtime.io.network.api.writer.ResultPartitionWriter
;
import
org.apache.flink.runtime.operators.BatchTask
;
import
org.apache.flink.runtime.operators.DriverStrategy
;
import
org.apache.flink.runtime.operators.FlatMapDriver
;
...
...
@@ -46,7 +45,7 @@ import java.util.ArrayList;
import
java.util.List
;
@RunWith
(
PowerMockRunner
.
class
)
@PrepareForTest
({
Task
.
class
,
ResultPartitionWriter
.
class
})
@PrepareForTest
({
Task
.
class
})
public
class
ChainedAllReduceDriverTest
extends
TaskTestBase
{
private
static
final
int
MEMORY_MANAGER_SIZE
=
1024
*
1024
*
3
;
...
...
flink-streaming-java/src/test/java/org/apache/flink/streaming/runtime/io/StreamRecordWriterTest.java
浏览文件 @
c5efb1f2
...
...
@@ -41,8 +41,7 @@ import static org.mockito.Mockito.mock;
import
static
org
.
mockito
.
Mockito
.
when
;
/**
* This test uses the PowerMockRunner runner to work around the fact that the
* {@link ResultPartitionWriter} class is final.
* Tests for the {@link StreamRecordWriter}.
*/
public
class
StreamRecordWriterTest
{
...
...
flink-streaming-java/src/test/java/org/apache/flink/streaming/runtime/tasks/StreamTaskTestHarness.java
浏览文件 @
c5efb1f2
...
...
@@ -58,9 +58,6 @@ import java.util.concurrent.LinkedBlockingQueue;
* <p>After setting up everything the Task can be invoked using {@link #invoke()}. This will start
* a new Thread to execute the Task. Use {@link #waitForTaskCompletion()} to wait for the Task
* thread to finish.
*
* <p>When using this you need to add the following line to your test class to setup Powermock:
* {@code {@literal @}PrepareForTest({ResultPartitionWriter.class})}
*/
public
class
StreamTaskTestHarness
<
OUT
>
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录