Search in sources :

Example 1 with SbtInstaller

use of org.jvnet.hudson.plugins.SbtPluginBuilder.SbtInstaller 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);
}
Also used : InstallSourceProperty(hudson.tools.InstallSourceProperty) SbtInstaller(org.jvnet.hudson.plugins.SbtPluginBuilder.SbtInstaller) SbtPluginBuilder(org.jvnet.hudson.plugins.SbtPluginBuilder) SbtInstallation(org.jvnet.hudson.plugins.SbtPluginBuilder.SbtInstallation) Test(org.junit.Test)

Aggregations

InstallSourceProperty (hudson.tools.InstallSourceProperty)1 Test (org.junit.Test)1 SbtPluginBuilder (org.jvnet.hudson.plugins.SbtPluginBuilder)1 SbtInstallation (org.jvnet.hudson.plugins.SbtPluginBuilder.SbtInstallation)1 SbtInstaller (org.jvnet.hudson.plugins.SbtPluginBuilder.SbtInstaller)1