提交 cabb5f01 编写于 作者: I imod

fix ambiguous method resolving issue

上级 da96d109
package hudson.maven;
import hudson.maven.local_repo.PerJobLocalRepositoryLocator;
import hudson.model.Item;
import org.jvnet.hudson.test.HudsonTestCase;
/**
......@@ -9,14 +11,14 @@ import org.jvnet.hudson.test.HudsonTestCase;
public class MavenModuleSetTest extends HudsonTestCase {
public void testConfigRoundtripLocalRepository() throws Exception {
MavenModuleSet p = createMavenProject();
configRoundtrip(p);
configRoundtrip((Item) p);
assertNull(p.getExplicitLocalRepository());
// make sure it roundtrips
PerJobLocalRepositoryLocator before = new PerJobLocalRepositoryLocator();
p.setLocalRepository(before);
configRoundtrip(p);
configRoundtrip((Item)p);
assertEqualDataBoundBeans(p.getLocalRepository(),before);
assertTrue(before!=p.getLocalRepository());
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册