use of org.jvnet.hudson.plugins.SbtPluginBuilder.SbtInstallation in project configuration-as-code-plugin by jenkinsci.
the class SbtTest method configure_sbt_tool.
@Test
public void configure_sbt_tool() {
final SbtPluginBuilder.DescriptorImpl descriptor = ExtensionList.lookupSingleton(SbtPluginBuilder.DescriptorImpl.class);
assertEquals(1, descriptor.getInstallations().length);
SbtInstallation sbt = descriptor.getInstallations()[0];
assertEquals("sbt", sbt.getName());
assertEquals("/usr/bin/sbt", sbt.getHome());
InstallSourceProperty installSourceProperty = sbt.getProperties().get(InstallSourceProperty.class);
assertEquals(1, installSourceProperty.installers.size());
SbtInstaller installer = installSourceProperty.installers.get(SbtInstaller.class);
assertEquals("1.2.8", installer.id);
}
Aggregations