// Path: jxnet-core/src/main/java/com/ardikars/jxnet/Jxnet.java
// public static final int OK = 0;
// 
// Path: jxnet-core/src/main/java/com/ardikars/jxnet/Jxnet.java
// public static native int PcapFindAllDevs(List<PcapIf> alldevsp, StringBuilder errbuf);


import com.ardikars.common.net.Inet4Address;
import org.junit.Before;
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
import org.junit.runners.MethodSorters;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Logger;
import static com.ardikars.jxnet.Jxnet.OK;
import static com.ardikars.jxnet.Jxnet.PcapFindAllDevs;
                    .source(source)
                    .pcapType(Pcap.PcapType.LIVE)
                    .build();
            assert !live.isClosed();
            live.close();
            assert live.isClosed();
            assert live.toString() != null;
        }
        assert !offline.isClosed();
        dead.close();
        assert dead.toString() != null;
        assert dead.isClosed();
        offline.close();
        assert offline.isClosed();
        assert offline.toString() != null;
    }

    @Test
    public void equealsAndHashCodeTest() throws CloneNotSupportedException, IOException {
        Pcap pcap = Pcap.dead(builder);
        Pcap cln = pcap.clone();
        assert pcap.equals(pcap);
        assert !pcap.equals(null);
        assert pcap.equals(cln);
        assert cln.hashCode() == pcap.hashCode();
        pcap.close();
    }

    private String findSource() {
        List<PcapIf> alldevsp = new ArrayList<PcapIf>();
// Path: jxnet-core/src/main/java/com/ardikars/jxnet/Jxnet.java
// public static final int OK = 0;
// 
// Path: jxnet-core/src/main/java/com/ardikars/jxnet/Jxnet.java
// public static native int PcapFindAllDevs(List<PcapIf> alldevsp, StringBuilder errbuf);


// Path: jxnet-core/src/test/java/com/ardikars/jxnet/PcapTest.java
import com.ardikars.common.net.Inet4Address;
import org.junit.Before;
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
import org.junit.runners.MethodSorters;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Logger;
import static com.ardikars.jxnet.Jxnet.OK;
import static com.ardikars.jxnet.Jxnet.PcapFindAllDevs;

                    .source(source)
                    .pcapType(Pcap.PcapType.LIVE)
                    .build();
            assert !live.isClosed();
            live.close();
            assert live.isClosed();
            assert live.toString() != null;
        }
        assert !offline.isClosed();
        dead.close();
        assert dead.toString() != null;
        assert dead.isClosed();
        offline.close();
        assert offline.isClosed();
        assert offline.toString() != null;
    }

    @Test
    public void equealsAndHashCodeTest() throws CloneNotSupportedException, IOException {
        Pcap pcap = Pcap.dead(builder);
        Pcap cln = pcap.clone();
        assert pcap.equals(pcap);
        assert !pcap.equals(null);
        assert pcap.equals(cln);
        assert cln.hashCode() == pcap.hashCode();
        pcap.close();
    }

    private String findSource() {
        List<PcapIf> alldevsp = new ArrayList<PcapIf>();
        if (PcapFindAllDevs(alldevsp, errbuf) != OK) {