Skip to content

Commit

Permalink
Spotless Again
Browse files Browse the repository at this point in the history
Signed-off-by: Sarat Vemulapalli <[email protected]>
  • Loading branch information
saratvemulapalli committed Aug 23, 2024
1 parent ee12522 commit f0fde0a
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,8 @@ public void testAllowList() throws IOException {

public void testInvalidAllowList() throws IOException {
List<String> invalidAllowList = List.of("set");
final Settings settings = settingsBuilder.putList(
IngestUserAgentPlugin.PROCESSORS_ALLOWLIST_SETTING.getKey(),
invalidAllowList
).build();
final Settings settings = settingsBuilder.putList(IngestUserAgentPlugin.PROCESSORS_ALLOWLIST_SETTING.getKey(), invalidAllowList)
.build();
try (IngestUserAgentPlugin plugin = new IngestUserAgentPlugin()) {
IllegalArgumentException e = expectThrows(
IllegalArgumentException.class,
Expand All @@ -90,8 +88,7 @@ public void testAllowListNotSpecified() throws IOException {
}

private void runAllowListTest(List<String> allowList) throws IOException {
final Settings settings = settingsBuilder.putList(IngestUserAgentPlugin.PROCESSORS_ALLOWLIST_SETTING.getKey(), allowList)
.build();
final Settings settings = settingsBuilder.putList(IngestUserAgentPlugin.PROCESSORS_ALLOWLIST_SETTING.getKey(), allowList).build();
try (IngestUserAgentPlugin plugin = new IngestUserAgentPlugin()) {
assertEquals(Set.copyOf(allowList), plugin.getProcessors(createParameters(settings)).keySet());
}
Expand Down

0 comments on commit f0fde0a

Please sign in to comment.