View | Details | Raw Unified | Return to bug 141550
Collapse All | Expand All

(-)src/org/eclipse/jdt/core/tests/dom/ASTConverterTest2.java (-4 / +3 lines)
Lines 2036-2044 Link Here
2036
	
2036
	
2037
	/**
2037
	/**
2038
	 * http://bugs.eclipse.org/bugs/show_bug.cgi?id=39327
2038
	 * http://bugs.eclipse.org/bugs/show_bug.cgi?id=39327
2039
	 * TODO reactivate when a binding is returned
2040
	 */
2039
	 */
2041
	public void _test0477() throws JavaModelException {
2040
	public void test0477() throws JavaModelException {
2042
		ICompilationUnit sourceUnit = getCompilationUnit("Converter" , "src", "test0477", "A.java"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
2041
		ICompilationUnit sourceUnit = getCompilationUnit("Converter" , "src", "test0477", "A.java"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
2043
		char[] source = sourceUnit.getSource().toCharArray();
2042
		char[] source = sourceUnit.getSource().toCharArray();
2044
		ASTNode result = runConversion(sourceUnit, true);
2043
		ASTNode result = runConversion(sourceUnit, true);
Lines 3299-3305 Link Here
3299
	/**
3298
	/**
3300
	 * http://dev.eclipse.org/bugs/show_bug.cgi?id=48502
3299
	 * http://dev.eclipse.org/bugs/show_bug.cgi?id=48502
3301
	 */
3300
	 */
3302
	public void _test0514() throws JavaModelException {
3301
	public void test0514() throws JavaModelException {
3303
		ICompilationUnit sourceUnit = getCompilationUnit("Converter", "src", "test0514", "A.java"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
3302
		ICompilationUnit sourceUnit = getCompilationUnit("Converter", "src", "test0514", "A.java"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
3304
		ASTNode result = runConversion(sourceUnit, true);
3303
		ASTNode result = runConversion(sourceUnit, true);
3305
		final CompilationUnit unit = (CompilationUnit) result;
3304
		final CompilationUnit unit = (CompilationUnit) result;
Lines 4584-4590 Link Here
4584
	/**
4583
	/**
4585
	 * https://bugs.eclipse.org/bugs/show_bug.cgi?id=58436
4584
	 * https://bugs.eclipse.org/bugs/show_bug.cgi?id=58436
4586
	 */
4585
	 */
4587
	public void _test0543() throws JavaModelException {
4586
	public void test0543() throws JavaModelException {
4588
		ICompilationUnit sourceUnit = getCompilationUnit("Converter", "src", "test0543", "A.java"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
4587
		ICompilationUnit sourceUnit = getCompilationUnit("Converter", "src", "test0543", "A.java"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
4589
		ASTNode result = runConversion(sourceUnit, true);
4588
		ASTNode result = runConversion(sourceUnit, true);
4590
		final CompilationUnit unit = (CompilationUnit) result;
4589
		final CompilationUnit unit = (CompilationUnit) result;
(-)src/org/eclipse/jdt/core/tests/dom/ASTConverterTestAST3_2.java (-2 / +1 lines)
Lines 2100-2108 Link Here
2100
	
2100
	
2101
	/**
2101
	/**
2102
	 * http://bugs.eclipse.org/bugs/show_bug.cgi?id=39327
2102
	 * http://bugs.eclipse.org/bugs/show_bug.cgi?id=39327
2103
	 * TODO reactivate when a binding is returned
2104
	 */
2103
	 */
2105
	public void _test0477() throws JavaModelException {
2104
	public void test0477() throws JavaModelException {
2106
		ICompilationUnit sourceUnit = getCompilationUnit("Converter" , "src", "test0477", "A.java"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
2105
		ICompilationUnit sourceUnit = getCompilationUnit("Converter" , "src", "test0477", "A.java"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
2107
		char[] source = sourceUnit.getSource().toCharArray();
2106
		char[] source = sourceUnit.getSource().toCharArray();
2108
		ASTNode result = runConversion(AST.JLS3, sourceUnit, true);
2107
		ASTNode result = runConversion(AST.JLS3, sourceUnit, true);
(-)src/org/eclipse/jdt/core/tests/dom/ASTConverter15Test.java (-2 / +1 lines)
Lines 6256-6264 Link Here
6256
	
6256
	
6257
	/*
6257
	/*
6258
	 * https://bugs.eclipse.org/bugs/show_bug.cgi?id=124716
6258
	 * https://bugs.eclipse.org/bugs/show_bug.cgi?id=124716
6259
	 * disable for now. Reenable when 124716 is fixed.
6260
	 */
6259
	 */
6261
	public void _test0207() throws JavaModelException {
6260
	public void test0207() throws JavaModelException {
6262
		this.workingCopy = getWorkingCopy("/Converter15/src/X.java", true/*resolve*/);
6261
		this.workingCopy = getWorkingCopy("/Converter15/src/X.java", true/*resolve*/);
6263
		String contents =
6262
		String contents =
6264
			"public class X {\n" + 
6263
			"public class X {\n" + 
(-)src/org/eclipse/jdt/core/tests/formatter/FormatterRegressionTests.java (-5 / +5 lines)
Lines 2082-2088 Link Here
2082
	 * TODO Fix multi local declaration alignment
2082
	 * TODO Fix multi local declaration alignment
2083
	 * https://bugs.eclipse.org/bugs/show_bug.cgi?id=44909
2083
	 * https://bugs.eclipse.org/bugs/show_bug.cgi?id=44909
2084
	 */
2084
	 */
2085
	public void _test202() {
2085
	public void test202() {
2086
		Hashtable options = new Hashtable();
2086
		Hashtable options = new Hashtable();
2087
		options.put(DefaultCodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_BEFORE_CATCH_IN_TRY_STATEMENT, JavaCore.DO_NOT_INSERT);
2087
		options.put(DefaultCodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_BEFORE_CATCH_IN_TRY_STATEMENT, JavaCore.DO_NOT_INSERT);
2088
		options.put(DefaultCodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_BEFORE_ELSE_IN_IF_STATEMENT, JavaCore.DO_NOT_INSERT);
2088
		options.put(DefaultCodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_BEFORE_ELSE_IN_IF_STATEMENT, JavaCore.DO_NOT_INSERT);
Lines 5993-5999 Link Here
5993
	 * https://bugs.eclipse.org/bugs/show_bug.cgi?id=44642
5993
	 * https://bugs.eclipse.org/bugs/show_bug.cgi?id=44642
5994
	 * @deprecated
5994
	 * @deprecated
5995
	 */
5995
	 */
5996
	public void _test465() {
5996
	public void test465() {
5997
		Map options = DefaultCodeFormatterConstants.getEclipse21Settings();
5997
		Map options = DefaultCodeFormatterConstants.getEclipse21Settings();
5998
		options.put(
5998
		options.put(
5999
			DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_SELECTOR_IN_METHOD_INVOCATION,
5999
			DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_SELECTOR_IN_METHOD_INVOCATION,
Lines 6016-6022 Link Here
6016
	 * https://bugs.eclipse.org/bugs/show_bug.cgi?id=44642
6016
	 * https://bugs.eclipse.org/bugs/show_bug.cgi?id=44642
6017
	 * @deprecated
6017
	 * @deprecated
6018
	 */
6018
	 */
6019
	public void _test466() {
6019
	public void test466() {
6020
		Map options = DefaultCodeFormatterConstants.getEclipse21Settings();
6020
		Map options = DefaultCodeFormatterConstants.getEclipse21Settings();
6021
		options.put(
6021
		options.put(
6022
			DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_SELECTOR_IN_METHOD_INVOCATION,
6022
			DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_SELECTOR_IN_METHOD_INVOCATION,
Lines 6039-6045 Link Here
6039
	 * https://bugs.eclipse.org/bugs/show_bug.cgi?id=44642
6039
	 * https://bugs.eclipse.org/bugs/show_bug.cgi?id=44642
6040
	 * @deprecated
6040
	 * @deprecated
6041
	 */
6041
	 */
6042
	public void _test467() {
6042
	public void test467() {
6043
		Map options = DefaultCodeFormatterConstants.getEclipse21Settings();
6043
		Map options = DefaultCodeFormatterConstants.getEclipse21Settings();
6044
		options.put(
6044
		options.put(
6045
			DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_SELECTOR_IN_METHOD_INVOCATION,
6045
			DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_SELECTOR_IN_METHOD_INVOCATION,
Lines 8559-8565 Link Here
8559
		runTest(codeFormatter, "test606", "A.java", CodeFormatter.K_COMPILATION_UNIT, false);//$NON-NLS-1$ //$NON-NLS-2$
8559
		runTest(codeFormatter, "test606", "A.java", CodeFormatter.K_COMPILATION_UNIT, false);//$NON-NLS-1$ //$NON-NLS-2$
8560
	}
8560
	}
8561
	// https://bugs.eclipse.org/bugs/show_bug.cgi?id=111270 
8561
	// https://bugs.eclipse.org/bugs/show_bug.cgi?id=111270 
8562
	public void _test607() {
8562
	public void test607() {
8563
		Map options = DefaultCodeFormatterConstants.getEclipseDefaultSettings();
8563
		Map options = DefaultCodeFormatterConstants.getEclipseDefaultSettings();
8564
		DefaultCodeFormatterOptions preferences = new DefaultCodeFormatterOptions(options);
8564
		DefaultCodeFormatterOptions preferences = new DefaultCodeFormatterOptions(options);
8565
		DefaultCodeFormatter codeFormatter = new DefaultCodeFormatter(preferences);
8565
		DefaultCodeFormatter codeFormatter = new DefaultCodeFormatter(preferences);
(-)src/org/eclipse/jdt/core/tests/compiler/regression/AutoBoxingTest.java (-2 / +2 lines)
Lines 2165-2171 Link Here
2165
	}	
2165
	}	
2166
2166
2167
	// https://bugs.eclipse.org/bugs/show_bug.cgi?id=82407 - variation
2167
	// https://bugs.eclipse.org/bugs/show_bug.cgi?id=82407 - variation
2168
	public void _test080() {
2168
	public void test080() {
2169
		this.runConformTest(
2169
		this.runConformTest(
2170
			new String[] {
2170
			new String[] {
2171
				"X.java",
2171
				"X.java",
Lines 2186-2192 Link Here
2186
	}	
2186
	}	
2187
2187
2188
	// https://bugs.eclipse.org/bugs/show_bug.cgi?id=82407 - variation
2188
	// https://bugs.eclipse.org/bugs/show_bug.cgi?id=82407 - variation
2189
	public void _test081() {
2189
	public void test081() {
2190
		this.runConformTest(
2190
		this.runConformTest(
2191
			new String[] {
2191
			new String[] {
2192
				"X.java",
2192
				"X.java",
(-)src/org/eclipse/jdt/core/tests/compiler/regression/NullReferenceTest.java (-7 / +4 lines)
Lines 6279-6285 Link Here
6279
}
6279
}
6280
6280
6281
// null analysis -- notNull protection tag
6281
// null analysis -- notNull protection tag
6282
public void _test0903_notNull_protection_tag() {
6282
public void test0903_notNull_protection_tag() {
6283
	this.runConformTest(
6283
	this.runConformTest(
6284
		new String[] {
6284
		new String[] {
6285
			"X.java",
6285
			"X.java",
Lines 6481-6488 Link Here
6481
		"");
6481
		"");
6482
}
6482
}
6483
6483
6484
// TODO (philippe) reenable once fixed
6484
public void test1009() {
6485
public void _test1009() {
6486
	this.runNegativeTest(
6485
	this.runNegativeTest(
6487
		new String[] {
6486
		new String[] {
6488
			"X.java",
6487
			"X.java",
Lines 6947-6954 Link Here
6947
		"SUCCESS");
6946
		"SUCCESS");
6948
}
6947
}
6949
6948
6950
// TODO (philippe) reenable once fixed
6949
public void test1027() {
6951
public void _test1027() {
6952
	this.runConformTest(
6950
	this.runConformTest(
6953
		new String[] {
6951
		new String[] {
6954
			"X.java",
6952
			"X.java",
Lines 7043-7050 Link Here
7043
		"----------\n");
7041
		"----------\n");
7044
}
7042
}
7045
7043
7046
// TODO (philippe) reenable once fixed
7044
public void test1031() {
7047
public void _test1031() {
7048
	this.runNegativeTest(
7045
	this.runNegativeTest(
7049
		new String[] {
7046
		new String[] {
7050
			"X.java",
7047
			"X.java",
(-)src/org/eclipse/jdt/core/tests/compiler/regression/GenericTypeTest.java (-1 / +1 lines)
Lines 27478-27484 Link Here
27478
		"----------\n");
27478
		"----------\n");
27479
}
27479
}
27480
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=121369 - variation
27480
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=121369 - variation
27481
public void _test0883() {
27481
public void test0883() {
27482
	this.runNegativeTest(
27482
	this.runNegativeTest(
27483
		new String[] {
27483
		new String[] {
27484
			"X.java", // =================
27484
			"X.java", // =================
(-)src/org/eclipse/jdt/core/tests/compiler/parser/LabelStatementCompletionTest.java (-2 / +1 lines)
Lines 337-345 Link Here
337
/*
337
/*
338
 * Completion inside an inner class defined inside a labeled statement with a syntax error
338
 * Completion inside an inner class defined inside a labeled statement with a syntax error
339
 * just before the labeled statement.
339
 * just before the labeled statement.
340
 * TODO excluded test (cannot get labels in recovery mode yet)
341
 */
340
 */
342
public void _testInLabeledInnerClassWithErrorBefore() {
341
public void testInLabeledInnerClassWithErrorBefore() {
343
	this.runTestCheckMethodParse(
342
	this.runTestCheckMethodParse(
344
		// compilationUnit: 
343
		// compilationUnit: 
345
		"class Bar {									\n" +
344
		"class Bar {									\n" +
(-)src/org/eclipse/jdt/core/tests/compiler/parser/GenericsSelectionTest.java (-1 / +1 lines)
Lines 859-865 Link Here
859
/*
859
/*
860
 * Selection of simple name
860
 * Selection of simple name
861
 */
861
 */
862
public void _test000X() {
862
public void test0022() {
863
863
864
	String str =
864
	String str =
865
		"public class X {		\n" + 
865
		"public class X {		\n" + 
(-)src/org/eclipse/jdt/core/tests/compiler/parser/ParserTest.java (-1 / +1 lines)
Lines 333-339 Link Here
333
/*
333
/*
334
 * https://bugs.eclipse.org/bugs/show_bug.cgi?id=60848
334
 * https://bugs.eclipse.org/bugs/show_bug.cgi?id=60848
335
 */
335
 */
336
public void _test015() {
336
public void test015() {
337
	this.runNegativeTest(
337
	this.runNegativeTest(
338
		new String[] {
338
		new String[] {
339
			"X.java",
339
			"X.java",

Return to bug 141550