From e7a699e4bec8db50335a761003e34d5bebd92f72 Mon Sep 17 00:00:00 2001 From: Cies Date: Thu, 28 Mar 2024 16:48:41 +0100 Subject: [PATCH] Ensure lodPlugins(SortedSet) it's exposed by test --- framework/test/play/plugins/PluginCollectionTest.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/framework/test/play/plugins/PluginCollectionTest.java b/framework/test/play/plugins/PluginCollectionTest.java index 594ef177..3a116188 100644 --- a/framework/test/play/plugins/PluginCollectionTest.java +++ b/framework/test/play/plugins/PluginCollectionTest.java @@ -15,6 +15,9 @@ import play.libs.WS; import java.util.List; +import java.util.Set; +import java.util.SortedSet; +import java.util.TreeSet; import static java.util.Arrays.asList; import static java.util.stream.Collectors.toList; @@ -136,6 +139,11 @@ public void onApplicationStop_runsPluginsInReverseOrder() { inOrder.verify(plugin2).onApplicationStop(); inOrder.verify(plugin1).onApplicationStop(); } + + @Test + public void loadPlugins_shouldAllowDirectInvocation() { + new PluginCollection().loadPlugins(new TreeSet<>()); + } } class TestPlugin extends PlayPlugin {{index = 1;}}