expected[i++]= buf.toString();  buf= new StringBuffer(); buf.append("package test1;\n"); buf.append("import java.io.File;\n"); buf.append("public class F <Fixe> {\n"); buf.append("    void foo() {\n"); buf.append("        char ch= Fixe.pathSeparatorChar;\n"); buf.append("    }\n"); buf.append("}\n"); expected[i++]= buf.toString();  buf= new StringBuffer(); buf.append("package test1;\n"); buf.append("import java.io.File;\n"); buf.append("public class F {\n"); buf.append("    <Fixe> void foo() {\n"); buf.append("        char ch= Fixe.pathSeparatorChar;\n"); buf.append("    }\n"); buf.append("}\n"); expected[i++]= buf.toString();
expected[i++]= buf.toString();
	public void testVarAndTypeRef() throws Exception {		IPackageFragment pack1= fSourceFolder.createPackageFragment("test1", false, null);		StringBuffer buf= new StringBuffer();				buf= new StringBuffer();		buf.append("package test1;\n");		buf.append("import java.io.File;\n");		buf.append("public class F {\n");		buf.append("    void foo() {\n");		buf.append("        char ch= Fixe.pathSeparatorChar;\n");		buf.append("    }\n");		buf.append("}\n");		ICompilationUnit cu1= pack1.createCompilationUnit("F.java", buf.toString(), false, null);				CompilationUnit astRoot= getASTRoot(cu1);		ArrayList proposals= collectCorrections(cu1, astRoot);		assertNumberOfProposals(proposals, 10);		assertCorrectLabels(proposals);		int i= 0;		String[] expected= new String[proposals.size()];				buf= new StringBuffer();		buf.append("package test1;\n");		buf.append("import java.io.File;\n");		buf.append("public class F {\n");		buf.append("    private Object Fixe;\n");		buf.append("\n");		buf.append("    void foo() {\n");		buf.append("        char ch= Fixe.pathSeparatorChar;\n");		buf.append("    }\n");		buf.append("}\n");		expected[i++]= buf.toString();						buf= new StringBuffer();		buf.append("package test1;\n");		buf.append("import java.io.File;\n");		buf.append("public class F {\n");		buf.append("    void foo() {\n");		buf.append("        Object Fixe;\n");							buf.append("        char ch= Fixe.pathSeparatorChar;\n");		buf.append("    }\n");		buf.append("}\n");		expected[i++]= buf.toString();				buf= new StringBuffer();		buf.append("package test1;\n");		buf.append("import java.io.File;\n");		buf.append("public class F {\n");		buf.append("    void foo(Object Fixe) {\n");		buf.append("        char ch= Fixe.pathSeparatorChar;\n");		buf.append("    }\n");		buf.append("}\n");		expected[i++]= buf.toString();				buf= new StringBuffer();		buf.append("package test1;\n");		buf.append("import java.io.File;\n");		buf.append("public class F {\n");		buf.append("    private static final String Fixe = null;\n");		buf.append("\n");		buf.append("    void foo() {\n");		buf.append("        char ch= Fixe.pathSeparatorChar;\n");		buf.append("    }\n");		buf.append("}\n");		expected[i++]= buf.toString();				buf= new StringBuffer();		buf.append("package test1;\n");		buf.append("\n");		buf.append("public class Fixe {\n");		buf.append("\n");		buf.append("}\n");		expected[i++]= buf.toString();				buf= new StringBuffer();		buf.append("package test1;\n");		buf.append("\n");		buf.append("public interface Fixe {\n");		buf.append("\n");		buf.append("}\n");		expected[i++]= buf.toString();				buf= new StringBuffer();		buf.append("package test1;\n");		buf.append("\n");		buf.append("public enum Fixe {\n");		buf.append("\n");		buf.append("}\n");		expected[i++]= buf.toString();				buf= new StringBuffer();		buf.append("package test1;\n");		buf.append("import java.io.File;\n");		buf.append("public class F {\n");		buf.append("    void foo() {\n");		buf.append("        char ch= File.pathSeparatorChar;\n");		buf.append("    }\n");		buf.append("}\n");		expected[i++]= buf.toString();				buf= new StringBuffer();		buf.append("package test1;\n");		buf.append("import java.io.File;\n");		buf.append("public class F <Fixe> {\n");		buf.append("    void foo() {\n");		buf.append("        char ch= Fixe.pathSeparatorChar;\n");		buf.append("    }\n");		buf.append("}\n");		expected[i++]= buf.toString();				buf= new StringBuffer();		buf.append("package test1;\n");		buf.append("import java.io.File;\n");		buf.append("public class F {\n");		buf.append("    <Fixe> void foo() {\n");		buf.append("        char ch= Fixe.pathSeparatorChar;\n");		buf.append("    }\n");		buf.append("}\n");		expected[i++]= buf.toString();				String[] previews= new String[proposals.size()];		for (i= 0; i < previews.length; i++) {			Object curr= proposals.get(i);			if (curr instanceof NewCUCompletionUsingWizardProposal) {				previews[i]= getWizardPreviewContent((NewCUCompletionUsingWizardProposal) curr);			} else {				previews[i]= getPreviewContent((CUCorrectionProposal) curr);			}		}		assertEqualStringsIgnoreOrder(previews, expected);		}