@@ -0,0 +1,1679 @@
+/*%0A * Copyright 2015-2016 the original author or authors.%0A *%0A * All rights reserved. This program and the accompanying materials are%0A * made available under the terms of the Eclipse Public License v1.0 which%0A * accompanies this distribution and is available at%0A *%0A * http://www.eclipse.org/legal/epl-v10.html%0A */%0A%0Apackage org.junit.jupiter.engine.vintage.rulesupport;%0A%0Aimport org.junit.Rule;%0Aimport org.junit.jupiter.api.AfterAll;%0Aimport org.junit.jupiter.api.Test;%0Aimport org.junit.jupiter.api.extension.ExtendWith;%0Aimport org.junit.rules.ExternalResource;%0A%0A@ExtendWith(ExternalResourceLegacySupport.class)%0Apublic class MultipleExternalResourceLegacySupportTests %7B%0A%0A%09private static boolean beforeOfRule1WasExecuted = false;%0A%09private static boolean beforeOfRule2WasExecuted = false;%0A%0A%09private static boolean afterOfRule1WasExecuted = false;%0A%09private static boolean afterOfRule2WasExecuted = false;%0A%0A%09@Rule%0A%09public ExternalResource resource1 = new ExternalResource() %7B%0A%09%09@Override%0A%09%09protected void before() throws Throwable %7B%0A%09%09%09beforeOfRule1WasExecuted = true;%0A%09%09%7D%0A%0A%09%09@Override%0A%09%09protected void after() %7B%0A%09%09%09afterOfRule1WasExecuted = true;%0A%09%09%7D%0A%09%7D;%0A%0A%09@Rule%0A%09public ExternalResource resource2 = new ExternalResource() %7B%0A%09%09@Override%0A%09%09protected void before() throws Throwable %7B%0A%09%09%09beforeOfRule2WasExecuted = true;%0A%09%09%7D%0A%0A%09%09@Override%0A%09%09protected void after() %7B%0A%09%09%09afterOfRule2WasExecuted = true;%0A%09%09%7D%0A%09%7D;%0A%0A%09@Test%0A%09void beforeMethodsOfbothRulesWereExecuted() %7B%0A%09%09assert beforeOfRule1WasExecuted;%0A%09%09//%09%09assert beforeOfRule2WasExecuted;%0A%09%7D%0A%0A%09@AfterAll%0A%09static void afterMethodsOfBothRulesWereExecuted() %7B%0A%09%09assert afterOfRule1WasExecuted;%0A%09%09//        assert afterOfRule2WasExecuted;%0A%09%7D%0A%0A%7D%0A

Support rules of type ExternalResource