org.testng.IDynamicGraph Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of testng Show documentation
Show all versions of testng Show documentation
Testing framework for Java
package org.testng;
import java.util.Collection;
import java.util.List;
import java.util.Set;
/**
* Represents the graphical representative capabilities of an entity.
* The entities could be either a {@link ISuite} or an {@link ITestNGMethod} object which are
* usually the logical units of work that TestNG deals with.
*/
public interface IDynamicGraph {
boolean addNode(T node);
void addEdge(int weight, T from, T to);
void setVisualisers(Set listener);
void addEdges(int weight, T from, Iterable tos);
List getFreeNodes();
List getDependenciesFor(T node);
void setStatus(Collection nodes, Status status);
void setStatus(T node, Status status);
int getNodeCount();
int getNodeCountWithStatus(Status status);
Set getNodesWithStatus(Status status);
String toDot();
enum Status {
READY,
RUNNING,
FINISHED
}
}