Disambiguate configRoundtrip call for the sake of the Eclipse compiler

This commit is contained in:
Christoph Kutzinski committed 2012-06-24 13:58:01 +02:00
1 parent ed3b198fbb
commit 4b828e4e63
1 file changed
+4 -1
@@ -2,6 +2,8 @@ package jenkins.scm;
import com.gargoylesoftware.htmlunit.html.HtmlPage;
import hudson.model.FreeStyleProject;
import hudson.model.Item;
import org.jvnet.hudson.test.HudsonTestCase;
import org.jvnet.hudson.test.TestExtension;
import hudson.model.AbstractProject;
@@ -33,7 +35,7 @@ public class SCMCheckoutStrategyTest extends HudsonTestCase {
TestSCMCheckoutStrategy before = new TestSCMCheckoutStrategy();
p.setScmCheckoutStrategy(before);
configRoundtrip(p);
configRoundtrip((Item)p);
SCMCheckoutStrategy after = p.getScmCheckoutStrategy();
assertNotSame(before,after);
assertSame(before.getClass(), after.getClass());
@@ -46,6 +48,7 @@ public class SCMCheckoutStrategyTest extends HudsonTestCase {
return page.getWebResponse().getContentAsString().contains("Advanced Source Code Management");
}
@SuppressWarnings("rawtypes")
public static class TestSCMCheckoutStrategy extends SCMCheckoutStrategy {
@DataBoundConstructor
public TestSCMCheckoutStrategy() {