Package org.nfctools.test

Examples of org.nfctools.test.NfcipHelper


  public SnepServerTest() {
    ndefListener = new NotifyingNdefListener(this);
    snepServer = new SnepServer(ndefListener);
    snepClient = new SnepClient();
    helper = new NfcipHelper(snepServer, snepClient, null, null);
  }
View Full Code Here


    NotifyingNdefListener ndefListener = new NotifyingNdefListener(this);
    List<Record> records = new ArrayList<Record>();
    records.add(new UriRecord("http://www.nfctools.org"));
    NdefPushLlcpService ndefPushLlcpService = new NdefPushLlcpService(new LoggingNdefListener());
    ndefPushLlcpService.addMessages(records, null);
    NfcipHelper helper = new NfcipHelper(null, null, ndefListener, ndefPushLlcpService);
    helper.launch();
    synchronized (this) {
      wait(5000);
    }
    assertFalse(ndefListener.getRecords().isEmpty());
    UriRecord uriRecord = (UriRecord)ndefListener.getRecords().iterator().next();
View Full Code Here

TOP

Related Classes of org.nfctools.test.NfcipHelper

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.