mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-14 19:59:05 +01:00
Disable shuffling of contacts when unit testing the modem plugin.
This commit is contained in:
@@ -37,7 +37,7 @@ public class ModemPluginTest extends BriarTestCase {
|
||||
final SerialPortList serialPortList =
|
||||
context.mock(SerialPortList.class);
|
||||
final ModemPlugin plugin = new ModemPlugin(null, modemFactory,
|
||||
serialPortList, null, 0L);
|
||||
serialPortList, null, 0L, true);
|
||||
final Modem modem = context.mock(Modem.class);
|
||||
context.checking(new Expectations() {{
|
||||
oneOf(serialPortList).getPortNames();
|
||||
@@ -71,7 +71,7 @@ public class ModemPluginTest extends BriarTestCase {
|
||||
final DuplexPluginCallback callback =
|
||||
context.mock(DuplexPluginCallback.class);
|
||||
final ModemPlugin plugin = new ModemPlugin(null, modemFactory,
|
||||
serialPortList, callback, 0L);
|
||||
serialPortList, callback, 0L, true);
|
||||
final Modem modem = context.mock(Modem.class);
|
||||
final TransportProperties local = new TransportProperties();
|
||||
local.put("iso3166", ISO_1336);
|
||||
@@ -112,7 +112,7 @@ public class ModemPluginTest extends BriarTestCase {
|
||||
final DuplexPluginCallback callback =
|
||||
context.mock(DuplexPluginCallback.class);
|
||||
final ModemPlugin plugin = new ModemPlugin(null, modemFactory,
|
||||
serialPortList, callback, 0L);
|
||||
serialPortList, callback, 0L, true);
|
||||
final Modem modem = context.mock(Modem.class);
|
||||
final TransportProperties local = new TransportProperties();
|
||||
local.put("iso3166", ISO_1336);
|
||||
@@ -153,7 +153,7 @@ public class ModemPluginTest extends BriarTestCase {
|
||||
final DuplexPluginCallback callback =
|
||||
context.mock(DuplexPluginCallback.class);
|
||||
final ModemPlugin plugin = new ModemPlugin(null, modemFactory,
|
||||
serialPortList, callback, 0L);
|
||||
serialPortList, callback, 0L, true);
|
||||
final Modem modem = context.mock(Modem.class);
|
||||
final TransportProperties local = new TransportProperties();
|
||||
local.put("iso3166", ISO_1336);
|
||||
@@ -202,8 +202,9 @@ public class ModemPluginTest extends BriarTestCase {
|
||||
context.mock(SerialPortList.class);
|
||||
final DuplexPluginCallback callback =
|
||||
context.mock(DuplexPluginCallback.class);
|
||||
// Disable shuffling for this test, it confuses jMock
|
||||
final ModemPlugin plugin = new ModemPlugin(pluginExecutor, modemFactory,
|
||||
serialPortList, callback, 0L);
|
||||
serialPortList, callback, 0L, false);
|
||||
final Modem modem = context.mock(Modem.class);
|
||||
final TransportProperties local = new TransportProperties();
|
||||
local.put("iso3166", ISO_1336);
|
||||
|
||||
Reference in New Issue
Block a user