提交 2b2bd254 编写于 作者: C Christoph Kutzinski

fixed compilation problem in Eclipse

上级 6168fba0
......@@ -72,6 +72,7 @@ public class JobPropertyTest extends HudsonTestCase {
@TestExtension
public static class DescriptorImpl extends JobPropertyDescriptor {
@SuppressWarnings("rawtypes")
@Override
public boolean isApplicable(Class<? extends Job> jobType) {
return false;
......@@ -91,7 +92,7 @@ public class JobPropertyTest extends HudsonTestCase {
FreeStyleProject p = createFreeStyleProject();
JobPropertyWithConfigImpl before = new JobPropertyWithConfigImpl("Duke");
p.addProperty(before);
configRoundtrip(p);
configRoundtrip((Item)p);
JobPropertyWithConfigImpl after = p.getProperty(JobPropertyWithConfigImpl.class);
assertNotSame(after,before);
assertEqualDataBoundBeans(before, after);
......@@ -118,7 +119,7 @@ public class JobPropertyTest extends HudsonTestCase {
FreeStyleProject p = createFreeStyleProject();
InvisibleImpl before = new InvisibleImpl();
p.addProperty(before);
configRoundtrip(p);
configRoundtrip((Item)p);
InvisibleImpl after = p.getProperty(InvisibleImpl.class);
assertSame(after,before);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册