Plugin manager must add transports to the DB before activating them.

This commit is contained in:
akwizgran
2013-02-12 16:04:22 +00:00
parent d3a8dae583
commit d18fc1330b
6 changed files with 43 additions and 15 deletions

View File

@@ -54,6 +54,8 @@ public class PluginManagerImplTest extends BriarTestCase {
will(returnValue(Arrays.asList(removableDrive)));
oneOf(duplexPluginConfig).getFactories();
will(returnValue(Arrays.asList(lanTcp)));
exactly(2).of(db).addTransport(with(any(TransportId.class)));
will(returnValue(true));
oneOf(poller).start(with(any(Collection.class)));
allowing(db).getConfig(with(any(TransportId.class)));
will(returnValue(new TransportConfig()));