1*7e63c127SSorin Basca/******************************************************************************* 2*7e63c127SSorin Basca * Copyright (c) 2009, 2021 Mountainminds GmbH & Co. KG and Contributors 3*7e63c127SSorin Basca * This program and the accompanying materials are made available under 4*7e63c127SSorin Basca * the terms of the Eclipse Public License 2.0 which is available at 5*7e63c127SSorin Basca * http://www.eclipse.org/legal/epl-2.0 6*7e63c127SSorin Basca * 7*7e63c127SSorin Basca * SPDX-License-Identifier: EPL-2.0 8*7e63c127SSorin Basca * 9*7e63c127SSorin Basca * Contributors: 10*7e63c127SSorin Basca * Evgeny Mandrikov - initial API and implementation 11*7e63c127SSorin Basca * 12*7e63c127SSorin Basca *******************************************************************************/ 13*7e63c127SSorin Bascaimport java.io.*; 14*7e63c127SSorin Bascaimport org.codehaus.plexus.util.*; 15*7e63c127SSorin Basca 16*7e63c127SSorin BascaString buildLog = FileUtils.fileRead( new File( basedir, "build.log" ) ); 17*7e63c127SSorin Bascaif ( buildLog.indexOf( "Classes in bundle " ) < 0 || buildLog.indexOf(" do not match with execution data." ) < 0 ) { 18*7e63c127SSorin Basca throw new RuntimeException( "Warning 1 was not printed" ); 19*7e63c127SSorin Basca} 20*7e63c127SSorin Bascaif ( buildLog.indexOf( "For report generation the same class files must be used as at runtime." ) < 0 ) { 21*7e63c127SSorin Basca throw new RuntimeException( "Warning 2 was not printed" ); 22*7e63c127SSorin Basca} 23*7e63c127SSorin Bascaif ( buildLog.indexOf( "Execution data for class Example does not match." ) < 0 ) { 24*7e63c127SSorin Basca throw new RuntimeException( "Warning 3 was not printed" ); 25*7e63c127SSorin Basca} 26