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