Skip to content

Commit 0d959e5

Browse files
authored
Merge pull request #274 from gerdleon/master
#273 Sets the system property to disable the language version caching
2 parents 6b81cd9 + a8d0160 commit 0d959e5

File tree

1 file changed

+4
-0
lines changed
  • com.avaloq.tools.ddk.xtext.test.core/src/com/avaloq/tools/ddk/xtext/test

1 file changed

+4
-0
lines changed

com.avaloq.tools.ddk.xtext.test.core/src/com/avaloq/tools/ddk/xtext/test/AbstractTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ public abstract class AbstractTest {
6262

6363
private static final String HIGH_LATENCY_PROPERTY = "com.avaloq.tools.hl.supported";
6464

65+
private static final String LANGUAGE_VERSION_CACHING_PROPERTY = "com.avaloq.tools.LanguageConfigCaching";
66+
6567
private static Map<Class<? extends AbstractTest>, TestInformation> testInformationMap = new HashMap<Class<? extends AbstractTest>, TestInformation>();
6668

6769
@Rule
@@ -175,6 +177,7 @@ public final void after() {
175177
protected void beforeAllTests() {
176178
// check method annotations to ensure test framework policies
177179
System.setProperty(HIGH_LATENCY_PROPERTY, Boolean.FALSE.toString());
180+
System.setProperty(LANGUAGE_VERSION_CACHING_PROPERTY, Boolean.FALSE.toString());
178181
enforceAnnotationPolicies();
179182
getTestProjectManager().setup(ImmutableList.<TestSource> of());
180183
registerRequiredSources();
@@ -188,6 +191,7 @@ protected void beforeAllTests() {
188191
*/
189192
protected void afterAllTests() {
190193
getTestProjectManager().teardown();
194+
System.clearProperty(LANGUAGE_VERSION_CACHING_PROPERTY);
191195
System.setProperty(HIGH_LATENCY_PROPERTY, Boolean.TRUE.toString());
192196
}
193197

0 commit comments

Comments
 (0)