switched to HTTPS
[svjatoslav_commons.git] / src / test / java / eu / svjatoslav / commons / data / HexConverterTest.java
1 /*
2  * Svjatoslav Commons - shared library of common functionality. Author: Svjatoslav Agejenko.
3  * This project is released under Creative Commons Zero (CC0) license.
4  */
5 package eu.svjatoslav.commons.data;
6
7 import org.junit.Test;
8
9 import static org.junit.Assert.assertEquals;
10
11 public class HexConverterTest {
12
13     @Test
14     public void test() {
15
16         final String string = HexConverter.byteArrayToHex(new byte[]{1, 2,
17                 (byte) 255});
18
19         assertEquals("0102FF", string);
20
21     }
22 }