org.eclipse.xtext.testing.XtextRunner Java Examples

The following examples show how to use org.eclipse.xtext.testing.XtextRunner. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: RunnerBuilder.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
@Override
protected AnnotatedBuilder annotatedBuilder() {
	return new AnnotatedBuilder(this) {
		@Override
		public Runner buildRunner(Class<? extends Runner> runnerClass,
				Class<?> testClass) throws Exception {
			if (XtextRunner.class.equals(runnerClass)) {
				return new AllScenariosRunner(testClass, processor, scenarios);
			}
			return super.buildRunner(runnerClass, testClass);
		}
	};
}