ACS-3193 isNull(Class<T>) has been removed

(cherry picked from commit cfb56f33d1e7116eaa5e0661e3a11a506a405929)
This commit is contained in:
Domenico Sibilio
2022-11-02 13:41:19 +01:00
committed by Damian.Ujma@hyland.com
parent 0f36989a6c
commit e0e651322f
@@ -127,7 +127,7 @@ public class MetadataTrackerTest
// Subsequent calls to getTransactions must return a different set of transactions to avoid an infinite loop
when(repositoryClient.getTransactions(anyLong(), anyLong(), anyLong(), anyLong(), anyInt())).thenReturn(txs)
.thenReturn(txs).thenReturn(mock(Transactions.class));
when(repositoryClient.getTransactions(anyLong(), anyLong(), anyLong(), anyLong(), anyInt(), isNull(ShardState.class))).thenReturn(txs)
when(repositoryClient.getTransactions(anyLong(), anyLong(), anyLong(), anyLong(), anyInt(), isNull())).thenReturn(txs)
.thenReturn(txs).thenReturn(mock(Transactions.class));
when(repositoryClient.getTransactions(anyLong(), anyLong(), anyLong(), anyLong(), anyInt(), any(ShardState.class))).thenReturn(txs)
.thenReturn(txs).thenReturn(mock(Transactions.class));
@@ -157,7 +157,7 @@ public class MetadataTrackerTest
List<Transaction> txsList = new ArrayList<>();
when(txs.getTransactions()).thenReturn(txsList);
when(repositoryClient.getTransactions(anyLong(), anyLong(), anyLong(), anyLong(), anyInt(), isNull(ShardState.class))).thenReturn(txs);
when(repositoryClient.getTransactions(anyLong(), anyLong(), anyLong(), anyLong(), anyInt(), isNull())).thenReturn(txs);
when(repositoryClient.getTransactions(anyLong(), anyLong(), anyLong(), anyLong(), anyInt(), any(ShardState.class))).thenReturn(txs);
when(repositoryClient.getTransactions(anyLong(), anyLong(), anyLong(), anyLong(), anyInt())).thenReturn(txs);