On Mon, Jul 13, 2015 at 9:12 AM, Jean-Marc Larré <Jean-Marc.Larre@xxxxxxx> wrote:
Hi,
I try to use the core Junit Test Infrastructure. With this documentation that we can find here https://wiki.eclipse.org/Papyrus_Developer_Guide/JUnit_Test_Framework , it’s very difficult to understand how use Junit for Papyrus.
I want to manage Papyrus editors and I try to use @PluginResource and @ActiveDiagram rules for exemple but it seems that it’s no effect . I would declare a diagram and in my tests method gets the model with UMLFactory.eINSTANCE.getUMLPackage().getModel() .
Could you give me any examples to use Junit for Papyrus ?
Here my code but it doesn't work:
@PluginResource("models/checkALTCombinedFragment_1_10_001_ErrorYes.di")
@RunWith(ClassificationRunner.class)
public class SyntaxValidatorTest {
@Test
@ActiveDiagram("SeqDiagram")
public void testCheckALTCombinedFragment() {
System.out.println("TEST " + UMLFactory.eINSTANCE.getUMLPackage().getModel().getName());
fail("TEST : ");
}
}
Sincerely
Jean-Marc
------------------
Jean-Marc.Larre@xxxxxxx , 05 61 33 63 34 , www.laas.fr
Service IDEA (Informatique : Développement, Exploitation et Assistance)
LAAS-CNRS 7 avenue du Colonel Roche BP 54200 31031 Toulouse cedex 4
_______________________________________________
mdt-papyrus.dev mailing list
mdt-papyrus.dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/mdt-papyrus.dev