Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[mdt-papyrus.dev] JUnit Test Framework

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 












Back to the top