// Path: src/main/java/org/usb4java/javax/ServicesListenerList.java
// final class ServicesListenerList extends
//     EventListenerList<UsbServicesListener> implements UsbServicesListener
// {
//     /**
//      * Constructs a new USB services listener list.
//      */
//     ServicesListenerList()
//     {
//         super();
//     }
// 
//     @Override
//     public UsbServicesListener[] toArray()
//     {
//         return getListeners().toArray(
//             new UsbServicesListener[getListeners().size()]);
//     }
// 
//     @Override
//     public void usbDeviceAttached(final UsbServicesEvent event)
//     {
//         for (final UsbServicesListener listener: toArray())
//         {
//             listener.usbDeviceAttached(event);
//         }
//     }
// 
//     @Override
//     public void usbDeviceDetached(final UsbServicesEvent event)
//     {
//         for (final UsbServicesListener listener: toArray())
//         {
//             listener.usbDeviceDetached(event);
//         }
//     }
// }


import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertSame;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verify;
import javax.usb.UsbDevice;
import javax.usb.UsbServices;
import javax.usb.event.UsbServicesEvent;
import javax.usb.event.UsbServicesListener;
import org.junit.Before;
import org.junit.Test;
import org.usb4java.javax.ServicesListenerList;
/*
 * Copyright (C) 2013 Klaus Reimer <k@ailis.de>
 * See LICENSE.md for licensing information.
 */

package org.usb4java.javax;




/**
 * Tests the {@link ServicesListenerList} class.
 * 
 * @author Klaus Reimer (k@ailis.de)
 */
public class ServicesListenerListTest
{
    /** The test subject. */
// Path: src/main/java/org/usb4java/javax/ServicesListenerList.java
// final class ServicesListenerList extends
//     EventListenerList<UsbServicesListener> implements UsbServicesListener
// {
//     /**
//      * Constructs a new USB services listener list.
//      */
//     ServicesListenerList()
//     {
//         super();
//     }
// 
//     @Override
//     public UsbServicesListener[] toArray()
//     {
//         return getListeners().toArray(
//             new UsbServicesListener[getListeners().size()]);
//     }
// 
//     @Override
//     public void usbDeviceAttached(final UsbServicesEvent event)
//     {
//         for (final UsbServicesListener listener: toArray())
//         {
//             listener.usbDeviceAttached(event);
//         }
//     }
// 
//     @Override
//     public void usbDeviceDetached(final UsbServicesEvent event)
//     {
//         for (final UsbServicesListener listener: toArray())
//         {
//             listener.usbDeviceDetached(event);
//         }
//     }
// }


// Path: src/test/java/org/usb4java/javax/ServicesListenerListTest.java
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertSame;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verify;
import javax.usb.UsbDevice;
import javax.usb.UsbServices;
import javax.usb.event.UsbServicesEvent;
import javax.usb.event.UsbServicesListener;
import org.junit.Before;
import org.junit.Test;
import org.usb4java.javax.ServicesListenerList;

/*
 * Copyright (C) 2013 Klaus Reimer <k@ailis.de>
 * See LICENSE.md for licensing information.
 */

package org.usb4java.javax;




/**
 * Tests the {@link ServicesListenerList} class.
 * 
 * @author Klaus Reimer (k@ailis.de)
 */
public class ServicesListenerListTest
{
    /** The test subject. */
    private ServicesListenerList list;