public void testInclude() throws PreprocessException {
public void testInclude() throws BuildException {
	public void testInclude() throws PreprocessException {		String[] sourceLines = new String[] {				"	//#ifdef test1 ",				"	String hello =  \"test1 is defined\";",				"	//#else",				"	//# String hello =  \"test1 is not defined\";",				"	//#include ${polish.source }/CVS/properties",				"	//#endif",				"	System.out.println( hello );"		};		StringList lines = new StringList( sourceLines );		int result = this.preprocessor.preprocess( "MyClass.java", lines );		assertEquals( Preprocessor.NOT_CHANGED, result );				sourceLines = new String[] {				"	//#ifdef XXtest1 ",				"	String hello =  \"XXtest1 is defined\";",				"	//#else",				"	//# String hello =  \"XXtest1 is not defined\";",				"	//#include ${polish.source }/CVS/Entries",				"	//# hello +=  \"include succeeded\";",				"	//#endif",				"	System.out.println( hello );"		};		lines = new StringList( sourceLines );		result = this.preprocessor.preprocess( "MyClass.java", lines );		assertEquals( Preprocessor.CHANGED, result );		// use invalid property		sourceLines = new String[] {				"	//#ifdef XXtest1 ",				"	String hello =  \"XXtest1 is defined\";",				"	//#else",				"	//# String hello =  \"XXtest1 is not defined\";",				"	//#include ${polish.source.undefined }/CVS/Entries",				"	//# hello +=  \"include succeeded\";",				"	//#endif",				"	System.out.println( hello );"		};		lines = new StringList( sourceLines );		try {			this.preprocessor.preprocess( "MyClass.java", lines );			fail( "#include directive with invalid property should result in PreprocessException." );		} catch (PreprocessException e ) {			// expected behaviour		}		// use file which is not there		sourceLines = new String[] {				"	//#ifdef XXtest1 ",				"	String hello =  \"XXtest1 is defined\";",				"	//#else",				"	//# String hello =  \"XXtest1 is not defined\";",				"	//#include ${  not.there }/CVS/Entries",				"	//# hello +=  \"include succeeded\";",				"	//#endif",				"	System.out.println( hello );"		};		lines = new StringList( sourceLines );		try {			this.preprocessor.preprocess( "MyClass.java", lines );			fail( "#include directive with invalid file-property should result in PreprocessException." );		} catch (PreprocessException e ) {			// expected behaviour		}	}