Examples of MemoryMapUlReaderWriter


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

Examples of org.nfctools.test.MemoryMapUlReaderWriter

  }

  @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
Copyright © 2018 www.massapi.com. 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.