Package uk.co.nimp.smartcard

Source Code of uk.co.nimp.smartcard.ApduTest

package uk.co.nimp.smartcard;

import javax.smartcardio.CommandAPDU;
import javax.smartcardio.ResponseAPDU;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.*;

/**
*
* @author Sebastien Riou
*/
public class ApduTest {

    public ApduTest() {
    }

    @BeforeClass
    public static void setUpClass() throws Exception {
    }

    @AfterClass
    public static void tearDownClass() throws Exception {
    }

    @Before
    public void setUp() {
    }

    @After
    public void tearDown() {
    }

    /**
     * Test of constructor, of class Apdu.
     */
    @Test
    public void testApduConstructorFromString() {
        System.out.println("ApduConstructorFromString");
        Apdu instance = new Apdu("00840000");

        assertEquals(instance.getCla(), 0x00);
        assertEquals(instance.getIns(), 0x84);
        assertEquals(instance.getP1(), 0x00);
        assertEquals(instance.getP2(), 0x00);
        assertEquals(instance.getLc(), 0x00);
        assertEquals(instance.getExpectedLe(), 0x00);
    }


    /**
     * Test of fromCommandAPDU method, of class Apdu.
     */
    @Test
    public void testFromCommandAPDU() {
        System.out.println("fromCommandAPDU");
        CommandAPDU apdu = null;
        Apdu instance = new Apdu();
        instance.fromCommandAPDU(apdu);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of clone method, of class Apdu.
     */
    @Test
    public void testClone() {
        System.out.println("clone");
        Apdu instance = new Apdu();
        Apdu expResult = null;
        Apdu result = instance.clone();
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of getCommandAPDU method, of class Apdu.
     */
    @Test
    public void testGetCommandAPDU() {
        System.out.println("getCommandAPDU");
        Apdu instance = new Apdu();
        CommandAPDU expResult = null;
        CommandAPDU result = instance.getCommandAPDU();
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of getCommandAPDUAsString method, of class Apdu.
     */
    @Test
    public void testGetCommandAPDUAsString() {
        System.out.println("getCommandAPDUAsString");
        Apdu instance = new Apdu();
        String expResult = "";
        String result = instance.getCommandAPDUAsString();
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of getResponseAPDU method, of class Apdu.
     */
    @Test
    public void testGetResponseAPDU() {
        System.out.println("getResponseAPDU");
        Apdu instance = new Apdu();
        ResponseAPDU expResult = null;
        ResponseAPDU result = instance.getResponseAPDU();
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of getResponseAPDUAsString method, of class Apdu.
     */
    @Test
    public void testGetResponseAPDUAsString() {
        System.out.println("getResponseAPDUAsString");
        Apdu instance = new Apdu();
        String expResult = "";
        String result = instance.getResponseAPDUAsString();
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of getExpectedResponseAPDU method, of class Apdu.
     */
    @Test
    public void testGetExpectedResponseAPDU() {
        System.out.println("getExpectedResponseAPDU");
        Apdu instance = new Apdu();
        ResponseAPDU expResult = null;
        ResponseAPDU result = instance.getExpectedResponseAPDU();
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of getExpectedResponseAPDUAsString method, of class Apdu.
     */
    @Test
    public void testGetExpectedResponseAPDUAsString() {
        System.out.println("getExpectedResponseAPDUAsString");
        Apdu instance = new Apdu();
        String expResult = "";
        String result = instance.getExpectedResponseAPDUAsString();
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of CommandAPDU2String method, of class Apdu.
     */
    @Test
    public void testCommandAPDU2String_CommandAPDU() {
        System.out.println("CommandAPDU2String");
        CommandAPDU command = null;
        String expResult = "";
        String result = Apdu.CommandAPDU2String(command);
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of CommandAPDU2String method, of class Apdu.
     */
    @Test
    public void testCommandAPDU2String_3args() {
        System.out.println("CommandAPDU2String");
        CommandAPDU command = null;
        String toInsertAfterNewLine = "";
        int dataLimit = 0;
        String expResult = "";
        String result = Apdu.CommandAPDU2String(command, toInsertAfterNewLine, dataLimit);
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of ResponseAPDU2String method, of class Apdu.
     */
    @Test
    public void testResponseAPDU2String_ResponseAPDU() {
        System.out.println("ResponseAPDU2String");
        ResponseAPDU command = null;
        String expResult = "";
        String result = Apdu.ResponseAPDU2String(command);
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of ResponseAPDU2String method, of class Apdu.
     */
    @Test
    public void testResponseAPDU2String_3args() {
        System.out.println("ResponseAPDU2String");
        ResponseAPDU response = null;
        String toInsertAfterNewLine = "\n";
        int dataLimit = 0;
        String expResult = "";
        String result = Apdu.ResponseAPDU2String(response, toInsertAfterNewLine, dataLimit);
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of toString method, of class Apdu.
     */
    @Test
    public void testToString_0args() {
        System.out.println("toString");
        Apdu instance = new Apdu();
        String expResult = "";
        String result = instance.toString();
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of toString method, of class Apdu.
     */
    @Test
    public void testToString_int() {
        System.out.println("toString");
        int dataLimit = 0;
        Apdu instance = new Apdu();
        String expResult = "";
        String result = instance.toString(dataLimit);
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of checkResponse method, of class Apdu.
     */
    @Test
    public void testCheckResponse() throws Exception {
        System.out.println("checkResponse");
        Apdu instance = new Apdu();
        instance.checkResponse();
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of getDescription method, of class Apdu.
     */
    @Test
    public void testGetDescription() {
        System.out.println("getDescription");
        Apdu instance = new Apdu();
        String expResult = "";
        String result = instance.getDescription();
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of setDescription method, of class Apdu.
     */
    @Test
    public void testSetDescription() {
        System.out.println("setDescription");
        String description = "";
        Apdu instance = new Apdu();
        instance.setDescription(description);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of getSw2 method, of class Apdu.
     */
    @Test
    public void testGetSw2() {
        System.out.println("getSw2");
        Apdu instance = new Apdu();
        short expResult = 0;
        short result = instance.getSw2();
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of getSw2AsString method, of class Apdu.
     */
    @Test
    public void testGetSw2AsString() {
        System.out.println("getSw2AsString");
        Apdu instance = new Apdu();
        String expResult = "";
        String result = instance.getSw2AsString();
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of setSw2 method, of class Apdu.
     */
    @Test
    public void testSetSw2() {
        System.out.println("setSw2");
        int sw2 = 0;
        Apdu instance = new Apdu();
        instance.setSw2(sw2);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of getSw1 method, of class Apdu.
     */
    @Test
    public void testGetSw1() {
        System.out.println("getSw1");
        Apdu instance = new Apdu();
        short expResult = 0;
        short result = instance.getSw1();
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of getSw1AsString method, of class Apdu.
     */
    @Test
    public void testGetSw1AsString() {
        System.out.println("getSw1AsString");
        Apdu instance = new Apdu();
        String expResult = "";
        String result = instance.getSw1AsString();
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of setSw1 method, of class Apdu.
     */
    @Test
    public void testSetSw1() {
        System.out.println("setSw1");
        int sw1 = 0;
        Apdu instance = new Apdu();
        instance.setSw1(sw1);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of getSw method, of class Apdu.
     */
    @Test
    public void testGetSw() {
        System.out.println("getSw");
        Apdu instance = new Apdu();
        int expResult = 0;
        int result = instance.getSw();
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of getSwAsString method, of class Apdu.
     */
    @Test
    public void testGetSwAsString() {
        System.out.println("getSwAsString");
        Apdu instance = new Apdu();
        String expResult = "";
        String result = instance.getSwAsString();
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of setSw method, of class Apdu.
     */
    @Test
    public void testSetSw() {
        System.out.println("setSw");
        int sw = 0;
        Apdu instance = new Apdu();
        instance.setSw(sw);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of getLeData method, of class Apdu.
     */
    @Test
    public void testGetLeData_0args() {
        System.out.println("getLeData");
        Apdu instance = new Apdu();
        byte[] expResult = null;
        byte[] result = instance.getLeData();
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of setLeData method, of class Apdu.
     */
    @Test
    public void testSetLeData_byteArr() {
        System.out.println("setLeData");
        byte[] leData = null;
        Apdu instance = new Apdu();
        instance.setLeData(leData);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of setResponse method, of class Apdu.
     */
    @Test
    public void testSetResponse() {
        System.out.println("setResponse");
        byte[] response = null;
        Apdu instance = new Apdu();
        instance.setResponse(response);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of getLeData method, of class Apdu.
     */
    @Test
    public void testGetLeData_int() {
        System.out.println("getLeData");
        int index = 0;
        Apdu instance = new Apdu();
        short expResult = 0;
        short result = instance.getLeData(index);
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of setLeData method, of class Apdu.
     */
    @Test
    public void testSetLeData_int_byte() {
        System.out.println("setLeData");
        int index = 0;
        byte newLeData = 0;
        Apdu instance = new Apdu();
        instance.setLeData(index, newLeData);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of getExpectedSw2 method, of class Apdu.
     */
    @Test
    public void testGetExpectedSw2() {
        System.out.println("getExpectedSw2");
        Apdu instance = new Apdu();
        short expResult = 0;
        short result = instance.getExpectedSw2();
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of getExpectedSw2AsString method, of class Apdu.
     */
    @Test
    public void testGetExpectedSw2AsString() {
        System.out.println("getExpectedSw2AsString");
        Apdu instance = new Apdu();
        String expResult = "";
        String result = instance.getExpectedSw2AsString();
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of setExpectedSw2 method, of class Apdu.
     */
    @Test
    public void testSetExpectedSw2() {
        System.out.println("setExpectedSw2");
        int expectedSw2 = 0;
        Apdu instance = new Apdu();
        instance.setExpectedSw2(expectedSw2);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of getExpectedSw1 method, of class Apdu.
     */
    @Test
    public void testGetExpectedSw1() {
        System.out.println("getExpectedSw1");
        Apdu instance = new Apdu();
        short expResult = 0;
        short result = instance.getExpectedSw1();
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of getExpectedSw1AsString method, of class Apdu.
     */
    @Test
    public void testGetExpectedSw1AsString() {
        System.out.println("getExpectedSw1AsString");
        Apdu instance = new Apdu();
        String expResult = "";
        String result = instance.getExpectedSw1AsString();
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of setExpectedSw1 method, of class Apdu.
     */
    @Test
    public void testSetExpectedSw1() {
        System.out.println("setExpectedSw1");
        int expectedSw1 = 0;
        Apdu instance = new Apdu();
        instance.setExpectedSw1(expectedSw1);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of getExpectedSw method, of class Apdu.
     */
    @Test
    public void testGetExpectedSw() {
        System.out.println("getExpectedSw");
        Apdu instance = new Apdu();
        assertEquals(instance.expectedSw1Set,false);
        assertEquals(instance.expectedSw2Set,false);
        instance.setExpectedSw(0x9000);
        assertEquals(instance.expectedSw1Set,true);
        assertEquals(instance.expectedSw2Set,true);
        short expResult = (short)0x9000;
        short result = instance.getExpectedSw();
        assertEquals(expResult, result);
    }

    /**
     * Test of getExpectedSwAsString method, of class Apdu.
     */
    @Test
    public void testGetExpectedSwAsString() {
        System.out.println("getExpectedSwAsString");
        Apdu instance = new Apdu();
        String expResult = "";
        String result = instance.getExpectedSwAsString();
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of setExpectedSw method, of class Apdu.
     */
    @Test
    public void testSetExpectedSw() {
        System.out.println("setExpectedSw");
        int expectedSw = 0;
        Apdu instance = new Apdu();
        instance.setExpectedSw(expectedSw);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of getExpectedLeData method, of class Apdu.
     */
    @Test
    public void testGetExpectedLeData_0args() {
        System.out.println("getExpectedLeData");
        Apdu instance = new Apdu();
        byte[] expResult = null;
        byte[] result = instance.getExpectedLeData();
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of addExpectedLeData method, of class Apdu.
     */
    @Test
    public void testAddExpectedLeData_byteArr() {
        System.out.println("addExpectedLeData");
        byte[] expectedLeData = null;
        Apdu instance = new Apdu();
        instance.addExpectedLeData(expectedLeData);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of addExpectedLeData method, of class Apdu.
     */
    @Test
    public void testAddExpectedLeData_3args() {
        System.out.println("addExpectedLeData");
        byte[] expectedLeData = null;
        int offset = 0;
        int length = 0;
        Apdu instance = new Apdu();
        instance.addExpectedLeData(expectedLeData, offset, length);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of setExpectedLeData method, of class Apdu.
     */
    @Test
    public void testSetExpectedLeData_byteArr() {
        System.out.println("setExpectedLeData");
        byte[] expectedLeData = null;
        Apdu instance = new Apdu();
        instance.setExpectedLeData(expectedLeData);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of setExpectedLeData method, of class Apdu.
     */
    @Test
    public void testSetExpectedLeData_3args() {
        System.out.println("setExpectedLeData");
        byte[] expectedLeData = null;
        int offset = 0;
        int length = 0;
        Apdu instance = new Apdu();
        instance.setExpectedLeData(expectedLeData, offset, length);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of getExpectedLeData method, of class Apdu.
     */
    @Test
    public void testGetExpectedLeData_int() {
        System.out.println("getExpectedLeData");
        int index = 0;
        Apdu instance = new Apdu();
        short expResult = 0;
        short result = instance.getExpectedLeData(index);
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of setExpectedLeData method, of class Apdu.
     */
    @Test
    public void testSetExpectedLeData_int_byte() {
        System.out.println("setExpectedLeData");
        int index = 0;
        byte newExpectedLeData = 0;
        Apdu instance = new Apdu();
        instance.setExpectedLeData(index, newExpectedLeData);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of getLcData method, of class Apdu.
     */
    @Test
    public void testGetLcData_0args() {
        System.out.println("getLcData");
        Apdu instance = new Apdu();
        Short[] expResult = null;
        Short[] result = instance.getLcData();
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of getLcDataAsBytes method, of class Apdu.
     */
    @Test
    public void testGetLcDataAsBytes() {
        System.out.println("getLcDataAsBytes");
        Apdu instance = new Apdu();
        byte[] expResult = null;
        byte[] result = instance.getLcDataAsBytes();
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of getLcDataAsString method, of class Apdu.
     */
    @Test
    public void testGetLcDataAsString() {
        System.out.println("getLcDataAsString");
        Apdu instance = new Apdu();
        String expResult = "";
        String result = instance.getLcDataAsString();
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of setLcData method, of class Apdu.
     */
    @Test
    public void testSetLcData_byteArr() {
        System.out.println("setLcData");
        byte[] lcData = null;
        Apdu instance = new Apdu();
        instance.setLcData(lcData);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of setLcData method, of class Apdu.
     */
    @Test
    public void testSetLcData_3args() {
        System.out.println("setLcData");
        byte[] lcData = null;
        int offset = 0;
        int length = 0;
        Apdu instance = new Apdu();
        instance.setLcData(lcData, offset, length);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of setLcData method, of class Apdu.
     */
    @Test
    public void testSetLcData_String() {
        System.out.println("setLcData");
        String lcData = "";
        Apdu instance = new Apdu();
        instance.setLcData(lcData);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of addLcData method, of class Apdu.
     */
    @Test
    public void testAddLcData_byteArr() {
        System.out.println("addLcData");
        byte[] lcData = null;
        Apdu instance = new Apdu();
        instance.addLcData(lcData);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of addLcData method, of class Apdu.
     */
    @Test
    public void testAddLcData_3args() {
        System.out.println("addLcData");
        byte[] lcData = null;
        int offset = 0;
        int length = 0;
        Apdu instance = new Apdu();
        instance.addLcData(lcData, offset, length);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of addLcData method, of class Apdu.
     */
    @Test
    public void testAddLcData_byte() {
        System.out.println("addLcData");
        byte lcData = 0;
        Apdu instance = new Apdu();
        instance.addLcData(lcData);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of getLcData method, of class Apdu.
     */
    @Test
    public void testGetLcData_int() {
        System.out.println("getLcData");
        int index = 0;
        Apdu instance = new Apdu();
        short expResult = 0;
        short result = instance.getLcData(index);
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of setLcData method, of class Apdu.
     */
    @Test
    public void testSetLcData_int_byte() {
        System.out.println("setLcData");
        int index = 0;
        byte newLcData = 0;
        Apdu instance = new Apdu();
        instance.setLcData(index, newLcData);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of getLe method, of class Apdu.
     */
    @Test
    public void testGetExpectedLe() {
        System.out.println("getExpectedLe");
        Apdu instance = new Apdu();
        int expResult = 0;
        int result = instance.getExpectedLe();
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of getLeByteAsString method, of class Apdu.
     */
    @Test
    public void testGetLeAsString() {
        System.out.println("getLeAsString");
        Apdu instance = new Apdu();
        String expResult = "";
        String result = instance.getLeByteAsString();
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of setExpectedLe method, of class Apdu.
     */
    @Test
    public void testSetLe() {
        System.out.println("setLe");
        int le = 0;
        Apdu instance = new Apdu();
        instance.setExpectedLe(le);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of getLc method, of class Apdu.
     */
    @Test
    public void testGetLc() {
        System.out.println("getLc");
        Apdu instance = new Apdu();
        int expResult = 0;
        int result = instance.getLc();
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of getLcAsString method, of class Apdu.
     */
    @Test
    public void testGetLcAsString() {
        System.out.println("getLcAsString");
        Apdu instance = new Apdu();
        String expResult = "";
        String result = instance.getLcAsString();
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of setLc method, of class Apdu.
     */
    @Test
    public void testSetLc() {
        System.out.println("setLc");
        int lc = 0;
        Apdu instance = new Apdu();
        instance.setLc(lc);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of getP2 method, of class Apdu.
     */
    @Test
    public void testGetP2() {
        System.out.println("getP2");
        Apdu instance = new Apdu();
        short expResult = 0;
        short result = instance.getP2();
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of getP2AsString method, of class Apdu.
     */
    @Test
    public void testGetP2AsString() {
        System.out.println("getP2AsString");
        Apdu instance = new Apdu();
        String expResult = "";
        String result = instance.getP2AsString();
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of setP2 method, of class Apdu.
     */
    @Test
    public void testSetP2() {
        System.out.println("setP2");
        int p2 = 0;
        Apdu instance = new Apdu();
        instance.setP2(p2);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of getP1 method, of class Apdu.
     */
    @Test
    public void testGetP1() {
        System.out.println("getP1");
        Apdu instance = new Apdu();
        short expResult = 0;
        short result = instance.getP1();
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of getP1AsString method, of class Apdu.
     */
    @Test
    public void testGetP1AsString() {
        System.out.println("getP1AsString");
        Apdu instance = new Apdu();
        String expResult = "";
        String result = instance.getP1AsString();
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of setP1 method, of class Apdu.
     */
    @Test
    public void testSetP1() {
        System.out.println("setP1");
        int p1 = 0;
        Apdu instance = new Apdu();
        instance.setP1(p1);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of getIns method, of class Apdu.
     */
    @Test
    public void testGetIns() {
        System.out.println("getIns");
        Apdu instance = new Apdu();
        short expResult = 0;
        short result = instance.getIns();
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of getInsAsString method, of class Apdu.
     */
    @Test
    public void testGetInsAsString() {
        System.out.println("getInsAsString");
        Apdu instance = new Apdu();
        String expResult = "";
        String result = instance.getInsAsString();
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of setIns method, of class Apdu.
     */
    @Test
    public void testSetIns() {
        System.out.println("setIns");
        int ins = 0;
        Apdu instance = new Apdu();
        instance.setIns(ins);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of getCla method, of class Apdu.
     */
    @Test
    public void testGetCla() {
        System.out.println("getCla");
        Apdu instance = new Apdu();
        short expResult = 0;
        short result = instance.getCla();
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of getClaAsString method, of class Apdu.
     */
    @Test
    public void testGetClaAsString() {
        System.out.println("getClaAsString");
        Apdu instance = new Apdu();
        String expResult = "";
        String result = instance.getClaAsString();
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of setCla method, of class Apdu.
     */
    @Test
    public void testSetCla() {
        System.out.println("setCla");
        int cla = 0;
        Apdu instance = new Apdu();
        instance.setCla(cla);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

}
TOP

Related Classes of uk.co.nimp.smartcard.ApduTest

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.