Skip to content

Commit

Permalink
[BEAM-14081] Make BatchContextImpl class abstract
Browse files Browse the repository at this point in the history
  • Loading branch information
Amar3tto committed May 11, 2022
1 parent 9e31a72 commit 2f77cc4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

/** Class for Batch, Sink and Stream CDAP wrapper classes that use it to provide common details. */
@SuppressWarnings({"TypeParameterUnusedInFormals", "nullness"})
public class BatchContextImpl implements BatchContext {
public abstract class BatchContextImpl implements BatchContext {

private final FailureCollectorWrapper failureCollector = new FailureCollectorWrapper();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class BatchContextImplTest {
public void getLogicalStartTime() {
/** arrange */
Timestamp expectedStartTime = new Timestamp(System.currentTimeMillis());
BatchContextImpl context = new BatchContextImpl();
BatchContextImpl context = new BatchSourceContextImpl();

/** act */
long actualStartTime = context.getLogicalStartTime();
Expand All @@ -47,7 +47,7 @@ public void getLogicalStartTime() {
@Test
public void getFailureCollector() {
/** arrange */
BatchContextImpl context = new BatchContextImpl();
BatchContextImpl context = new BatchSinkContextImpl();

/** act */
FailureCollector failureCollector = context.getFailureCollector();
Expand Down

0 comments on commit 2f77cc4

Please sign in to comment.