From 511461a129c86dc39845a3746cf35902aa153490 Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Wed, 7 Jan 2015 12:03:23 +0100 Subject: [PATCH] test framework: premature class initialization is the root of all evil --- platform/testFramework/src/com/intellij/TestCaseLoader.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/testFramework/src/com/intellij/TestCaseLoader.java b/platform/testFramework/src/com/intellij/TestCaseLoader.java index 0027755981ee..e4c047f3c118 100644 --- a/platform/testFramework/src/com/intellij/TestCaseLoader.java +++ b/platform/testFramework/src/com/intellij/TestCaseLoader.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2013 JetBrains s.r.o. + * Copyright 2000-2015 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -171,7 +171,7 @@ public class TestCaseLoader { public void loadTestCases(final Collection classNamesIterator) { for (String className : classNamesIterator) { try { - Class candidateClass = Class.forName(className); + Class candidateClass = Class.forName(className, false, getClass().getClassLoader()); addClassIfTestCase(candidateClass); } catch (ClassNotFoundException e) {