org.eclipse.xtext.testing.smoketest.IgnoredBySmokeTest Java Examples
The following examples show how to use
org.eclipse.xtext.testing.smoketest.IgnoredBySmokeTest.
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: AbstractTypeResolverTest.java From xtext-extras with Eclipse Public License 2.0 | 5 votes |
@IgnoredBySmokeTest("Do not run smoke test with 1000s of nested expressions") @Test public void testBlockExpression_03() throws Exception { String input = "{ val s1 = \'\'\n"; final int max = 1000; IntegerRange _upTo = new IntegerRange(1, max); for (final Integer i : _upTo) { input = (((((input + " val s") + Integer.valueOf(((i).intValue() + 1))) + " = s") + i) + "\n"); } input = (((input + " s") + Integer.valueOf((max + 1))) + "}"); this.resolvesTo(input, "String"); }
Example #2
Source File: SmokeTestCases.java From xtext-xtend with Eclipse Public License 2.0 | 5 votes |
@IgnoredBySmokeTest("see https://bugs.eclipse.org/bugs/show_bug.cgi?id=394277") @Test public void test_04() { try { this.file("\n\t\t\tpackage org.eclipse.xtend.core.tests.smoke\n\t\t\t\n\t\t\tclass Case_4 {\n\t\t\t\tdef richStrings_01() {\n\t\t\t\t\t\'\'\'foobar\'\'\'\n\t\t\t\t}\n\t\t\t\tdef richStrings_02()\n\t\t\t\t\t\'\'\'�\'start\'�\n\t\t\t\t\t first line\n\t\t\t\t\t second line\n\t\t\t\t \t\t\'\'\'\n\t\t\t\tdef richStrings_03() {\n\t\t\t\t\t\'\'\'�IF false�foobar�ELSEIF false�foobar�ELSE�zonk�ENDIF�\'\'\'\n\t\t\t\t}\n\t\t\t\tdef richStrings_04() {\n\t\t\t\t\t\'\'\' �FOR a:\'1\'.toCharArray��FOR a2:\'1\'.toCharArray�foobar�ENDFOR��ENDFOR�\'\'\'\n\t\t\t\t}\n\t\t\t\tdef richStrings_05() {\n\t\t\t\t\t\'\'\'\n\t\t\t\t\t\t�FOR a:\'1\'.toCharArray�\n\t\t\t\t\t\t �FOR a2:\'12\'.toCharArray�foobar�ENDFOR�\n\t\t\t\t\t\t�ENDFOR�\n\t\t\t\t\t\'\'\'\n\t\t\t\t}\n\t\t\t}\n\t\t"); } catch (Throwable _e) { throw Exceptions.sneakyThrow(_e); } }
Example #3
Source File: AbstractScenarioRunner.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
@Override protected boolean isIgnored(final FrameworkMethod method) { if (method.getAnnotation(Ignore.class) != null) { return true; } if (method.getAnnotation(IgnoredBySmokeTest.class) != null) { return true; } return false; }
Example #4
Source File: RunnerBuilder.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
@Override protected IgnoredBuilder ignoredBuilder() { return new IgnoredBuilder() { @Override public Runner runnerForClass(Class<?> testClass) { if (testClass.getAnnotation(Ignore.class) != null || testClass.getAnnotation(IgnoredBySmokeTest.class) != null) return new IgnoredClassRunner(testClass); return null; } }; }
Example #5
Source File: AbstractTypeResolverTest.java From xtext-extras with Eclipse Public License 2.0 | 4 votes |
@IgnoredBySmokeTest("Pointless since the scenario is pretty much the same as above") @Test public void testFeatureCall_15_m() throws Exception { this.resolvesTo("newArrayList(newArrayList(\'\').map(String s|1).map(Integer e|e).map(Integer e|e).map(Integer e|e).map(Integer e|e)\n\t\t.map(Integer e|e).map(Integer e|e).map(Integer e|e).map(Integer e|e).map(Integer e|e).map(Integer e|e)\n\t\t.map(Integer e|e).map(Integer e|e).map(Integer e|e).map(Integer e|e).map(Integer e|e).map(Integer e|e)\n\t\t.map(Integer e|e).map(Integer e|e).map(Integer e|e).map(Integer e|e).map(Integer e|e).map(Integer e|e)\n\t\t.map(Integer e|e).map(Integer e|e).map(Integer e|e).map(Integer e|e).map(Integer e|e).map(Integer e|e)\n\t\t.map(Integer e|e).map(Integer e|e).map(Integer e|e).map(Integer e|e).map(Integer e|e).map(Integer e|e)\n\t\t.map(Integer e|e).map(Integer e|e).map(Integer e|e).map(Integer e|e).map(Integer e|e).map(Integer e|e)\n\t\t).map(iterable|iterable.size()).map(Integer e|e).map(Integer e|e).map(Integer e|e).map(Integer e|e)\n\t\t.map(Integer e|e).map(Integer e|e).map(Integer e|e).map(Integer e|e).map(Integer e|e).map(Integer e|e)\n\t\t.map(Integer e|e).map(Integer e|e).map(Integer e|e).map(Integer e|e).map(Integer e|e).map(Integer e|e)\n\t\t.map(Integer e|e).map(Integer e|e).map(Integer e|e).map(Integer e|e).map(Integer e|e).map(Integer e|e)\n\t\t.map(Integer e|e).map(Integer e|e).map(Integer e|e).map(Integer e|e).map(Integer e|e).map(Integer e|e)\n\t\t.map(Integer e|e).map(Integer e|e).map(Integer e|e).map(Integer e|e).map(Integer e|e).map(Integer e|e)\n\t\t.map(Integer e|e).map(Integer e|e).map(Integer e|e).map(Integer e|e).map(Integer e|e).map(Integer e|e)\n\t\t.map(Integer e|e).map(Integer e|e).map(Integer e|e).map(Integer e|e).head", "Integer"); }
Example #6
Source File: AbstractTypeResolverTest.java From xtext-extras with Eclipse Public License 2.0 | 4 votes |
@IgnoredBySmokeTest("Same as testFeatureCall_25_a") @Test public void testFeatureCall_25_b() throws Exception { this.resolvesTo("newArrayList(\'\').map(s|s.length + 1 * 5).map(b| b / 5 ).head", "Integer"); }
Example #7
Source File: AbstractTypeResolverTest.java From xtext-extras with Eclipse Public License 2.0 | 4 votes |
@IgnoredBySmokeTest("Same as testFeatureCall_25_a") @Test public void testFeatureCall_25_c() throws Exception { this.resolvesTo("newArrayList(\'\').map[ length + 1 * 5 ].map [ it / 5 ].head", "Integer"); }
Example #8
Source File: AbstractTypeResolverTest.java From xtext-extras with Eclipse Public License 2.0 | 4 votes |
@IgnoredBySmokeTest("Same as testFeatureCall_25_a") @Test public void testFeatureCall_25_d() throws Exception { this.resolvesTo("newArrayList(\'\').map[ length + 1 * 5 - length + 1 * 5 ].map [ it / 5 + 1 / it ].head", "Integer"); }