org.eclipse.xtext.testing.RepeatedTest Java Examples
The following examples show how to use
org.eclipse.xtext.testing.RepeatedTest.
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: TestedWorkspace.java From xtext-eclipse with Eclipse Public License 2.0 | 5 votes |
@Override public Statement apply(Statement statement, Description description) { Statement result = super.apply(statement, description); // Apparently there is no good solution to order TestRules // that's why we do inline the (simple) logic for RepeatedTest here. RepeatedTest repeat = description.getAnnotation(RepeatedTest.class); if (repeat == null) { repeat = description.getTestClass().getAnnotation(RepeatedTest.class); } if (repeat != null) { result = new RepeatedTest.Rule.RepeatedTestStatement(repeat.times(), result, description, false); } return result; }