diff options
author | Vincent Breitmoser <valodim@mugenguild.com> | 2014-10-03 04:31:09 +0200 |
---|---|---|
committer | Vincent Breitmoser <valodim@mugenguild.com> | 2014-10-03 04:31:09 +0200 |
commit | 5d6c2d90c209ba6e00f049fe93a85085964a95ae (patch) | |
tree | b169a8f1a7111eff9cb3f504cbb0104bbf761085 /OpenKeychain-Test/src/test/java/org/sufficientlysecure/keychain/util | |
parent | f456c8a17d7809aebc124cd7b5451c7cff754ab0 (diff) | |
download | open-keychain-5d6c2d90c209ba6e00f049fe93a85085964a95ae.tar.gz open-keychain-5d6c2d90c209ba6e00f049fe93a85085964a95ae.tar.bz2 open-keychain-5d6c2d90c209ba6e00f049fe93a85085964a95ae.zip |
fix unit test for ParcelableFileCache
Diffstat (limited to 'OpenKeychain-Test/src/test/java/org/sufficientlysecure/keychain/util')
-rw-r--r-- | OpenKeychain-Test/src/test/java/org/sufficientlysecure/keychain/util/ParcelableFileCacheTest.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/OpenKeychain-Test/src/test/java/org/sufficientlysecure/keychain/util/ParcelableFileCacheTest.java b/OpenKeychain-Test/src/test/java/org/sufficientlysecure/keychain/util/ParcelableFileCacheTest.java index 7f473c345..7a48d226f 100644 --- a/OpenKeychain-Test/src/test/java/org/sufficientlysecure/keychain/util/ParcelableFileCacheTest.java +++ b/OpenKeychain-Test/src/test/java/org/sufficientlysecure/keychain/util/ParcelableFileCacheTest.java @@ -27,6 +27,7 @@ import org.junit.runner.RunWith; import org.robolectric.Robolectric; import org.robolectric.RobolectricTestRunner; import org.robolectric.shadows.ShadowLog; +import org.sufficientlysecure.keychain.util.ParcelableFileCache.IteratorWithSize; import java.util.ArrayList; import java.util.Iterator; @@ -59,9 +60,9 @@ public class ParcelableFileCacheTest { cache.writeCache(list.size(), list.iterator()); // read back - Iterator<Bundle> it = cache.readCache(); + IteratorWithSize<Bundle> it = cache.readCache(); - Assert.assertEquals("number of entries must be correct", list.size(), cache.getNumEntries()); + Assert.assertEquals("number of entries must be correct", list.size(), it.getSize()); while (it.hasNext()) { Bundle b = it.next(); |