NIFI-9672: fix flaky tests caused by the use of HashMap.

This closes #5758

Signed-off-by: Mike Thomsen <mthomsen@apache.org>
This commit is contained in:
xinyuwu4 2022-02-03 13:27:30 -06:00 committed by Mike Thomsen
parent 0ade040b76
commit 22b47ccc7b
No known key found for this signature in database
GPG Key ID: 88511C3D4CAD246F
1 changed files with 6 additions and 5 deletions

View File

@ -27,6 +27,7 @@ import org.junit.Test;
import java.nio.charset.StandardCharsets;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;
public class TestFetchHBaseRow {
@ -124,7 +125,7 @@ public class TestFetchHBaseRow {
@Test
public void testFetchToAttributesWithStringValues() {
final Map<String, String> cells = new HashMap<>();
final Map<String, String> cells = new LinkedHashMap<>();
cells.put("cq1", "val1");
cells.put("cq2", "val2");
@ -182,7 +183,7 @@ public class TestFetchHBaseRow {
@Test
public void testFetchToAttributesWithBase64Values() {
final Map<String, String> cells = new HashMap<>();
final Map<String, String> cells = new LinkedHashMap<>();
cells.put("cq1", "val1");
cells.put("cq2", "val2");
@ -238,7 +239,7 @@ public class TestFetchHBaseRow {
@Test
public void testFetchToContentWithStringValues() {
final Map<String, String> cells = new HashMap<>();
final Map<String, String> cells = new LinkedHashMap<>();
cells.put("cq1", "val1");
cells.put("cq2", "val2");
@ -293,7 +294,7 @@ public class TestFetchHBaseRow {
@Test
public void testFetchSpecificColumnsToContentWithBase64() {
final Map<String, String> cells = new HashMap<>();
final Map<String, String> cells = new LinkedHashMap<>();
cells.put("cq1", "val1");
cells.put("cq2", "val2");
@ -332,7 +333,7 @@ public class TestFetchHBaseRow {
@Test
public void testFetchToContentWithQualifierAndValueJSON() {
final Map<String, String> cells = new HashMap<>();
final Map<String, String> cells = new LinkedHashMap<>();
cells.put("cq1", "val1");
cells.put("cq2", "val2");