Search in sources :

Example 1 with HibernateJPAWizard

use of org.jboss.tools.hibernate.reddeer.jdt.ui.jpa.process.wizard.HibernateJPAWizard in project jbosstools-hibernate by jbosstools.

the class JpaAnnotationGenerationTest method postCheck.

private void postCheck(String clazz) {
    HibernateJPAWizard jpaWizard = new HibernateJPAWizard();
    jpaWizard.next();
    jpaWizard.finish();
    ProjectUtils.getItem(prj, PCKG, clazz + ".java").open();
    TextEditor editor = new TextEditor(clazz + ".java");
    assertTrue(editor.getText().contains("@Entity"));
    ProblemsView pw = new ProblemsView();
    pw.open();
    assertEquals(0, pw.getProblems(ProblemType.ERROR).size());
    assertEquals(0, pw.getProblems(ProblemType.WARNING).size());
}
Also used : HibernateJPAWizard(org.jboss.tools.hibernate.reddeer.jdt.ui.jpa.process.wizard.HibernateJPAWizard) TextEditor(org.eclipse.reddeer.workbench.impl.editor.TextEditor) ProblemsView(org.eclipse.reddeer.eclipse.ui.views.markers.ProblemsView)

Aggregations

ProblemsView (org.eclipse.reddeer.eclipse.ui.views.markers.ProblemsView)1 TextEditor (org.eclipse.reddeer.workbench.impl.editor.TextEditor)1 HibernateJPAWizard (org.jboss.tools.hibernate.reddeer.jdt.ui.jpa.process.wizard.HibernateJPAWizard)1