All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ingenias.testing.fest.JGraphFixtureExtension Maven / Gradle / Ivy

package ingenias.testing.fest;

import java.awt.Container;

import javax.swing.JPanel;
import javax.swing.JTree;

import org.fest.swing.core.Robot;
import org.fest.swing.driver.BasicJTreeCellReader;
import org.fest.swing.fixture.ComponentFixtureExtension;
import org.fest.swing.fixture.ContainerFixture;
import org.jgraph.JGraph;

public class JGraphFixtureExtension extends ComponentFixtureExtension {
	
	 private String name;

	public JGraphFixtureExtension(String name) {
		this.name=name;
	}

	public static JGraphFixtureExtension jgraphWithName(String id) {
		    return new JGraphFixtureExtension(id);
	}  
	  
	  public JGraphFixture createFixture(Robot robot, Container root) {
		  JGraph calendar = robot.finder().findByName(root, name, JGraph.class, true);
		    return new JGraphFixture(robot, calendar);
		  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy