@@ -0,0 +1,1095 @@
+/*%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.extension.ExtendWith;%0Aimport org.junit.rules.ErrorCollector;%0A%0A@ExtendWith(VerifierSupport.class)%0Apublic class VerifierSupportForErrorCollectorFieldTests %7B%0A%0A%09@Rule%0A%09public ErrorCollector collector = new ErrorCollector();%0A%0A%09// TODO: this test does expose the correct behavior%0A%09// - is there a way to formalize this in junit 5 without failing the test?%0A%09// the expected org.junit.internal.runners.model.MultipleFailureException is only thrown%0A%09// after the test method itself...%0A%09// @Test%0A%09void addingTwoThrowablesToErrorCollectorFailsLate() %7B%0A%09%09collector.addError(new Throwable(%22first thing went wrong%22));%0A%09%09collector.addError(new Throwable(%22second thing went wrong%22));%0A%09%7D%0A%0A%7D%0A

Add integration test for Verifier-rules using ErrorCollector example from JUnit 4