Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 150591 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/compare/tests/PatchTest.java (-2 / +6 lines)
Lines 20-25 Link Here
20
import java.io.IOException;
20
import java.io.IOException;
21
import java.io.InputStream;
21
import java.io.InputStream;
22
import java.io.InputStreamReader;
22
import java.io.InputStreamReader;
23
import java.io.StringReader;
23
import java.net.JarURLConnection;
24
import java.net.JarURLConnection;
24
import java.net.URL;
25
import java.net.URL;
25
import java.util.ArrayList;
26
import java.util.ArrayList;
Lines 605-612 Link Here
605
			List expectedLines= expectedContents.readLines();
606
			List expectedLines= expectedContents.readLines();
606
			
607
			
607
			Object[] expected= expectedLines.toArray();
608
			Object[] expected= expectedLines.toArray();
608
			Object[] result= inLines.toArray();
609
609
			
610
			String resultString = LineReader.createString(patcher.isPreserveLineDelimeters(), inLines);
611
			LineReader resultReader = new LineReader(new BufferedReader(new StringReader(resultString)));
612
			Object[] result = resultReader.readLines().toArray();
613
610
			Assert.assertEquals(msg, expected.length, result.length);
614
			Assert.assertEquals(msg, expected.length, result.length);
611
			
615
			
612
			for (int j= 0; j < expected.length; j++)
616
			for (int j= 0; j < expected.length; j++)

Return to bug 150591