new StackTraceElement("org.openide.util.Mutex", "doEvent", "file", 45)
});
assertNotNull(comp);// mapping
em.getTransaction().begin();
SourcejarMapping mapping = em.find(SourcejarMapping.class, "org-openide-util.jar");
mapping.setComponent("comp1");
mapping.setSubcomponent("subcomp1");
em.merge(mapping);
em.getTransaction().commit();
matcher.reload();
comp = match(matcher, new StackTraceElement[]{
new StackTraceElement("org.openide.util.Mutex", "doEvent", "file", 45)
});
assertEquals("comp1", comp.getComponent());
assertEquals("subcomp1", comp.getSubComponent());
comp = match(matcher, new StackTraceElement[]{
new StackTraceElement("org.netbeans.visualweb.insync.models.FacesModel", "syncImpl", "file", 45)
});
assertNull(comp);
//----------------------//
mapping = new SourcejarMapping("testingfile");
mapping.setComponent("comp2");
mapping.setSubcomponent("subcomp2");
perUtils.persist(mapping);
matcher.reload();
comp = match(matcher, new StackTraceElement[]{
new StackTraceElement("org.openide.util.Mutex", "doEvent", "file", 45)
});
assertEquals("comp1", comp.getComponent());
assertEquals("subcomp1", comp.getSubComponent());
comp = match(matcher, new StackTraceElement[]{
new StackTraceElement("org.netbeans.modules.visualweb.insync.models.FacesModel", "syncImpl", "file", 45)
});
assertEquals("comp2", comp.getComponent());
assertEquals("subcomp2", comp.getSubComponent());
mapping = new SourcejarMapping("testingfile.jar");
mapping.setComponent("comp3");
mapping.setSubcomponent("subcomp3");
perUtils.persist(mapping);
matcher.reload();
comp = match(matcher, new StackTraceElement[]{
new StackTraceElement("org.netbeans.modules.visualweb.insync.models.FacesModel", "syncImpl", "file", 45)