Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarsten Thoms2019-02-10 07:01:01 -0500
committerKarsten Thoms2019-02-10 07:48:54 -0500
commit3db8c41531f3660150594a387d12145dab0767a5 (patch)
treeea6bbf18db88ae3fc2b8bb1bd2c7c8f60f101de5 /org.eclipse.search.tests
parente59d62445cd49073cf39e806ac6eded078115fed (diff)
downloadeclipse.platform.text-3db8c41531f3660150594a387d12145dab0767a5.tar.gz
eclipse.platform.text-3db8c41531f3660150594a387d12145dab0767a5.tar.xz
eclipse.platform.text-3db8c41531f3660150594a387d12145dab0767a5.zip
Bug 518569 - Use StandardCharset constantsI20190210-2135I20190210-1800
Also: version bump for 4.11 Change-Id: I7055e6a2ceb521dbe6065888b735ac62caa73ef6 Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
Diffstat (limited to 'org.eclipse.search.tests')
-rw-r--r--org.eclipse.search.tests/META-INF/MANIFEST.MF2
-rw-r--r--org.eclipse.search.tests/pom.xml2
-rw-r--r--org.eclipse.search.tests/src/org/eclipse/search/tests/filesearch/FileCharSequenceTests.java10
3 files changed, 6 insertions, 8 deletions
diff --git a/org.eclipse.search.tests/META-INF/MANIFEST.MF b/org.eclipse.search.tests/META-INF/MANIFEST.MF
index 08de3d9b9..349657199 100644
--- a/org.eclipse.search.tests/META-INF/MANIFEST.MF
+++ b/org.eclipse.search.tests/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.search.tests
-Bundle-Version: 3.9.200.qualifier
+Bundle-Version: 3.9.300.qualifier
Bundle-Activator: org.eclipse.search.tests.SearchTestPlugin
Bundle-Vendor: %providerName
Bundle-Localization: plugin
diff --git a/org.eclipse.search.tests/pom.xml b/org.eclipse.search.tests/pom.xml
index 5db2b4e4d..bd9da0c0c 100644
--- a/org.eclipse.search.tests/pom.xml
+++ b/org.eclipse.search.tests/pom.xml
@@ -19,7 +19,7 @@
</parent>
<groupId>org.eclipse.search</groupId>
<artifactId>org.eclipse.search.tests</artifactId>
- <version>3.9.200-SNAPSHOT</version>
+ <version>3.9.300-SNAPSHOT</version>
<packaging>eclipse-test-plugin</packaging>
<properties>
<testSuite>${project.artifactId}</testSuite>
diff --git a/org.eclipse.search.tests/src/org/eclipse/search/tests/filesearch/FileCharSequenceTests.java b/org.eclipse.search.tests/src/org/eclipse/search/tests/filesearch/FileCharSequenceTests.java
index 04e6af4a6..89943e6b0 100644
--- a/org.eclipse.search.tests/src/org/eclipse/search/tests/filesearch/FileCharSequenceTests.java
+++ b/org.eclipse.search.tests/src/org/eclipse/search/tests/filesearch/FileCharSequenceTests.java
@@ -16,6 +16,7 @@ package org.eclipse.search.tests.filesearch;
import static org.junit.Assert.assertFalse;
import java.io.IOException;
+import java.nio.charset.StandardCharsets;
import org.junit.After;
import org.junit.Assert;
@@ -53,8 +54,7 @@ public class FileCharSequenceTests {
for (int i= 0; i < 500; i++) {
buf.append(TEST_CONTENT);
}
- String encoding= "ISO-8859-1";
- testForEncoding(buf, encoding);
+ testForEncoding(buf, StandardCharsets.ISO_8859_1.name());
}
@Test
@@ -63,8 +63,7 @@ public class FileCharSequenceTests {
for (int i= 0; i < 2000; i++) {
buf.append(TEST_CONTENT);
}
- String encoding= "UTF-8";
- testForEncoding(buf, encoding);
+ testForEncoding(buf, StandardCharsets.UTF_8.name());
}
@Test
@@ -73,8 +72,7 @@ public class FileCharSequenceTests {
for (int i= 0; i < FileCharSequenceProvider.BUFFER_SIZE * 2; i++) {
buf.append(TEST_CONTENT);
}
- String encoding= "UTF-16";
- testForEncoding(buf, encoding);
+ testForEncoding(buf, StandardCharsets.UTF_16.name());
}
private void testForEncoding(CharSequence buf, String encoding) throws CoreException, IOException {

Back to the top