@@ -0,0 +1,1403 @@
+package fr.openium.blinkiumandroid;%0A%0Aimport org.junit.Test;%0A%0Aimport java.util.Arrays;%0A%0Aimport fr.openium.blinkiumandroid.utils.ConvertUtils;%0A%0Aimport static junit.framework.Assert.assertEquals;%0Aimport static junit.framework.Assert.assertTrue;%0A%0A/**%0A * Created by ogoutet on 15/03/2017.%0A */%0A%0Apublic class ConvertUtilsTest %7B%0A%0A    @Test%0A    public void testAsciiToBinWithSimpleChar()%7B%0A        // expect%0A        byte%5B%5D expected = %7B0,1,1,0,0,0,0,1%7D;%0A        //when%0A        byte%5B%5D result = ConvertUtils.asciiToBin('a');%0A        //assert%0A        assertTrue(Arrays.equals(expected,result));%0A    %7D%0A%0A    @Test%0A    public void testAsciiToBinNulChar()%7B%0A        // expect%0A        byte%5B%5D expected = %7B0,0,0,0,0,0,0,0%7D;%0A        //when%0A        byte%5B%5D result = ConvertUtils.asciiToBin(Character.MIN_VALUE);%0A        //assert%0A        assertTrue(Arrays.equals(expected,result));%0A    %7D%0A%0A    @Test%0A    public void testAsciiToBinMaxAsciiChar()%7B%0A        // expect%0A        byte%5B%5D expected = %7B0,1,1,1,1,1,1,1%7D;%0A        //when%0A        byte%5B%5D result = ConvertUtils.asciiToBin((char)127);%0A        //assert%0A        assertTrue(Arrays.equals(expected,result));%0A    %7D%0A%0A    @Test%0A    public void testAsciiToBinUnhadledChar()%7B%0A        // expect%0A        byte%5B%5D expected = %7B0,1,1,1,1,1,1,1%7D;%0A        //when%0A        byte%5B%5D result = ConvertUtils.asciiToBin('%5Cu24d4');%0A        //assert%0A        assertTrue(Arrays.equals(expected,result));%0A    %7D%0A%7D%0A

Add of the first tests of the ConvertUtils class