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 178872 Details for
Bug 325289
[formatter]org.eclipse.jdt.core.JavaCodeFormatter behaves in a non-GUI compatible way for xml preferences
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Log of test case output that shows differences in formatting
testcase.log (text/x-log), 2.01 KB, created by
Misha Koshelev
on 2010-09-14 15:59:31 EDT
(
hide
)
Description:
Log of test case output that shows differences in formatting
Filename:
MIME Type:
Creator:
Misha Koshelev
Created:
2010-09-14 15:59:31 EDT
Size:
2.01 KB
patch
obsolete
>misha@misha-d630:~/tmp/bug$ cat formatter.xml | grep setting | sed 's/<setting id="//' | sed 's/" value="/=/' | sed 's@"/>@@' > formatter.asprefs >misha@misha-d630:~/tmp/bug$ cp Test.java.orig Test.java && ~/opt/eclipse/eclipse -nosplash -application org.eclipse.jdt.core.JavaCodeFormatter -verbose -config formatter.xml Test.java && cat Test.java >Configuration Name: formatter.xml >Starting format job ... >Formatting: /home/misha/tmp/bug/Test.java >Done. >public class Test { > > public void setupModelForModule_shouldNotOverrideExcludePrefixButConcatenate() throws Exception { > //given > GlobalPropertyPortletController portletController = new GlobalPropertyPortletController(); > Map<String, Object> model = new HashMap<String, Object>(); > > //when > String forModule = "file"; > String excludePrefix = "file.custom"; > model.put("forModule", forModule); > model.put("excludePrefix", excludePrefix); > > //then > portletController.setupModelForModule(model); > Assert.assertEquals(excludePrefix + ";" + forModule + ".started;" + forModule + ".mandatory", model > .get("excludePrefix")); > } >} >misha@misha-d630:~/tmp/bug$ cp Test.java.orig Test.java && ~/opt/eclipse/eclipse -nosplash -application org.eclipse.jdt.core.JavaCodeFormatter -verbose -config formatter.asprefs Test.java && cat Test.java >Configuration Name: formatter.asprefs >Starting format job ... >Formatting: /home/misha/tmp/bug/Test.java >Done. >public class Test { > > public void setupModelForModule_shouldNotOverrideExcludePrefixButConcatenate() throws Exception { > //given > GlobalPropertyPortletController portletController = new GlobalPropertyPortletController(); > Map<String, Object> model = new HashMap<String, Object>(); > > //when > String forModule = "file"; > String excludePrefix = "file.custom"; > model.put("forModule", forModule); > model.put("excludePrefix", excludePrefix); > > //then > portletController.setupModelForModule(model); > Assert.assertEquals(excludePrefix + ";" + forModule + ".started;" + forModule + ".mandatory", > model.get("excludePrefix")); > } > >} >
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 Raw
Actions:
View
Attachments on
bug 325289
: 178872 |
178873
|
178874
|
178875