From b253823a9e9806bbc5f6aad7f6c82f4fea8bd817 Mon Sep 17 00:00:00 2001 From: Keuin Date: Mon, 1 Mar 2021 22:55:34 +0800 Subject: Fix a failing test --- .../incremental/ObjectCollectionIteratorTest.java | 27 +++++++++++----------- 1 file changed, 13 insertions(+), 14 deletions(-) (limited to 'src/test/java/com/keuin/kbackupfabric') diff --git a/src/test/java/com/keuin/kbackupfabric/backup/incremental/ObjectCollectionIteratorTest.java b/src/test/java/com/keuin/kbackupfabric/backup/incremental/ObjectCollectionIteratorTest.java index 8404eb1..91596f2 100644 --- a/src/test/java/com/keuin/kbackupfabric/backup/incremental/ObjectCollectionIteratorTest.java +++ b/src/test/java/com/keuin/kbackupfabric/backup/incremental/ObjectCollectionIteratorTest.java @@ -1,6 +1,5 @@ package com.keuin.kbackupfabric.backup.incremental; -import com.keuin.kbackupfabric.backup.incremental.identifier.FileIdentifierProvider; import com.keuin.kbackupfabric.backup.incremental.identifier.ObjectIdentifier; import com.keuin.kbackupfabric.backup.incremental.identifier.Sha256Identifier; import org.junit.Test; @@ -12,7 +11,7 @@ import java.util.HashSet; import java.util.Set; import java.util.stream.Collectors; -import static org.junit.Assert.*; +import static org.junit.Assert.assertEquals; public class ObjectCollectionIteratorTest { @Test @@ -31,18 +30,18 @@ public class ObjectCollectionIteratorTest { }); assertEquals(new HashSet<>(Arrays.asList("1", "2", "3", "a", "b", "c", "d", "e", "f", "z1", "z2", "z3")), nameSet); Set desiredIdSet = new HashSet<>(Arrays.asList( - "S2-092FCFBBCFCA3B5BE7AE1B5E58538E92C35AB273AE13664FED0D67484C8E78A6", - "S2-A2BBDB2DE53523B8099B37013F251546F3D65DBE7A0774FA41AF0A4176992FD4", - "S2-A3A5E715F0CC574A73C3F9BEBB6BC24F32FFD5B67B387244C2C909DA779A1478", - "S2-0263829989B6FD954F72BAAF2FC64BC2E2F01D692D4DE72986EA808F6E99813F", - "S2-53C234E5E8472B6AC51C1AE1CAB3FE06FAD053BEB8EBFD8977B010655BFDD3C3", - "S2-D8FF994D310BD1F7582DC285366C3292DEB6A8F2EC64A4E7D0B3004190200034", - "S2-8D74BEEC1BE996322AD76813BAFB92D40839895D6DD7EE808B17CA201EAC98BE", - "S2-4355A46B19D348DC2F57C046F8EF63D4538EBB936000F3C9EE954A27460DD865", - "S2-87428FC522803D31065E7BCE3CF03FE475096631E5E07BBD7A0FDE60C4CF25C7", - "S2-1121CFCCD5913F0A63FEC40A6FFD44EA64F9DC135C66634BA001D10BCF4302A2", - "S2-AE6C381493F88DA4351218C39BE5287541C9F9D4312A941E431EB4371BC515B7", - "S2-5E1B3B203B8D9C1FE1424420B5D56A8244880E1A7539EB7E88B035EC0257FAFE" + "S2-F1B2F662800122BED0FF255693DF89C4487FBDCF453D3524A42D4EC20C3D9C04", + "S2-DF4E26A04A444901B95AFEF44E4A96CFAE34690FFF2AD2C66389C70079CDFF2B", + "S2-24BA1E99DC06B19351323AAE0D7370243D586475A634B7F6FF7927FBC72CFAED", + "S2-8E4621379786EF42A4FEC155CD525C291DD7DB3C1FDE3478522F4F61C03FD1BD", + "S2-679E273F78FC8F8BA114DB23C2DCE80CC77C91083939825CA830152F2F080D08", + "S2-EF1FAC987A48A7C02176F7E1C2D0E5CBDA826C9558290BA153C90EA16D5D5A96", + "S2-39E275DAD5FC449C721EBA61F6524ADDDE80C31FA2D698124F3BF1C9E622664D", + "S2-18CD8A3E1EFEF1F4B92DBB65BA09F50CF7332512324BCAE2F4531BA4EAB0E60A", + "S2-D1197131ACE5A85BC0C76192B742E92DFFA2AC763A119B705F326827B087F314", + "S2-6F9047EB742EFC9D495C531E3CDD11C87B420B5913DEE4E2893C6CF095395D16", + "S2-780B590E823368F04FF6782EEE4E506BD5F504460CF797C02180B4569A64CD03", + "S2-12862F6E181922C4B652768CF8D4128626B83631B1990E9B8DF54BE2B725BC5D" )); assertEquals(desiredIdSet, idSet.stream().map(ObjectIdentifier::getIdentification).collect(Collectors.toSet())); } -- cgit v1.2.3