org.eclipse.xtext.testing.smoketest.ProcessedBy Java Examples
The following examples show how to use
org.eclipse.xtext.testing.smoketest.ProcessedBy.
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 | 4 votes |
public RunnerBuilder(Class<?> klass) throws InitializationError { ProcessedBy processor = getProcessor(klass); Scenario[] scenarios = getScenarios(klass, processor.processCompleteInput()); this.delegate = new Delegate(processor, scenarios); }
Example #2
Source File: RunnerBuilder.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
private static ProcessedBy getProcessor(Class<?> klass) throws InitializationError { ProcessedBy result= klass.getAnnotation(ProcessedBy.class); if (result == null) throw new InitializationError(String.format("class '%s' must have a ProcessedBy annotation", klass.getName())); return result; }
Example #3
Source File: RunnerBuilder.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
public Delegate(ProcessedBy processor, Scenario[] scenarios) { super(true); this.processor = processor; this.scenarios = scenarios; }