Lines 6869-6872
Link Here
|
6869 |
expectedFullUnitToString, |
6869 |
expectedFullUnitToString, |
6870 |
expectedCompletionDietUnitToString, testName); |
6870 |
expectedCompletionDietUnitToString, testName); |
6871 |
} |
6871 |
} |
|
|
6872 |
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=80339 |
6873 |
public void test115() { |
6874 |
String s = |
6875 |
"public interface Test {\n"+ |
6876 |
" public void myMethod()\n"+ |
6877 |
"}\n"; |
6878 |
|
6879 |
String expectedDietUnitToString = |
6880 |
"public interface Test {\n" + |
6881 |
" public void myMethod() {\n" + |
6882 |
" }\n" + |
6883 |
"}\n"; |
6884 |
|
6885 |
String expectedDietPlusBodyUnitToString = |
6886 |
"public interface Test {\n" + |
6887 |
" public void myMethod() {\n" + |
6888 |
" }\n" + |
6889 |
"}\n"; |
6890 |
|
6891 |
String expectedDietPlusBodyPlusStatementsRecoveryUnitToString = |
6892 |
"public interface Test {\n" + |
6893 |
" public void myMethod() {\n" + |
6894 |
" }\n" + |
6895 |
"}\n"; |
6896 |
|
6897 |
String expectedFullUnitToString = expectedDietUnitToString; |
6898 |
|
6899 |
String expectedCompletionDietUnitToString = |
6900 |
expectedDietUnitToString; |
6901 |
|
6902 |
String testName = "test foreach toString"; |
6903 |
checkParse( |
6904 |
s.toCharArray(), |
6905 |
expectedDietUnitToString, |
6906 |
expectedDietPlusBodyUnitToString, |
6907 |
expectedDietPlusBodyPlusStatementsRecoveryUnitToString, |
6908 |
expectedFullUnitToString, |
6909 |
expectedCompletionDietUnitToString, testName); |
6910 |
} |
6911 |
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=80339 |
6912 |
public void test116() { |
6913 |
String s = |
6914 |
"public interface Test {\n"+ |
6915 |
" public void myMethod()\n"+ |
6916 |
" System.out.println();\n"+ |
6917 |
"}\n"; |
6918 |
|
6919 |
String expectedDietUnitToString = |
6920 |
"public interface Test {\n" + |
6921 |
" public void myMethod() {\n" + |
6922 |
" }\n" + |
6923 |
"}\n"; |
6924 |
|
6925 |
String expectedDietPlusBodyUnitToString = |
6926 |
"public interface Test {\n" + |
6927 |
" public void myMethod() {\n" + |
6928 |
" System.out.println();\n" + |
6929 |
" }\n" + |
6930 |
"}\n"; |
6931 |
|
6932 |
String expectedDietPlusBodyPlusStatementsRecoveryUnitToString = |
6933 |
"public interface Test {\n" + |
6934 |
" public void myMethod() {\n" + |
6935 |
" System.out.println();\n" + |
6936 |
" }\n" + |
6937 |
"}\n"; |
6938 |
|
6939 |
String expectedFullUnitToString = expectedDietUnitToString; |
6940 |
|
6941 |
String expectedCompletionDietUnitToString = |
6942 |
expectedDietUnitToString; |
6943 |
|
6944 |
String testName = "test foreach toString"; |
6945 |
checkParse( |
6946 |
s.toCharArray(), |
6947 |
expectedDietUnitToString, |
6948 |
expectedDietPlusBodyUnitToString, |
6949 |
expectedDietPlusBodyPlusStatementsRecoveryUnitToString, |
6950 |
expectedFullUnitToString, |
6951 |
expectedCompletionDietUnitToString, testName); |
6952 |
} |
6872 |
} |
6953 |
} |