assertTrue("" + nExpected + " imports expected, is " + nImports, nImports == nExpected);
if (nExpected != nImports) { StringBuffer buf= new StringBuffer(); buf.append(nExpected).append(" imports expected, is ").append(nImports).append("\n"); buf.append("expected:\n"); for (int i= 0; i < expected.length; i++) { buf.append(expected[i]).append("\n"); } buf.append("actual:\n"); for (int i= 0; i < imports.length; i++) { buf.append(imports[i]).append("\n"); } assertTrue(buf.toString(), false); }
	private void checkImports(String[] expected, IImportDeclaration[] imports) {		int nImports= imports.length;		int nExpected= expected.length;		assertTrue("" + nExpected + " imports expected, is " + nImports, nImports == nExpected);		for (int i= 0; i < nExpected; i++) {			String impName= expected[i];			assertTrue("import " + impName + " expected", nameContained(impName, imports));		}	}