2525f9bc65ae66af9dd9bbc46c0e37452dd77629
[svjatoslav_commons.git] / src / test / java / eu / svjatoslav / commons / data / HexConverterTest.java
1 package eu.svjatoslav.commons.data;
2
3 import static org.junit.Assert.assertEquals;
4
5 import org.junit.Test;
6
7 public class HexConverterTest {
8
9         @Test
10         public void test() {
11
12                 final String string = HexConverter.byteArrayToHex(new byte[] { 1, 2,
13                                 (byte) 255 });
14
15                 assertEquals("0102FF", string);
16
17         }
18 }