Package org.nfctools.test

Examples of org.nfctools.test.MemoryMapUlReaderWriter


public class UltralightTest {

  @Test
  public void testIsBlank() throws Exception {
    MemoryMap memoryMap = FileMfUlReader.loadCardFromFile("mful_blank.txt");
    MfUlReaderWriter readerWriter = new MemoryMapUlReaderWriter(memoryMap);
    MfBlock[] blocks = readerWriter.readBlock(0, 5);
    assertTrue(UltralightHandler.isBlank(blocks));
  }
View Full Code Here


  }

  @Test
  public void testIsFormatted() throws Exception {
    MemoryMap memoryMap = FileMfUlReader.loadCardFromFile("mfulc_formatted.txt");
    MfUlReaderWriter readerWriter = new MemoryMapUlReaderWriter(memoryMap);
    MfBlock[] blocks = readerWriter.readBlock(0, 5);
    assertTrue(UltralightHandler.isFormatted(blocks));
  }
View Full Code Here

TOP

Related Classes of org.nfctools.test.MemoryMapUlReaderWriter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.