Search in sources :

Example 1 with ExtractResourceSCM

use of org.jvnet.hudson.test.ExtractResourceSCM in project blueocean-plugin by jenkinsci.

the class PipelineApiTest method mavenModulesNoteListed.

@Test
public void mavenModulesNoteListed() throws Exception {
    ToolInstallations.configureDefaultMaven("apache-maven-2.2.1", Maven.MavenInstallation.MAVEN_21);
    MavenModuleSet m = j.jenkins.createProject(MavenModuleSet.class, "p");
    m.setScm(new ExtractResourceSCM(getClass().getResource("maven-multimod.zip")));
    assertFalse("MavenModuleSet.isNonRecursive() should be false", m.isNonRecursive());
    j.buildAndAssertSuccess(m);
    List responses = get("/organizations/jenkins/pipelines/", List.class);
    assertEquals(1, responses.size());
    assertEquals("p", ((Map) responses.get(0)).get("name"));
}
Also used : List(java.util.List) ImmutableList(com.google.common.collect.ImmutableList) ExtractResourceSCM(org.jvnet.hudson.test.ExtractResourceSCM) MavenModuleSet(hudson.maven.MavenModuleSet) Test(org.junit.Test)

Aggregations

ImmutableList (com.google.common.collect.ImmutableList)1 MavenModuleSet (hudson.maven.MavenModuleSet)1 List (java.util.List)1 Test (org.junit.Test)1 ExtractResourceSCM (org.jvnet.hudson.test.ExtractResourceSCM)1