Package hudson.maven

Source Code of hudson.maven.MavenModuleSetTest

package hudson.maven;

import hudson.maven.local_repo.PerJobLocalRepositoryLocator;
import hudson.model.Item;

import org.jvnet.hudson.test.HudsonTestCase;

/**
* @author Kohsuke Kawaguchi
*/
public class MavenModuleSetTest extends HudsonTestCase {
    public void testConfigRoundtripLocalRepository() throws Exception {
        MavenModuleSet p = createMavenProject();
        configRoundtrip((Item) p);
       
        assertNull(p.getExplicitLocalRepository());

        // make sure it roundtrips
        PerJobLocalRepositoryLocator before = new PerJobLocalRepositoryLocator();
        p.setLocalRepository(before);
        configRoundtrip((Item)p);
        assertEqualDataBoundBeans(p.getLocalRepository(),before);
        assertTrue(before!=p.getLocalRepository());
    }
}
TOP

Related Classes of hudson.maven.MavenModuleSetTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.