diff options
Diffstat (limited to 'vespajlib/src/test/java/com/yahoo/io/SlowInflateTestCase.java')
-rw-r--r-- | vespajlib/src/test/java/com/yahoo/io/SlowInflateTestCase.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/vespajlib/src/test/java/com/yahoo/io/SlowInflateTestCase.java b/vespajlib/src/test/java/com/yahoo/io/SlowInflateTestCase.java index 7f374441a18..7726cd7ea68 100644 --- a/vespajlib/src/test/java/com/yahoo/io/SlowInflateTestCase.java +++ b/vespajlib/src/test/java/com/yahoo/io/SlowInflateTestCase.java @@ -1,20 +1,20 @@ -// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.io; -import org.junit.Before; -import org.junit.Test; +import static org.junit.Assert.*; -import java.nio.charset.StandardCharsets; import java.util.Arrays; import java.util.zip.Deflater; -import static org.junit.Assert.assertArrayEquals; -import static org.junit.Assert.assertTrue; +import org.junit.Before; +import org.junit.Test; + +import com.yahoo.text.Utf8; /** * Check decompressor used among other things for packed summary fields. * - * @author Steinar Knutsen + * @author <a href="mailto:steinar@yahoo-inc.com">Steinar Knutsen</a> */ public class SlowInflateTestCase { @@ -27,7 +27,7 @@ public class SlowInflateTestCase { @Before public void setUp() throws Exception { value = "000000000000000000000000000000000000000000000000000000000000000"; - raw = value.getBytes(StandardCharsets.UTF_8); + raw = Utf8.toBytesStd(value); output = new byte[raw.length * 2]; Deflater compresser = new Deflater(); compresser.setInput(raw); |