diff --git a/test/net/sf/briar/plugins/bluetooth/BluetoothClientTest.java b/test/net/sf/briar/plugins/bluetooth/BluetoothClientTest.java index 51a85f7f0e3f5b684b82f06366f9d572057c8e78..96ee30ca24649b05675f72369cfe69f4b0555620 100644 --- a/test/net/sf/briar/plugins/bluetooth/BluetoothClientTest.java +++ b/test/net/sf/briar/plugins/bluetooth/BluetoothClientTest.java @@ -19,7 +19,7 @@ public class BluetoothClientTest extends DuplexClientTest { // Store the server's Bluetooth address and UUID TransportProperties p = new TransportProperties(); p.put("address", serverAddress); - p.put("uuid", BluetoothTest.UUID); + p.put("uuid", BluetoothTest.getUuid()); Map<ContactId, TransportProperties> remote = Collections.singletonMap(contactId, p); // Create the plugin diff --git a/test/net/sf/briar/plugins/bluetooth/BluetoothServerTest.java b/test/net/sf/briar/plugins/bluetooth/BluetoothServerTest.java index 9a492f37fea21ac3f7caa958f1f7fa9d62db99aa..b818d05e7355f452848c59e40c5b7543dfe2dd6a 100644 --- a/test/net/sf/briar/plugins/bluetooth/BluetoothServerTest.java +++ b/test/net/sf/briar/plugins/bluetooth/BluetoothServerTest.java @@ -16,7 +16,7 @@ public class BluetoothServerTest extends DuplexServerTest { private BluetoothServerTest(Executor executor) { // Store the UUID TransportProperties local = new TransportProperties(); - local.put("uuid", BluetoothTest.UUID); + local.put("uuid", BluetoothTest.getUuid()); // Create the plugin callback = new ServerCallback(new TransportConfig(), local, Collections.singletonMap(contactId, new TransportProperties())); diff --git a/test/net/sf/briar/plugins/bluetooth/BluetoothTest.java b/test/net/sf/briar/plugins/bluetooth/BluetoothTest.java index b67c4b3c4f556f62c33c43bb37a90c26066c44c4..17676bb08b254671e72d8fcb9d94d47db3d4ff95 100644 --- a/test/net/sf/briar/plugins/bluetooth/BluetoothTest.java +++ b/test/net/sf/briar/plugins/bluetooth/BluetoothTest.java @@ -1,6 +1,13 @@ package net.sf.briar.plugins.bluetooth; -interface BluetoothTest { +import java.util.UUID; - static final String UUID = "CABBA6E5CABBA6E5CABBA6E5CABBA6E5"; +class BluetoothTest { + + private static final String EMPTY_UUID = + UUID.nameUUIDFromBytes(new byte[0]).toString().replaceAll("-", ""); + + static String getUuid() { + return EMPTY_UUID; + } } \ No newline at end of file