aboutsummaryrefslogtreecommitdiff
path: root/java/src/test/java/com/google/protobuf/BoundedByteStringTest.java
diff options
context:
space:
mode:
authorTamir Duberstein <tamird@gmail.com>2015-04-02 14:22:35 -0700
committerTamir Duberstein <tamird@gmail.com>2015-04-02 15:06:32 -0700
commitbadef1fc19566745e1a052430202bb34b6a6150f (patch)
treefff4fda42b9d686e575ace97fb5de18822c97512 /java/src/test/java/com/google/protobuf/BoundedByteStringTest.java
parent2820e86aab2417a8274dc64a6d5de62f1fcaedc8 (diff)
downloadprotobuf-badef1fc19566745e1a052430202bb34b6a6150f.tar.gz
protobuf-badef1fc19566745e1a052430202bb34b6a6150f.tar.bz2
protobuf-badef1fc19566745e1a052430202bb34b6a6150f.zip
Move `UTF_8` to `Internal`
Diffstat (limited to 'java/src/test/java/com/google/protobuf/BoundedByteStringTest.java')
-rw-r--r--java/src/test/java/com/google/protobuf/BoundedByteStringTest.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/java/src/test/java/com/google/protobuf/BoundedByteStringTest.java b/java/src/test/java/com/google/protobuf/BoundedByteStringTest.java
index 9c0ff925..1562a1a6 100644
--- a/java/src/test/java/com/google/protobuf/BoundedByteStringTest.java
+++ b/java/src/test/java/com/google/protobuf/BoundedByteStringTest.java
@@ -62,7 +62,7 @@ public class BoundedByteStringTest extends LiteralByteStringTest {
@Override
public void testToString() throws UnsupportedEncodingException {
String testString = "I love unicode \u1234\u5678 characters";
- LiteralByteString unicode = new LiteralByteString(testString.getBytes(ByteString.UTF_8));
+ LiteralByteString unicode = new LiteralByteString(testString.getBytes(Internal.UTF_8));
ByteString chopped = unicode.substring(2, unicode.size() - 6);
assertEquals(classUnderTest + ".substring() must have the expected type",
classUnderTest, getActualClassName(chopped));
@@ -75,12 +75,12 @@ public class BoundedByteStringTest extends LiteralByteStringTest {
@Override
public void testCharsetToString() throws UnsupportedEncodingException {
String testString = "I love unicode \u1234\u5678 characters";
- LiteralByteString unicode = new LiteralByteString(testString.getBytes(ByteString.UTF_8));
+ LiteralByteString unicode = new LiteralByteString(testString.getBytes(Internal.UTF_8));
ByteString chopped = unicode.substring(2, unicode.size() - 6);
assertEquals(classUnderTest + ".substring() must have the expected type",
classUnderTest, getActualClassName(chopped));
- String roundTripString = chopped.toString(ByteString.UTF_8);
+ String roundTripString = chopped.toString(Internal.UTF_8);
assertEquals(classUnderTest + " unicode bytes must match",
testString.substring(2, testString.length() - 6), roundTripString);
}