Change to org.usb4java in Java test source code.

This commit is contained in:
Luca Longinotti 2014-02-15 18:50:03 +01:00
parent 3db5b2c1a5
commit f9cb764b58
58 changed files with 87 additions and 87 deletions

View File

@ -25,7 +25,7 @@ import javax.usb.*;
import org.junit.runner.RunWith;
import de.ailis.usb4java.test.TCKRunner;
import org.usb4java.test.TCKRunner;
//import javax.usb.util.*;
import junit.framework.TestCase;

View File

@ -15,7 +15,7 @@ import javax.usb.*;
import org.junit.runner.RunWith;
import de.ailis.usb4java.test.TCKRunner;
import org.usb4java.test.TCKRunner;
import junit.framework.*;

View File

@ -16,7 +16,7 @@ import javax.usb.util.*;
import org.junit.runner.RunWith;
import de.ailis.usb4java.test.TCKRunner;
import org.usb4java.test.TCKRunner;
import junit.framework.*;

View File

@ -15,7 +15,7 @@ import javax.usb.*;
import org.junit.runner.RunWith;
import de.ailis.usb4java.test.TCKRunner;
import org.usb4java.test.TCKRunner;

View File

@ -15,7 +15,7 @@ import javax.usb.*;
import org.junit.runner.RunWith;
import de.ailis.usb4java.test.TCKRunner;
import org.usb4java.test.TCKRunner;
import junit.framework.Assert;
import junit.framework.TestCase;

View File

@ -31,7 +31,7 @@ import javax.usb.event.*;
import org.junit.runner.RunWith;
import de.ailis.usb4java.test.TCKRunner;
import org.usb4java.test.TCKRunner;
/**
* Control I/O Test - Synchronous and asynchronous Control Irp and Control

View File

@ -16,7 +16,7 @@ import javax.usb.event.*;
import org.junit.runner.RunWith;
import de.ailis.usb4java.test.TCKRunner;
import org.usb4java.test.TCKRunner;
import junit.framework.TestCase;

View File

@ -15,7 +15,7 @@ import javax.usb.util.*;
import org.junit.runner.RunWith;
import de.ailis.usb4java.test.TCKRunner;
import org.usb4java.test.TCKRunner;
import junit.framework.TestCase;

View File

@ -25,7 +25,7 @@ import javax.usb.event.*;
import org.junit.runner.RunWith;
import de.ailis.usb4java.test.TCKRunner;
import org.usb4java.test.TCKRunner;
import junit.framework.TestCase;

View File

@ -25,7 +25,7 @@ import javax.usb.event.*;
import org.junit.runner.RunWith;
import de.ailis.usb4java.test.TCKRunner;
import org.usb4java.test.TCKRunner;
import junit.framework.TestCase;

View File

@ -14,7 +14,7 @@ import javax.usb.util.*;
import org.junit.runner.RunWith;
import de.ailis.usb4java.test.TCKRunner;
import org.usb4java.test.TCKRunner;
import junit.framework.TestCase;

View File

@ -14,7 +14,7 @@ import javax.usb.util.*;
import org.junit.runner.RunWith;
import de.ailis.usb4java.test.TCKRunner;
import org.usb4java.test.TCKRunner;
import junit.framework.TestCase;

View File

@ -27,7 +27,7 @@ import javax.usb.util.*;
import org.junit.runner.RunWith;
import de.ailis.usb4java.test.TCKRunner;
import org.usb4java.test.TCKRunner;
/**
* FindControlIODevice

View File

@ -29,7 +29,7 @@ import javax.usb.util.StandardRequest;
import org.junit.runner.RunWith;
import de.ailis.usb4java.test.TCKRunner;
import org.usb4java.test.TCKRunner;
import junit.framework.TestCase;

View File

@ -23,7 +23,7 @@ import javax.usb.*;
import org.junit.runner.RunWith;
import de.ailis.usb4java.test.TCKRunner;
import org.usb4java.test.TCKRunner;
//import javax.usb.util.*;
import junit.framework.TestCase;

View File

@ -15,7 +15,7 @@ import javax.usb.*;
import org.junit.runner.RunWith;
import de.ailis.usb4java.test.TCKRunner;
import org.usb4java.test.TCKRunner;

View File

@ -16,7 +16,7 @@ import javax.usb.util.*;
import org.junit.runner.RunWith;
import de.ailis.usb4java.test.TCKRunner;
import org.usb4java.test.TCKRunner;
import junit.framework.*;

View File

@ -15,7 +15,7 @@ import javax.usb.*;
import org.junit.runner.RunWith;
import de.ailis.usb4java.test.TCKRunner;
import org.usb4java.test.TCKRunner;

View File

@ -7,7 +7,7 @@ import javax.usb.util.*;
import org.junit.runner.RunWith;
import de.ailis.usb4java.test.TCKRunner;
import org.usb4java.test.TCKRunner;
import java.util.*;

View File

@ -13,7 +13,7 @@ import javax.usb.tck.sigtest.*;
import org.junit.runner.RunWith;
import de.ailis.usb4java.test.TCKRunner;
import org.usb4java.test.TCKRunner;
import java.io.*;
import junit.framework.*;

View File

@ -28,7 +28,7 @@ import javax.usb.*;
import org.junit.runner.RunWith;
import de.ailis.usb4java.test.TCKRunner;
import org.usb4java.test.TCKRunner;
/**
* Usb Interface Policy Test

View File

@ -3,7 +3,7 @@
* See LICENSE.md for licensing information.
*/
package de.ailis.usb4java;
package org.usb4java;
import static org.junit.Assert.assertEquals;
@ -37,7 +37,7 @@ public class ConfigTest
public void testScanIntervalConfiguration()
{
final Properties properties = new Properties();
properties.put("de.ailis.usb4java.scanInterval", "123");
properties.put("org.usb4java.scanInterval", "123");
final Config config = new Config(properties);
assertEquals(123, config.getScanInterval());
}
@ -49,7 +49,7 @@ public class ConfigTest
public void testTimeoutConfiguration()
{
final Properties properties = new Properties();
properties.put("de.ailis.usb4java.timeout", "1234");
properties.put("org.usb4java.timeout", "1234");
final Config config = new Config(properties);
assertEquals(1234, config.getTimeout());
}

View File

@ -3,7 +3,7 @@
* See LICENSE.md for licensing information.
*/
package de.ailis.usb4java;
package org.usb4java;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
@ -13,7 +13,7 @@ import static org.junit.Assert.assertTrue;
import org.junit.Test;
import de.ailis.usb4java.descriptors.SimpleUsbDeviceDescriptor;
import org.usb4java.descriptors.SimpleUsbDeviceDescriptor;
/**
* Tests the {@link DeviceId} class.

View File

@ -3,7 +3,7 @@
* See LICENSE.md for licensing information.
*/
package de.ailis.usb4java;
package org.usb4java;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;

View File

@ -2,13 +2,13 @@
* Copyright (C) 2013 Klaus Reimer <k@ailis.de>
* See LICENSE.md for licensing information.
*/
package de.ailis.usb4java;
package org.usb4java;
import static org.junit.Assert.assertSame;
import org.junit.Test;
import de.ailis.usb4java.descriptors.SimpleUsbDeviceDescriptor;
import org.usb4java.descriptors.SimpleUsbDeviceDescriptor;
/**
* Tests the {@link DeviceNotFoundException} class.

View File

@ -3,7 +3,7 @@
* See LICENSE.md for licensing information.
*/
package de.ailis.usb4java;
package org.usb4java;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;

View File

@ -3,7 +3,7 @@
* See LICENSE.md for licensing information.
*/
package de.ailis.usb4java;
package org.usb4java;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;

View File

@ -3,7 +3,7 @@
* See LICENSE.md for licensing information.
*/
package de.ailis.usb4java;
package org.usb4java;
import static org.junit.Assert.assertEquals;

View File

@ -3,7 +3,7 @@
* See LICENSE.md for licensing information.
*/
package de.ailis.usb4java;
package org.usb4java;
import static org.junit.Assert.assertEquals;

View File

@ -3,7 +3,7 @@
* See LICENSE.md for licensing information.
*/
package de.ailis.usb4java;
package org.usb4java;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;

View File

@ -2,7 +2,7 @@
* Copyright (C) 2013 Klaus Reimer <k@ailis.de>
* See LICENSE.md for licensing information.
*/
package de.ailis.usb4java.adapter;
package org.usb4java.adapter;
import javax.usb.event.UsbDeviceDataEvent;
import javax.usb.event.UsbDeviceErrorEvent;

View File

@ -2,7 +2,7 @@
* Copyright (C) 2013 Klaus Reimer <k@ailis.de>
* See LICENSE.md for licensing information.
*/
package de.ailis.usb4java.adapter;
package org.usb4java.adapter;
import javax.usb.event.UsbPipeDataEvent;
import javax.usb.event.UsbPipeErrorEvent;

View File

@ -2,7 +2,7 @@
* Copyright (C) 2013 Klaus Reimer <k@ailis.de>
* See LICENSE.md for licensing information.
*/
package de.ailis.usb4java.adapter;
package org.usb4java.adapter;
import javax.usb.event.UsbServicesEvent;
import javax.usb.event.UsbServicesListener;

View File

@ -3,7 +3,7 @@
* See LICENSE.md for licensing information.
*/
package de.ailis.usb4java.descriptors;
package org.usb4java.descriptors;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;

View File

@ -3,7 +3,7 @@
* See LICENSE.md for licensing information.
*/
package de.ailis.usb4java.descriptors;
package org.usb4java.descriptors;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;

View File

@ -3,7 +3,7 @@
* See LICENSE.md for licensing information.
*/
package de.ailis.usb4java.descriptors;
package org.usb4java.descriptors;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;

View File

@ -3,7 +3,7 @@
* See LICENSE.md for licensing information.
*/
package de.ailis.usb4java.descriptors;
package org.usb4java.descriptors;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;

View File

@ -3,7 +3,7 @@
* See LICENSE.md for licensing information.
*/
package de.ailis.usb4java.descriptors;
package org.usb4java.descriptors;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;

View File

@ -3,9 +3,9 @@
* See LICENSE.md for licensing information.
*/
package de.ailis.usb4java.libusb;
package org.usb4java.libusb;
import static de.ailis.usb4java.test.UsbAssume.assumeUsbTestsEnabled;
import static org.usb4java.test.UsbAssume.assumeUsbTestsEnabled;
import org.junit.After;
import org.junit.Before;

View File

@ -3,9 +3,9 @@
* See LICENSE.md for licensing information.
*/
package de.ailis.usb4java.libusb;
package org.usb4java.libusb;
import static de.ailis.usb4java.test.UsbAssume.assumeUsbTestsEnabled;
import static org.usb4java.test.UsbAssume.assumeUsbTestsEnabled;
import org.junit.After;
import org.junit.Before;

View File

@ -3,9 +3,9 @@
* See LICENSE.md for licensing information.
*/
package de.ailis.usb4java.libusb;
package org.usb4java.libusb;
import static de.ailis.usb4java.test.UsbAssume.assumeUsbTestsEnabled;
import static org.usb4java.test.UsbAssume.assumeUsbTestsEnabled;
import org.junit.After;
import org.junit.Before;

View File

@ -3,9 +3,9 @@
* See LICENSE.md for licensing information.
*/
package de.ailis.usb4java.libusb;
package org.usb4java.libusb;
import static de.ailis.usb4java.test.UsbAssume.assumeUsbTestsEnabled;
import static org.usb4java.test.UsbAssume.assumeUsbTestsEnabled;
import org.junit.After;
import org.junit.Before;

View File

@ -3,9 +3,9 @@
* See LICENSE.md for licensing information.
*/
package de.ailis.usb4java.libusb;
package org.usb4java.libusb;
import static de.ailis.usb4java.test.UsbAssume.assumeUsbTestsEnabled;
import static org.usb4java.test.UsbAssume.assumeUsbTestsEnabled;
import org.junit.After;
import org.junit.Before;

View File

@ -3,9 +3,9 @@
* See LICENSE.md for licensing information.
*/
package de.ailis.usb4java.libusb;
package org.usb4java.libusb;
import static de.ailis.usb4java.test.UsbAssume.assumeUsbTestsEnabled;
import static org.usb4java.test.UsbAssume.assumeUsbTestsEnabled;
import org.junit.After;
import org.junit.Before;

View File

@ -3,9 +3,9 @@
* See LICENSE.md for licensing information.
*/
package de.ailis.usb4java.libusb;
package org.usb4java.libusb;
import static de.ailis.usb4java.test.UsbAssume.assumeUsbTestsEnabled;
import static org.usb4java.test.UsbAssume.assumeUsbTestsEnabled;
import org.junit.After;
import org.junit.Before;

View File

@ -3,9 +3,9 @@
* See LICENSE.md for licensing information.
*/
package de.ailis.usb4java.libusb;
package org.usb4java.libusb;
import static de.ailis.usb4java.test.UsbAssume.assumeUsbTestsEnabled;
import static org.usb4java.test.UsbAssume.assumeUsbTestsEnabled;
import org.junit.After;
import org.junit.Before;

View File

@ -3,9 +3,9 @@
* See LICENSE.md for licensing information.
*/
package de.ailis.usb4java.libusb;
package org.usb4java.libusb;
import static de.ailis.usb4java.test.UsbAssume.assumeUsbTestsEnabled;
import static org.usb4java.test.UsbAssume.assumeUsbTestsEnabled;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotEquals;
import static org.junit.Assert.assertTrue;
@ -19,7 +19,7 @@ import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import de.ailis.usb4java.utils.BufferUtils;
import org.usb4java.utils.BufferUtils;
/**
* Tests the device-scope methods of the {@link LibUsb} class which need a open

View File

@ -3,9 +3,9 @@
* See LICENSE.md for licensing information.
*/
package de.ailis.usb4java.libusb;
package org.usb4java.libusb;
import static de.ailis.usb4java.test.UsbAssume.assumeUsbTestsEnabled;
import static org.usb4java.test.UsbAssume.assumeUsbTestsEnabled;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;

View File

@ -3,9 +3,9 @@
* See LICENSE.md for licensing information.
*/
package de.ailis.usb4java.libusb;
package org.usb4java.libusb;
import static de.ailis.usb4java.test.UsbAssume.assumeUsbTestsEnabled;
import static org.usb4java.test.UsbAssume.assumeUsbTestsEnabled;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
@ -20,8 +20,8 @@ import java.nio.LongBuffer;
import org.junit.Test;
import de.ailis.usb4java.libusb.mocks.PollfdListenerMock;
import de.ailis.usb4java.utils.BufferUtils;
import org.usb4java.libusb.mocks.PollfdListenerMock;
import org.usb4java.utils.BufferUtils;
/**
* Tests the {@link LibUsb} class.

View File

@ -3,9 +3,9 @@
* See LICENSE.md for licensing information.
*/
package de.ailis.usb4java.libusb;
package org.usb4java.libusb;
import static de.ailis.usb4java.test.UsbAssume.assumeUsbTestsEnabled;
import static org.usb4java.test.UsbAssume.assumeUsbTestsEnabled;
import org.junit.After;
import org.junit.Before;

View File

@ -3,9 +3,9 @@
* See LICENSE.md for licensing information.
*/
package de.ailis.usb4java.libusb;
package org.usb4java.libusb;
import static de.ailis.usb4java.test.UsbAssume.assumeUsbTestsEnabled;
import static org.usb4java.test.UsbAssume.assumeUsbTestsEnabled;
import org.junit.After;
import org.junit.Before;

View File

@ -3,9 +3,9 @@
* See LICENSE.md for licensing information.
*/
package de.ailis.usb4java.libusb;
package org.usb4java.libusb;
import static de.ailis.usb4java.test.UsbAssume.assumeUsbTestsEnabled;
import static org.usb4java.test.UsbAssume.assumeUsbTestsEnabled;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotEquals;
import static org.junit.Assert.assertNotNull;

View File

@ -3,9 +3,9 @@
* See LICENSE.md for licensing information.
*/
package de.ailis.usb4java.libusb;
package org.usb4java.libusb;
import static de.ailis.usb4java.test.UsbAssume.assumeUsbTestsEnabled;
import static org.usb4java.test.UsbAssume.assumeUsbTestsEnabled;
import org.junit.After;
import org.junit.Before;

View File

@ -3,9 +3,9 @@
* See LICENSE.md for licensing information.
*/
package de.ailis.usb4java.libusb;
package org.usb4java.libusb;
import static de.ailis.usb4java.test.UsbAssume.assumeUsbTestsEnabled;
import static org.usb4java.test.UsbAssume.assumeUsbTestsEnabled;
import org.junit.After;
import org.junit.Before;

View File

@ -2,11 +2,11 @@
* Copyright (C) 2013 Klaus Reimer <k@ailis.de>
* See LICENSE.md for licensing information.
*/
package de.ailis.usb4java.libusb.mocks;
package org.usb4java.libusb.mocks;
import java.io.FileDescriptor;
import de.ailis.usb4java.libusb.PollfdListener;
import org.usb4java.libusb.PollfdListener;
/**
* A mocked pollfd listener implementation.

View File

@ -3,7 +3,7 @@
* See LICENSE.md for licensing information.
*/
package de.ailis.usb4java.test;
package org.usb4java.test;
import org.junit.internal.AssumptionViolatedException;
import org.junit.internal.runners.JUnit38ClassRunner;

View File

@ -3,7 +3,7 @@
* See LICENSE.md for licensing information.
*/
package de.ailis.usb4java.test;
package org.usb4java.test;
import static org.junit.Assume.assumeTrue;

View File

@ -3,7 +3,7 @@
* See LICENSE.md for licensing information.
*/
package de.ailis.usb4java.utils;
package org.usb4java.utils;
import static org.junit.Assert.assertEquals;
@ -12,11 +12,11 @@ import java.nio.ByteBuffer;
import org.junit.Test;
import de.ailis.usb4java.descriptors.SimpleUsbConfigurationDescriptor;
import de.ailis.usb4java.descriptors.SimpleUsbDeviceDescriptor;
import de.ailis.usb4java.descriptors.SimpleUsbEndpointDescriptor;
import de.ailis.usb4java.descriptors.SimpleUsbInterfaceDescriptor;
import de.ailis.usb4java.libusb.LibUsb;
import org.usb4java.descriptors.SimpleUsbConfigurationDescriptor;
import org.usb4java.descriptors.SimpleUsbDeviceDescriptor;
import org.usb4java.descriptors.SimpleUsbEndpointDescriptor;
import org.usb4java.descriptors.SimpleUsbInterfaceDescriptor;
import org.usb4java.libusb.LibUsb;
/**
* Tests the {@link DescriptorUtils} class.