Skip to content

Commit

Permalink
NIFI-14051 Changed use of Map.of back to instantation of HashMap as t…
Browse files Browse the repository at this point in the history
…he map needs to be modified.
  • Loading branch information
dan-s1 committed Dec 6, 2024
1 parent 7e542b3 commit 7c269ed
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1109,8 +1109,9 @@ public void testInitialMaxValueWithELAndMultipleTables() throws SQLException {
runner.setProperty(GenerateTableFetch.TABLE_NAME, "${table.name}");
runner.setProperty(GenerateTableFetch.MAX_VALUE_COLUMN_NAMES, "ID");
runner.setProperty("initial.maxvalue.ID", "${maxval.id}");
Map<String, String> attrs = Map.of("maxval.id", "1", "table.name", "TEST_QUERY_DB_TABLE");
runner.setIncomingConnection(true);
Map<String, String> attrs = new HashMap<>();
attrs.put("maxval.id", "1");
attrs.put("table.name", "TEST_QUERY_DB_TABLE"); runner.setIncomingConnection(true);
runner.enqueue(new byte[0], attrs);
runner.run();
runner.assertAllFlowFilesTransferred(REL_SUCCESS, 1);
Expand Down

0 comments on commit 7c269ed

Please sign in to comment.