mirror of https://github.com/apache/nifi.git
NIFI-10744 Used LinkedHashMap in TestScanHBase methods
This closes #6633 Signed-off-by: David Handermann <exceptionfactory@apache.org>
This commit is contained in:
parent
ce18b63db0
commit
889254a9dc
|
@ -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;
|
||||
|
|
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in New Issue