mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 03:09:04 +01:00
30 lines
957 B
Java
30 lines
957 B
Java
package net.sf.briar.plugins.bluetooth;
|
|
|
|
import java.util.Collections;
|
|
import java.util.concurrent.Executor;
|
|
import java.util.concurrent.Executors;
|
|
|
|
import net.sf.briar.api.TransportConfig;
|
|
import net.sf.briar.api.TransportProperties;
|
|
import net.sf.briar.plugins.StreamServerTest;
|
|
|
|
//This is not a JUnit test - it has to be run manually while the server test
|
|
//is running on another machine
|
|
public class BluetoothServerTest extends StreamServerTest {
|
|
|
|
private BluetoothServerTest() {
|
|
// Store the UUID
|
|
TransportProperties local = new TransportProperties();
|
|
local.put("uuid", BluetoothTest.UUID);
|
|
// Create the plugin
|
|
callback = new ServerCallback(new TransportConfig(), local,
|
|
Collections.singletonMap(contactId, new TransportProperties()));
|
|
Executor e = Executors.newCachedThreadPool();
|
|
plugin = new BluetoothPlugin(e, callback, 0L);
|
|
}
|
|
|
|
public static void main(String[] args) throws Exception {
|
|
new BluetoothServerTest().run();
|
|
}
|
|
}
|