static void assertCorrectBinaryString(CharSequence binaryString, String expectedNumber) throws NotFoundException, FormatException { BitArray binary = BinaryUtil.buildBitArrayFromStringWithoutSpaces(binaryString); AbstractExpandedDecoder decoder = AbstractExpandedDecoder.createDecoder(binary); String result = decoder.parseInformation(); assertEquals(expectedNumber, result); }
protected static void assertCorrectBinaryString(CharSequence binaryString, String expectedNumber) throws NotFoundException { BitArray binary = BinaryUtil.buildBitArrayFromStringWithoutSpaces(binaryString); AbstractExpandedDecoder decoder = AbstractExpandedDecoder.createDecoder(binary); String result = decoder.parseInformation(); assertEquals(expectedNumber, result); }