@Test public void testPointBleu() throws VasmException { final byte[] theOutput = Vasm.asmonly(VasmTest.POINT_BLEU, getVASM()); VasmTestBase.assertSizeIsOk(theOutput); VasmTestBase.assertNoData(theOutput); VasmTestBase.assertVasmEquals(VasmTest.POINT_BLEU_BIN, theOutput); }
@Test public void testPointBleuFile() throws VasmException, IOException { final String theSource = Vasm.getSource(getVASM().getBluePointFileName()); final byte[] theOutput = Vasm.asmonly(theSource, getVASM()); VasmTestBase.assertSizeIsOk(theOutput); VasmTestBase.assertNoData(theOutput); VasmTestBase.assertVasmEquals(VasmTest.POINT_BLEU_BIN, theOutput); }
@Test public void testMessageTrame() throws VasmException, IOException { final byte[] theOutput = Vasm.maketrame(getVASM().getMsgFileName(), null, 42, 5, getVASM()).toByteArray(); VasmTestBase.assertTrameSizeIsOk(theOutput); final String theMD5Sum = DigestTools.digest(new String(theOutput, "ISO-8859-1"), DigestTools.Algorithm.MD5); Assert.assertEquals("3dcafcd6541bcfce3448ce9450d79148", theMD5Sum); }
@Test public void testWaitTrame() throws VasmException, IOException { final byte[] theOutput = Vasm.maketrame(getVASM().getWaitFileName(), null, 42, 5, getVASM()).toByteArray(); VasmTestBase.assertTrameSizeIsOk(theOutput); final String theMD5Sum = DigestTools.digest(new String(theOutput, "ISO-8859-1"), DigestTools.Algorithm.MD5); Assert.assertEquals("7f0b1c8511281bb07b4b496841c8978c", theMD5Sum); }
@Test public void testAsleepTrame() throws VasmException, IOException { final byte[] theOutput = Vasm.maketrame(getVASM().getSleepFileName(), null, 42, 5, getVASM()).toByteArray(); VasmTestBase.assertTrameSizeIsOk(theOutput); final String theMD5Sum = DigestTools.digest(new String(theOutput, "ISO-8859-1"), DigestTools.Algorithm.MD5); Assert.assertEquals("7f3cf88deb62355fa138805ad0772e04", theMD5Sum); }
@Test public void testDemoTrame() throws VasmException, IOException { final byte[] theOutput = Vasm.maketrame(getVASM().getDemoFileName(), null, 42, 5, getVASM()).toByteArray(); VasmTestBase.assertTrameSizeIsOk(theOutput); final String theMD5Sum = DigestTools.digest(new String(theOutput, "ISO-8859-1"), DigestTools.Algorithm.MD5); Assert.assertEquals("cbe66bd730815038cee40170835bf96a", theMD5Sum); }