NIFI-10744 Used LinkedHashMap in TestScanHBase methods

This closes #6633

Signed-off-by: David Handermann <exceptionfactory@apache.org>
This commit is contained in:
sopan98 2022-11-01 20:12:11 -05:00 committed by exceptionfactory
parent ce18b63db0
commit 889254a9dc
No known key found for this signature in database
GPG Key ID: 29B6A52D2AAE8DBA
2 changed files with 5 additions and 3 deletions

View File

@ -29,12 +29,13 @@ import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
public class MockHBaseClientService extends AbstractControllerService implements HBaseClientService {
private Map<String,ResultCell[]> results = new HashMap<>();
private Map<String,ResultCell[]> results = new LinkedHashMap<>();
private Map<String, List<PutFlowFile>> flowFilePuts = new HashMap<>();
private boolean throwException = false;
private boolean throwExceptionDuringBatchDelete = false;

View File

@ -24,6 +24,7 @@ import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
@ -127,7 +128,7 @@ public class TestScanHBase {
@Test
public void testScanToContentWithStringValues() {
final Map<String, String> cells = new HashMap<>();
final Map<String, String> cells = new LinkedHashMap<>();
cells.put("cq1", "val1");
cells.put("cq2", "val2");
@ -292,7 +293,7 @@ public class TestScanHBase {
@Test
public void testScanToContentWithQualifierAndValueJSON() {
final Map<String, String> cells = new HashMap<>();
final Map<String, String> cells = new LinkedHashMap<>();
cells.put("cq1", "val1");
cells.put("cq2", "val2");