|
Re: testing with ValidationTestHelper [message #758829 is a reply to message #758810] |
Thu, 24 November 2011 16:24 |
|
Hi,
i cannot reproduce this
@ComposedChecks(validators = { NamesAreUniqueValidator.class })
public class MyDslJavaValidator extends AbstractMyDslJavaValidator {
}
@RunWith(XtextRunner.class)
@InjectWith(MyDslInjectorProvider.class)
public class Test extends AbstractXtextTests {
@Inject
MyDslJavaValidator validator;
@Inject
Injector injector;
@Inject
ParseHelper<Model> parser;
@org.junit.Test
public void TestIt() throws Exception {
ValidatorTester<MyDslJavaValidator> tester = new ValidatorTester<MyDslJavaValidator>(validator, injector);
System.out.println(tester.validate(parser.parse("Hello You! Hello You!")));
}
}
~Christian
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03855 seconds