1/******************************************************************************* 2 * Copyright (c) 2009, 2021 Mountainminds GmbH & Co. KG and Contributors 3 * This program and the accompanying materials are made available under 4 * the terms of the Eclipse Public License 2.0 which is available at 5 * http://www.eclipse.org/legal/epl-2.0 6 * 7 * SPDX-License-Identifier: EPL-2.0 8 * 9 * Contributors: 10 * Marc R. Hoffmann - initial API and implementation 11 * 12 *******************************************************************************/ 13import java.io.*; 14 15File htmlReportFile = new File( basedir, "target/site/jacoco/index.html" ); 16if ( htmlReportFile.isFile() ) { 17 throw new RuntimeException( "Unexpected HTML report was created" ); 18} 19 20File xmlReportFile = new File( basedir, "target/site/jacoco/jacoco.xml" ); 21if ( !xmlReportFile.isFile() ) { 22 throw new RuntimeException( "XML report was not created" ); 23} 24 25File csvReportFile = new File( basedir, "target/site/jacoco/jacoco.csv" ); 26if ( !csvReportFile.isFile() ) { 27 throw new RuntimeException( "CSV report was not created" ); 28} 29