|
|
|
@ -6,7 +6,6 @@ import com.fr.design.designer.creator.XCreator;
|
|
|
|
|
import com.fr.design.fun.ClipboardHandlerProvider; |
|
|
|
|
import com.fr.design.fun.impl.AbstractClipboardHandlerProvider; |
|
|
|
|
import com.fr.design.mainframe.FormDesigner; |
|
|
|
|
import com.fr.form.main.ExtraFormClassManager; |
|
|
|
|
import com.fr.plugin.injectable.PluginModule; |
|
|
|
|
import com.fr.stable.fun.mark.Mutable; |
|
|
|
|
import org.easymock.EasyMock; |
|
|
|
@ -59,18 +58,15 @@ public class SelectionModelTest {
|
|
|
|
|
EasyMock.expect(designManager.getArray(ClipboardHandlerProvider.XML_TAG)) |
|
|
|
|
.andReturn(providers) |
|
|
|
|
.anyTimes(); |
|
|
|
|
ExtraFormClassManager formManager = EasyMock.mock(ExtraFormClassManager.class); |
|
|
|
|
EasyMock.expect(formManager.getArray("DesignerEditListenerProvider")) |
|
|
|
|
EasyMock.expect(designManager.getArray("DesignerEditListenerProvider")) |
|
|
|
|
.andReturn(new HashSet<Mutable>()) |
|
|
|
|
.anyTimes(); |
|
|
|
|
EasyMock.replay(designManager, formManager); |
|
|
|
|
EasyMock.replay(designManager); |
|
|
|
|
|
|
|
|
|
PowerMock.mockStatic(PluginModule.class); |
|
|
|
|
EasyMock.expect(PluginModule.getAgent(PluginModule.ExtraDesign)) |
|
|
|
|
.andReturn(designManager) |
|
|
|
|
.anyTimes(); |
|
|
|
|
EasyMock.expect(PluginModule.getAgent(PluginModule.ExtraForm)) |
|
|
|
|
.andReturn(formManager).anyTimes(); |
|
|
|
|
PowerMock.replayAll(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|