Skip to content

Commit

Permalink
Ensure lodPlugins(SortedSet) it's exposed by test
Browse files Browse the repository at this point in the history
  • Loading branch information
Cies authored and Cies committed Mar 28, 2024
1 parent b7c28cc commit e7a699e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions framework/test/play/plugins/PluginCollectionTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;}}
Expand Down

0 comments on commit e7a699e

Please sign in to comment.