package hudson.maven;

import hudson.maven.local_repo.PerJobLocalRepositoryLocator;
import org.jvnet.hudson.test.HudsonTestCase;

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

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

@@ -77,16 +77,43 @@
 ocator;%0A
+import hudson.model.Item;%0A%0A
 import o
@@ -149,16 +149,16 @@
 stCase;%0A
-
 %0A/**%0A * 
@@ -381,32 +381,39 @@
 configRoundtrip(
+(Item) 
 p);%0A        %0A   
@@ -609,32 +609,32 @@
 sitory(before);%0A
-
         configRo
@@ -641,16 +641,22 @@
 undtrip(
+(Item)
 p);%0A    

fix ambiguous method resolving issue