Fix handling of snapshot plugin dependencies

This commit is contained in:
Sebastian Sdorra
2020-10-22 14:09:52 +02:00
parent 49607236e5
commit 1195026fe6
4 changed files with 32 additions and 2 deletions

View File

@@ -144,6 +144,17 @@ class PluginInstallationVerifierTest {
PluginInstallationVerifier.verify(context, descriptor);
}
@Test
@SuppressWarnings("squid:S2699") // we are happy if no exception is thrown
void shouldVerifyPluginWithSnapshotDependencies() {
matchConditions();
PluginInstallationContext context = mockInstallationOf(IID_PLUGIN, "1.0.0-SNAPSHOT");
mockDependingOf(IID_PLUGIN, "1.0.0-20201022.094711-15");
PluginInstallationVerifier.verify(context, descriptor);
}
@Test
@SuppressWarnings("squid:S2699") // we are happy if no exception is thrown
void shouldVerifyPluginWithOptionalDependency() {