ingenias.testing.fest.DraggableTabbedPaneFixture Maven / Gradle / Ivy
package ingenias.testing.fest;
import static org.testng.AssertJUnit.assertTrue;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.Point;
import java.awt.geom.Rectangle2D;
import ingenias.editor.DraggableTabbedPane;
import ingenias.editor.entities.Entity;
import ingenias.exception.NotFound;
import javax.swing.JPanel;
import javax.swing.JPopupMenu;
import org.fest.swing.core.GenericTypeMatcher;
import org.fest.swing.core.KeyPressInfo;
import org.fest.swing.core.MouseButton;
import org.fest.swing.core.Robot;
import org.fest.swing.fixture.ComponentFixture;
import org.fest.swing.fixture.ContainerFixture;
import org.fest.swing.fixture.JPanelFixture;
import org.fest.swing.fixture.JPopupMenuFixture;
import org.fest.swing.timing.Pause;
import org.jgraph.JGraph;
import org.jgraph.graph.AttributeMap;
import org.jgraph.graph.DefaultGraphCell;
import org.jgraph.graph.GraphConstants;
import org.swixml.converters.KeyEvent;
import org.testng.Assert;
public class DraggableTabbedPaneFixture extends ComponentFixture {
private Component selected;
public DraggableTabbedPaneFixture(Robot robot, Class extends DraggableTabbedPane> type) {
super(robot, type);
// TODO Auto-generated constructor stub
}
public DraggableTabbedPaneFixture(Robot robot, DraggableTabbedPane target) {
super(robot, target);
// TODO Auto-generated constructor stub
}
public DraggableTabbedPaneFixture(Robot robot, String name, Class extends DraggableTabbedPane> type) {
super(robot, name, type);
}
public DraggableTabbedPaneFixture withDraggableTabPane(String name) {
selected=null;
for (int k=0;k