Fix regressions with plugin dependency loading from #272

This is a quick and dirty fix because it's late. I'll need to
commit a better fix later.
This commit is contained in:
Andrew Steinborn
2020-02-16 03:19:13 -05:00
parent 3b6f8e2421
commit 37994449d7
6 changed files with 86 additions and 26 deletions

View File

@@ -69,8 +69,8 @@ class PluginDependencyUtilsTest {
void sortCandidatesMultiplePluginsDependentOnOne() throws Exception {
List<PluginDescription> plugins = ImmutableList.of(HAS_DEPENDENCY_3, HAS_DEPENDENCY_1,
NO_DEPENDENCY);
List<PluginDescription> expected = ImmutableList.of(NO_DEPENDENCY, HAS_DEPENDENCY_3,
HAS_DEPENDENCY_1);
List<PluginDescription> expected = ImmutableList.of(NO_DEPENDENCY, HAS_DEPENDENCY_1,
HAS_DEPENDENCY_3);
assertEquals(expected, PluginDependencyUtils.sortCandidates(plugins));
}