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 120188 Details for
Bug 150591
[Patch] Team -> Apply Patch and line endings
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Patch for test cases
150591_v05.txt (text/plain), 1.26 KB, created by
Pawel Pogorzelski
on 2008-12-11 07:49:02 EST
(
hide
)
Description:
Patch for test cases
Filename:
MIME Type:
Creator:
Pawel Pogorzelski
Created:
2008-12-11 07:49:02 EST
Size:
1.26 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.compare.tests >Index: src/org/eclipse/compare/tests/PatchTest.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.compare.tests/src/org/eclipse/compare/tests/PatchTest.java,v >retrieving revision 1.21 >diff -u -r1.21 PatchTest.java >--- src/org/eclipse/compare/tests/PatchTest.java 11 Aug 2008 14:59:44 -0000 1.21 >+++ src/org/eclipse/compare/tests/PatchTest.java 11 Dec 2008 12:40:07 -0000 >@@ -20,6 +20,7 @@ > import java.io.IOException; > import java.io.InputStream; > import java.io.InputStreamReader; >+import java.io.StringReader; > import java.net.JarURLConnection; > import java.net.URL; > import java.util.ArrayList; >@@ -605,8 +606,11 @@ > List expectedLines= expectedContents.readLines(); > > Object[] expected= expectedLines.toArray(); >- Object[] result= inLines.toArray(); >- >+ >+ String resultString = LineReader.createString(patcher.isPreserveLineDelimeters(), inLines); >+ LineReader resultReader = new LineReader(new BufferedReader(new StringReader(resultString))); >+ Object[] result = resultReader.readLines().toArray(); >+ > Assert.assertEquals(msg, expected.length, result.length); > > for (int j= 0; j < expected.length; j++)
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
Flags:
pawel.pogorzelski1
:
iplog+
Actions:
View
|
Diff
Attachments on
bug 150591
:
78544
|
89918
|
109644
|
109645
|
109646
|
113741
| 120188