proposal= (CUCorrectionProposal) proposals.get(1); String preview2= proposal.getCompilationUnitChange().getPreviewContent();  buf= new StringBuffer(); buf.append("package test1;\n"); buf.append("public class E {\n"); buf.append("    public E(int i, boolean b) {\n"); buf.append("        this(i, true);\n"); buf.append("    }\n"); buf.append("}\n"); String expected2= buf.toString();  proposal= (CUCorrectionProposal) proposals.get(2); String preview3= proposal.getCompilationUnitChange().getPreviewContent();  buf= new StringBuffer(); buf.append("package test1;\n"); buf.append("public class E {\n"); buf.append("    public E(int i) {\n"); buf.append("        this(i);\n"); buf.append("    }\n"); buf.append("}\n"); String expected3= buf.toString();  assertEqualStringsIgnoreOrder(new String[] { preview1, preview2, preview3 }, new String[] { expected1, expected2, expected3 });
assertEqualString(preview1, expected1);
	public void testConstructorInvocation() throws Exception {		IPackageFragment pack1= fSourceFolder.createPackageFragment("test1", false, null);		StringBuffer buf= new StringBuffer();		buf.append("package test1;\n");		buf.append("public class E {\n");		buf.append("    public E(int i) {\n");		buf.append("        this(i, true);\n");		buf.append("    }\n");		buf.append("}\n");		ICompilationUnit cu1=pack1.createCompilationUnit("E.java", buf.toString(), false, null);				CompilationUnit astRoot= AST.parseCompilationUnit(cu1, true);		ArrayList proposals= collectCorrections(cu1, astRoot);		assertNumberOf("proposals", proposals.size(), 3);		assertCorrectLabels(proposals);		CUCorrectionProposal proposal= (CUCorrectionProposal) proposals.get(0);		String preview1= proposal.getCompilationUnitChange().getPreviewContent();		buf= new StringBuffer();		buf.append("package test1;\n");		buf.append("public class E {\n");		buf.append("    public E(int i) {\n");		buf.append("        this(i, true);\n");		buf.append("    }\n");		buf.append("\n");		buf.append("    public E(int i, boolean b) {\n");		buf.append("    }\n");				buf.append("}\n");		String expected1= buf.toString();				proposal= (CUCorrectionProposal) proposals.get(1);		String preview2= proposal.getCompilationUnitChange().getPreviewContent();		buf= new StringBuffer();		buf.append("package test1;\n");		buf.append("public class E {\n");		buf.append("    public E(int i, boolean b) {\n");		buf.append("        this(i, true);\n");		buf.append("    }\n");		buf.append("}\n");		String expected2= buf.toString();				proposal= (CUCorrectionProposal) proposals.get(2);		String preview3= proposal.getCompilationUnitChange().getPreviewContent();		buf= new StringBuffer();		buf.append("package test1;\n");		buf.append("public class E {\n");		buf.append("    public E(int i) {\n");		buf.append("        this(i);\n");		buf.append("    }\n");		buf.append("}\n");		String expected3= buf.toString();						assertEqualStringsIgnoreOrder(new String[] { preview1, preview2, preview3 }, new String[] { expected1, expected2, expected3 });				}