Changed license to LGPLv3 or later.
[svjatoslav_commons.git] / src / test / java / eu / svjatoslav / commons / data / HexConverterTest.java
1 /*
2  * Svjatoslav Commons - shared library of common functionality.
3  * Copyright ©2012-2014, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
4  * 
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of version 3 of the GNU Lesser General Public License
7  * or later as published by the Free Software Foundation.
8  */
9
10 package eu.svjatoslav.commons.data;
11
12 import static org.junit.Assert.assertEquals;
13
14 import org.junit.Test;
15
16 public class HexConverterTest {
17
18         @Test
19         public void test() {
20
21                 final String string = HexConverter.byteArrayToHex(new byte[] { 1, 2,
22                                 (byte) 255 });
23
24                 assertEquals("0102FF", string);
25
26         }
27 }