Empty transport configs/properties should be treated the same as nulls.

This commit is contained in:
akwizgran
2012-12-15 16:02:35 +00:00
parent 28af51b156
commit 3b3ab6fd1a
11 changed files with 62 additions and 49 deletions

View File

@@ -42,7 +42,7 @@ public class TorPluginTest extends BriarTestCase {
assertTrue(onion.endsWith(".onion"));
// Create another plugin instance for the client
Callback clientCallback = new Callback();
clientCallback.config.put("noHiddenService", "");
clientCallback.config.put("noHiddenService", "true");
TransportProperties p = new TransportProperties();
p.put("onion", onion);
clientCallback.remote.put(contactId, p);