summaryrefslogtreecommitdiffstats
path: root/v3po/v3po2vpp/src/test/java/io/fd/honeycomb/v3po/translate/v3po/utils/V3poUtilsTest.java
blob: 115eb2b9c3faa869c61ce41e0ed6ee6958c22ee0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package io.fd.honeycomb.v3po.translate.v3po.utils;

import static org.junit.Assert.assertArrayEquals;

import org.junit.Test;

public class V3poUtilsTest {

    @Test
    public void testToString() {
        final byte[] expected = "test".getBytes();
        final byte[] cString = new byte[expected.length+10];
        System.arraycopy(expected, 0, cString, 0, expected.length);
        final String jString = V3poUtils.toString(cString);
        assertArrayEquals(expected, jString.getBytes());
    }
}