File D:\maven-qcr-plugin-testsunitaires\qcr4java\jenkins-master\target\site\qc\test\src\test\java\hudson\maven\MavenModuleSetTest.java.html

1 package hudson.maven;
2
3 import hudson.maven.local_repo.PerJobLocalRepositoryLocator;
4 import hudson.model.Item;
5
6 import org.jvnet.hudson.test.HudsonTestCase;
7
8 /**
9 * @author Kohsuke Kawaguchi
10 */
11 public class MavenModuleSetTest extends HudsonTestCase {
12 public void testConfigRoundtripLocalRepository() throws Exception {
13 MavenModuleSet p = createMavenProject();
14 configRoundtrip((Item) p);
15
16 assertNull(p.getExplicitLocalRepository());
17
18 // make sure it roundtrips
19 PerJobLocalRepositoryLocator before = new PerJobLocalRepositoryLocator();
20 p.setLocalRepository(before);
21 configRoundtrip((Item)p);
22 assertEqualDataBoundBeans(p.getLocalRepository(),before);
23 assertTrue(before!=p.getLocalRepository());
24 }
25 }
26