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());
}
Aggregations