Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 27621 Details for
Bug 110956
Failing test case after fixing bug 109963 in head.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Fix
fix_110956.txt (text/plain), 6.08 KB, created by
Benno Baumgartner
on 2005-09-28 12:14:11 EDT
(
hide
)
Description:
Fix
Filename:
MIME Type:
Creator:
Benno Baumgartner
Created:
2005-09-28 12:14:11 EDT
Size:
6.08 KB
patch
obsolete
>Index: ui/org/eclipse/jdt/ui/tests/quickfix/AssistQuickFixTest.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/AssistQuickFixTest.java,v >retrieving revision 1.61 >diff -u -r1.61 AssistQuickFixTest.java >--- ui/org/eclipse/jdt/ui/tests/quickfix/AssistQuickFixTest.java 23 Sep 2005 13:43:34 -0000 1.61 >+++ ui/org/eclipse/jdt/ui/tests/quickfix/AssistQuickFixTest.java 28 Sep 2005 16:09:27 -0000 >@@ -4214,12 +4214,8 @@ > expected1.append(" int y = 1;\n"); > expected1.append(" switch (y) {\n"); > expected1.append(" case 1:\n"); >- >- expected1.append(" final int e4 = 9, e5 = 0;\n"); >-// not as expected because of bug 109963 >-// expected1.append(" final int e4 = 9;\n"); >-// expected1.append(" int e5 = 0;\n"); >- >+ expected1.append(" final int e4 = 9;\n"); >+ expected1.append(" int e5 = 0;\n"); > expected1.append(" Runnable runnable = new Runnable() {\n"); > expected1.append(" public void run() {\n"); > expected1.append(" System.out.println(e4);\n"); >@@ -4233,58 +4229,57 @@ > assertExpectedExistInProposals(proposals, new String[] {expected1.toString()}); > } > >-//Fails because of bug 109963 >-// public void testSurroundWithRunnable26() 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 void foo() {\n"); >-// buf.append(" int y = 1;\n"); >-// buf.append(" switch (y) {\n"); >-// buf.append(" case 1:\n"); >-// buf.append(" int e4 = 9, e5 = 0;\n"); >-// buf.append(" System.out.println(e4);\n"); >-// buf.append(" e5++;\n"); >-// buf.append(" default:\n"); >-// buf.append(" }\n"); >-// buf.append(" }\n"); >-// buf.append("}\n"); >-// ICompilationUnit cu= pack1.createCompilationUnit("E.java", buf.toString(), false, null); >-// >-// StringBuffer selection= new StringBuffer(); >-// selection.append(" int e4 = 9, e5 = 0;\n"); >-// selection.append(" System.out.println(e4);\n"); >-// >-// AssistContext context= getCorrectionContext(cu, buf.toString().indexOf(selection.toString()), selection.toString().length()); >-// List proposals= collectAssists(context, false); >-// >-// assertNumberOfProposals(proposals, 9); >-// assertCorrectLabels(proposals); >-// >-// StringBuffer expected1= new StringBuffer(); >-// expected1.append("package test1;\n"); >-// expected1.append("public class E {\n"); >-// expected1.append(" public void foo() {\n"); >-// expected1.append(" int y = 1;\n"); >-// expected1.append(" switch (y) {\n"); >-// expected1.append(" case 1:\n"); >-// expected1.append(" int e5;\n"); >-// expected1.append(" Runnable runnable = new Runnable() {\n"); >-// expected1.append(" public void run() {\n"); >-// expected1.append(" int e4 = 9;\n"); >-// expected1.append(" e5 = 0;\n"); >-// expected1.append(" System.out.println(e4);\n"); >-// expected1.append(" }\n"); >-// expected1.append(" };\n"); >-// expected1.append(" e5++;\n"); >-// expected1.append(" default:\n"); >-// expected1.append(" }\n"); >-// expected1.append(" }\n"); >-// expected1.append("}\n"); >-// assertExpectedExistInProposals(proposals, new String[] {expected1.toString()}); >-// } >+ public void testSurroundWithRunnable26() 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 void foo() {\n"); >+ buf.append(" int y = 1;\n"); >+ buf.append(" switch (y) {\n"); >+ buf.append(" case 1:\n"); >+ buf.append(" int e4 = 9, e5 = 0;\n"); >+ buf.append(" System.out.println(e4);\n"); >+ buf.append(" e5++;\n"); >+ buf.append(" default:\n"); >+ buf.append(" }\n"); >+ buf.append(" }\n"); >+ buf.append("}\n"); >+ ICompilationUnit cu= pack1.createCompilationUnit("E.java", buf.toString(), false, null); >+ >+ StringBuffer selection= new StringBuffer(); >+ selection.append(" int e4 = 9, e5 = 0;\n"); >+ selection.append(" System.out.println(e4);\n"); >+ >+ AssistContext context= getCorrectionContext(cu, buf.toString().indexOf(selection.toString()), selection.toString().length()); >+ List proposals= collectAssists(context, false); >+ >+ assertNumberOfProposals(proposals, 9); >+ assertCorrectLabels(proposals); >+ >+ StringBuffer expected1= new StringBuffer(); >+ expected1.append("package test1;\n"); >+ expected1.append("public class E {\n"); >+ expected1.append(" public void foo() {\n"); >+ expected1.append(" int y = 1;\n"); >+ expected1.append(" switch (y) {\n"); >+ expected1.append(" case 1:\n"); >+ expected1.append(" int e5;\n"); >+ expected1.append(" Runnable runnable = new Runnable() {\n"); >+ expected1.append(" public void run() {\n"); >+ expected1.append(" int e4 = 9;\n"); >+ expected1.append(" e5 = 0;\n"); >+ expected1.append(" System.out.println(e4);\n"); >+ expected1.append(" }\n"); >+ expected1.append(" };\n"); >+ expected1.append(" e5++;\n"); >+ expected1.append(" default:\n"); >+ expected1.append(" }\n"); >+ expected1.append(" }\n"); >+ expected1.append("}\n"); >+ assertExpectedExistInProposals(proposals, new String[] {expected1.toString()}); >+ } > > public void testSurroundWithRunnable27() throws Exception { >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 110956
: 27621