mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-19 14:19:53 +01:00
Fixed a long-broken test (the return type of a method had changed).
This commit is contained in:
@@ -1005,7 +1005,8 @@ public class H2DatabaseTest extends BriarTestCase {
|
|||||||
properties.put("foo", "foo");
|
properties.put("foo", "foo");
|
||||||
properties.put("bar", "bar");
|
properties.put("bar", "bar");
|
||||||
db.mergeLocalProperties(txn, transportId, properties);
|
db.mergeLocalProperties(txn, transportId, properties);
|
||||||
assertEquals(Collections.singletonList(properties),
|
Transport transport = new Transport(transportId, properties);
|
||||||
|
assertEquals(Collections.singletonList(transport),
|
||||||
db.getLocalTransports(txn));
|
db.getLocalTransports(txn));
|
||||||
|
|
||||||
// Update one of the properties and add another
|
// Update one of the properties and add another
|
||||||
@@ -1013,11 +1014,12 @@ public class H2DatabaseTest extends BriarTestCase {
|
|||||||
properties1.put("bar", "baz");
|
properties1.put("bar", "baz");
|
||||||
properties1.put("bam", "bam");
|
properties1.put("bam", "bam");
|
||||||
db.mergeLocalProperties(txn, transportId, properties1);
|
db.mergeLocalProperties(txn, transportId, properties1);
|
||||||
TransportProperties expected = new TransportProperties();
|
TransportProperties merged = new TransportProperties();
|
||||||
expected.put("foo", "foo");
|
merged.put("foo", "foo");
|
||||||
expected.put("bar", "baz");
|
merged.put("bar", "baz");
|
||||||
expected.put("bam", "bam");
|
merged.put("bam", "bam");
|
||||||
assertEquals(Collections.singletonList(expected),
|
Transport transport1 = new Transport(transportId, merged);
|
||||||
|
assertEquals(Collections.singletonList(transport1),
|
||||||
db.getLocalTransports(txn));
|
db.getLocalTransports(txn));
|
||||||
|
|
||||||
db.commitTransaction(txn);
|
db.commitTransaction(txn);
|
||||||
|
|||||||
Reference in New Issue
Block a user