Skip to content
代码片段 群组 项目
未验证 提交 f191e478 编辑于 作者: Bruno Cadonna's avatar Bruno Cadonna 提交者: GitHub
浏览文件

MINOR: Use builder for mock task in DefaultStateUpdaterTest (#12436)

Reviewer: Guozhang Wang <wangguoz@gmail.com>
上级 a450fb70
No related branches found
No related tags found
无相关合并请求
......@@ -343,6 +343,11 @@ public final class StreamsTestUtils {
when(task.id()).thenReturn(taskId);
}
public TaskBuilder<T> inState(final Task.State state) {
when(task.state()).thenReturn(state);
return this;
}
public T build() {
return task;
}
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册