[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [mdt-papyrus.dev] JUnit Test Framework
|
Hello I thing you have just missed the following snipped of code: @Rule public final PapyrusEditorFixture fixture = new PapyrusEditorFixture(); I am trying to setup an example here (still under review) https://git.eclipse.org/r/#/c/50955/7/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.stereotypeproperty.tests/src/org/eclipse/papyrus/uml/diagram/stereotypeproperty/TestUnapplyProfile2Comment.java But I am not an expert. Do not hesitate to ask additional elements. Have a good day. Francois De : mdt-papyrus.dev-bounces@xxxxxxxxxxx [mailto:mdt-papyrus.dev-bounces@xxxxxxxxxxx] De la part de Christian W. Damus Envoyé : lundi 13 juillet 2015 15:18 À : Papyrus Project list Objet : Re: [mdt-papyrus.dev] JUnit Test Framework Those annotations provide configuration for the PapyrusEditorFixture JUnit rule. Search for references to that class for examples of how it is used. 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
|
Attachment:
smime.p7s
Description: S/MIME cryptographic signature