Package nz.co.abrahams.asithappens

Source Code of nz.co.abrahams.asithappens.PacketTraceIteratorTest

/*
* PacketTraceIteratorTest.java
* JUnit based test
*
* Created on 2 May 2005, 23:34
*/

package nz.co.abrahams.asithappens;

import nz.co.abrahams.asithappens.flow.Flow;
import nz.co.abrahams.asithappens.capture.PacketTraceIterator;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.Assert;

/**
*
* @author mark
*/
public class PacketTraceIteratorTest {
   
    protected static final String FILENAME = "test/data/sample.pkt";
    protected PacketTraceIterator iterator;
   
    public PacketTraceIteratorTest() {
    }

    @Before
    public void setUp() throws java.lang.Exception {
        iterator = new PacketTraceIterator(FILENAME);
    }

    @After
    public void tearDown() throws java.lang.Exception {
    }

    /**
     * Compatibility method for JUnit 3.x test runner.
     */
    public static junit.framework.Test suite() {
        return new junit.framework.JUnit4TestAdapter(PacketTraceIteratorTest.class);
    }

    /**
     * Test of nextPacket method, of class nz.co.abrahams.asithappens.PacketTraceParser.
     */
    @Test
    public void testNext() {
        Flow flow;
        System.out.println("testNext");
        flow = iterator.next();
        flow = iterator.next();
        flow = iterator.next();
        Assert.assertTrue(true);
    }
   
}
TOP

Related Classes of nz.co.abrahams.asithappens.PacketTraceIteratorTest

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.