mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 05:22:22 +00:00
Disambiguate configRoundtrip call for the sake of the Eclipse compiler
This commit is contained in:
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() {
|
||||
|
||||
Reference in new issue
Block a user