public interface TestJob
This is the core interface for the storm java testing, usually we put our java unit testing logic in the run method. A sample code will be:
Testing.withSimulatedTimeLocalCluster(new TestJob() {
public void run(Cluster cluster) {
// your testing logic here.
}
});
Modifier and Type | Method and Description |
---|---|
void |
run(ILocalCluster cluster)
run the testing logic with the cluster.
|
void run(ILocalCluster cluster) throws Exception
run the testing logic with the cluster.
cluster
- the cluster which created by Testing.withSimulatedTimeLocalCluster
and Testing.withTrackedCluster
.Exception
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.