@@ -0,0 +1,2362 @@
+/*%0A * Copyright (C) 2013 Klaus Reimer %3Ck@ailis.de%3E%0A * See LICENSE.md for licensing information.%0A */%0A%0Apackage de.ailis.usb4java.libusb;%0A%0Aimport static de.ailis.usb4java.test.UsbAssume.assumeUsbTestsEnabled;%0A%0Aimport org.junit.After;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0A/**%0A * Tests the %7B@link SSEndpointCompanionDescriptor%7D class.%0A * %0A * @author Klaus Reimer (k@ailis.de)%0A */%0Apublic class SSEndpointCompanionDescriptorTest%0A%7B%0A    /** The test subject. */%0A    private SSEndpointCompanionDescriptor descriptor;%0A%0A    /**%0A     * Setup test.%0A     */%0A    @Before%0A    public void setUp()%0A    %7B%0A        assumeUsbTestsEnabled();%0A        LibUsb.init(null);%0A        this.descriptor = new SSEndpointCompanionDescriptor();%0A    %7D%0A    %0A    /**%0A     * Tear down test.%0A     */%0A    @After    %0A    public void tearDown()%0A    %7B%0A        LibUsb.exit(null);%0A    %7D%0A%0A    /**%0A     * Tests uninitialized access to%0A     * %7B@link SSEndpointCompanionDescriptor#bLength()%7D%0A     */%0A    @Test(expected = IllegalStateException.class)%0A    public void testUninitializedLength()%0A    %7B%0A        assumeUsbTestsEnabled();%0A        this.descriptor.bLength();%0A    %7D%0A%0A    /**%0A     * Tests uninitialized access to%0A     * %7B@link SSEndpointCompanionDescriptor#bDescriptorType()%7D%0A     */%0A    @Test(expected = IllegalStateException.class)%0A    public void testUninitializedDescriptorType()%0A    %7B%0A        assumeUsbTestsEnabled();%0A        this.descriptor.bDescriptorType();%0A    %7D%0A%0A    /**%0A     * Tests uninitialized access to%0A     * %7B@link SSEndpointCompanionDescriptor#bMaxBurst()%7D%0A     */%0A    @Test(expected = IllegalStateException.class)%0A    public void testUninitializedDescriptorMaxBurst()%0A    %7B%0A        assumeUsbTestsEnabled();%0A        this.descriptor.bMaxBurst();%0A    %7D%0A%0A    /**%0A     * Tests uninitialized access to%0A     * %7B@link SSEndpointCompanionDescriptor#bmAttributes()%7D%0A     */%0A    @Test(expected = IllegalStateException.class)%0A    public void testUninitializedDescriptorAttributes()%0A    %7B%0A        assumeUsbTestsEnabled();%0A        this.descriptor.bmAttributes();%0A    %7D%0A%0A    /**%0A     * Tests uninitialized access to%0A     * %7B@link SSEndpointCompanionDescriptor#wBytesPerInterval()%7D%0A     */%0A    @Test(expected = IllegalStateException.class)%0A    public void testUninitializedDescriptorBytesPerInterval()%0A    %7B%0A        assumeUsbTestsEnabled();%0A        this.descriptor.wBytesPerInterval();%0A    %7D%0A%7D%0A

Add unit test for SuperSpeed Endpoint Companion Descriptor