Search in sources :

Example 1 with STextJavaValidator

use of org.yakindu.sct.model.stext.validation.STextJavaValidator in project statecharts by Yakindu.

the class AbstractSTextValidationTest method setup.

@Before
public void setup() {
    factory = SGraphFactory.eINSTANCE;
    resource = new StextResource(URI.createURI(""));
    injector.injectMembers(resource);
    statechart = factory.createStatechart();
    resource.getContents().add(statechart);
    diagnostics = new BasicDiagnostic();
    tester = new ValidatorTester<STextJavaValidator>(validator, injector);
}
Also used : StextResource(org.yakindu.sct.model.stext.resource.StextResource) BasicDiagnostic(org.eclipse.emf.common.util.BasicDiagnostic) STextJavaValidator(org.yakindu.sct.model.stext.validation.STextJavaValidator) Before(org.junit.Before)

Aggregations

BasicDiagnostic (org.eclipse.emf.common.util.BasicDiagnostic)1 Before (org.junit.Before)1 StextResource (org.yakindu.sct.model.stext.resource.StextResource)1 STextJavaValidator (org.yakindu.sct.model.stext.validation.STextJavaValidator)1