assertEquals("visualweb", comp.getComponent());
}
private void createMethod(EntityManager em, String methodName, String jarName) {
em.getTransaction().begin();
Sourcejar sj = em.find(Sourcejar.class, jarName.hashCode());
if (sj == null) {
sj = new Sourcejar(jarName.hashCode());
}
sj.setName(jarName);
em.persist(sj);
Method m = new Method(methodName.hashCode());
m.setSourcejar(sj);
m.setName(methodName);
em.persist(m);