Search in sources :

Example 1 with JPADetailsView

use of org.jboss.tools.hibernate.reddeer.view.JPADetailsView in project jbosstools-hibernate by jbosstools.

the class JPADetailsViewTest method testJPADetailView.

@Test
public void testJPADetailView() {
    ProjectUtils.getItem(PRJ, "org.gen", "Actor.java").open();
    TextEditor textEditor = new TextEditor("Actor.java");
    textEditor.setCursorPosition(20, 1);
    JPADetailsView jpaDetailsView = new JPADetailsView();
    jpaDetailsView.open();
    try {
        new DefaultStyledText("Type 'Actor' is mapped as entity.");
    } catch (RedDeerException e) {
        fail("JPA details should be available - known issue - https://issues.jboss.org/browse/JBIDE-17940");
    }
}
Also used : JPADetailsView(org.jboss.tools.hibernate.reddeer.view.JPADetailsView) RedDeerException(org.eclipse.reddeer.common.exception.RedDeerException) TextEditor(org.eclipse.reddeer.workbench.impl.editor.TextEditor) DefaultStyledText(org.eclipse.reddeer.swt.impl.styledtext.DefaultStyledText) Test(org.junit.Test)

Example 2 with JPADetailsView

use of org.jboss.tools.hibernate.reddeer.view.JPADetailsView in project jbosstools-hibernate by jbosstools.

the class JPAUIPartsTest method testHibernateViews.

@Test
public /**
 * Tests JPA perspective
 * Tests JPA views
 * - JPA Details
 * - JPA Structure
 */
void testHibernateViews() {
    checkView(new JPADetailsView());
    checkView(new JPAStructureView());
}
Also used : JPADetailsView(org.jboss.tools.hibernate.reddeer.view.JPADetailsView) JPAStructureView(org.jboss.tools.hibernate.reddeer.view.JPAStructureView) Test(org.junit.Test)

Aggregations

JPADetailsView (org.jboss.tools.hibernate.reddeer.view.JPADetailsView)2 Test (org.junit.Test)2 RedDeerException (org.eclipse.reddeer.common.exception.RedDeerException)1 DefaultStyledText (org.eclipse.reddeer.swt.impl.styledtext.DefaultStyledText)1 TextEditor (org.eclipse.reddeer.workbench.impl.editor.TextEditor)1 JPAStructureView (org.jboss.tools.hibernate.reddeer.view.JPAStructureView)1