Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
import org.apache.samza.SamzaException;
import org.apache.samza.application.LegacyTaskApplication;
import org.apache.samza.application.SamzaApplication;
import org.apache.samza.application.StreamApplication;
import org.apache.samza.config.Config;
import org.apache.samza.config.JobConfig;
import org.apache.samza.config.JobCoordinatorConfig;
Expand Down Expand Up @@ -63,7 +62,6 @@
import org.apache.samza.test.framework.system.InMemorySystemDescriptor;
import org.junit.Assert;


/**
* TestRunner provides APIs to set up integration tests for a Samza application.
* Running mode for test is Single container mode
Expand Down Expand Up @@ -102,7 +100,7 @@ private TestRunner() {

/**
* Constructs a new {@link TestRunner} from following components
* @param taskClass represent a class containing Samza job logic extending either {@link StreamTask} or {@link AsyncStreamTask}
* @param taskClass containing Samza job logic extending either {@link StreamTask} or {@link AsyncStreamTask}
*/
private TestRunner(Class taskClass) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this method still required?

this();
Expand All @@ -113,9 +111,9 @@ private TestRunner(Class taskClass) {

/**
* Constructs a new {@link TestRunner} from following components
* @param app samza job implementing {@link StreamApplication}
* @param app a {@link SamzaApplication}
*/
private TestRunner(StreamApplication app) {
private TestRunner(SamzaApplication app) {
this();
Preconditions.checkNotNull(app);
this.app = app;
Expand All @@ -134,11 +132,11 @@ public static TestRunner of(Class taskClass) {
}

/**
* Creates an instance of {@link TestRunner} for High Level/Fluent Samza Api
* @param app samza job implementing {@link StreamApplication}
* Creates an instance of {@link TestRunner} for a {@link SamzaApplication}
* @param app a {@link SamzaApplication}
* @return this {@link TestRunner}
*/
public static TestRunner of(StreamApplication app) {
public static TestRunner of(SamzaApplication app) {
Preconditions.checkNotNull(app);
return new TestRunner(app);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,4 @@ public void testSamzaJobTimeoutFailureForAsyncTask() {
.addOutputStream(imod, 1)
.run(Duration.ofMillis(1));
}


}
Original file line number Diff line number Diff line change
Expand Up @@ -167,4 +167,4 @@ public void genData(Map<Integer, List<KV>> inputPartitionData, Map<Integer, List
expectedOutputPartitionData.put(i, new ArrayList<Integer>(outputPartition));
}
}
}
}