25package trial.org.direct_bt;
27import org.direct_bt.BTMode;
28import org.direct_bt.BTSecurityLevel;
29import org.direct_bt.DiscoveryPolicy;
30import org.jau.net.EUI48;
31import org.junit.FixMethodOrder;
33import org.junit.runners.MethodSorters;
45@FixMethodOrder(MethodSorters.NAME_ASCENDING)
48 @Test(timeout = 10000)
49 public final
void test_i470_a()
51 final boolean serverSC =
true;
52 final String suffix =
"i470_a";
53 final int protocolSessionCount = 10;
54 final int max_connections_per_session = 200;
55 final boolean expSuccess =
false;
56 final boolean server_client_order =
true;
59 final boolean client_do_disconnect_randomly =
true;
60 final boolean server_do_disconnect_randomly =
false;
72 test8x_fullCycle(10000, suffix,
73 max_connections_per_session, expSuccess, server_client_order,
79 @Test(timeout = 10000)
80 public final
void test_i470_b()
82 final boolean serverSC =
true;
83 final String suffix =
"i470_b";
84 final int protocolSessionCount = 10;
85 final int max_connections_per_session = 200;
86 final boolean expSuccess =
false;
87 final boolean server_client_order =
true;
90 final boolean client_do_disconnect_randomly =
false;
91 final boolean server_do_disconnect_randomly =
true;
103 test8x_fullCycle(10000, suffix,
104 max_connections_per_session, expSuccess, server_client_order,
110 public static void main(
final String args[]) {
This central BTRole::Master participant works with DBTServer00.
Testing a full Bluetooth server and client lifecycle of operations, requiring two BT adapter:
This peripheral BTRole::Slave test participant works with DBTClient00.
Testing w/o client filtering processing device and hence not blocking deviceFound.
static void main(final String args[])
Bluetooth adapter operating mode.
DUAL
Dual Bluetooth mode, i.e.
Bluetooth Security Level.
ENC_ONLY
Encryption and no authentication (no MITM).
Discovery policy defines the BTAdapter discovery mode after connecting a remote BTDevice:
PAUSE_CONNECTED_UNTIL_DISCONNECTED
Pause discovery until all connected BTDevice become disconnected, effectively until AdapterStatusList...
void setDisconnectDeviceed(final boolean v)
Set disconnect after processing.
void setRemoveDevice(final boolean v)
Set remove device when disconnecting.
void setDiscoveryPolicy(final DiscoveryPolicy v)
Set DiscoveryPolicy.
void setProtocolSessionsLeft(final int v)