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 * Evgeny Mandrikov - initial API and implementation 11 * 12 *******************************************************************************/ 13import java.io.*; 14import org.codehaus.plexus.util.*; 15 16String buildLog = FileUtils.fileRead( new File( basedir, "build.log" ) ); 17if ( buildLog.indexOf( "Classes in bundle " ) < 0 || buildLog.indexOf(" do not match with execution data." ) < 0 ) { 18 throw new RuntimeException( "Warning 1 was not printed" ); 19} 20if ( buildLog.indexOf( "For report generation the same class files must be used as at runtime." ) < 0 ) { 21 throw new RuntimeException( "Warning 2 was not printed" ); 22} 23if ( buildLog.indexOf( "Execution data for class Example does not match." ) < 0 ) { 24 throw new RuntimeException( "Warning 3 was not printed" ); 25} 26