|
|
|
@ -12,7 +12,6 @@ import com.fr.config.dao.impl.LocalXmlEntityDao;
|
|
|
|
|
import com.fr.design.mainframe.theme.utils.DefaultThemedTemplateCellElementCase; |
|
|
|
|
import com.fr.form.main.Form; |
|
|
|
|
import com.fr.form.ui.ElementCaseEditor; |
|
|
|
|
import com.fr.form.ui.container.OccupiedLayout; |
|
|
|
|
import com.fr.form.ui.container.WFitLayout; |
|
|
|
|
import com.fr.general.ImageWithSuffix; |
|
|
|
|
import com.fr.general.ModuleContext; |
|
|
|
@ -25,17 +24,13 @@ import com.fr.report.restriction.ReportRestrictionScene;
|
|
|
|
|
import com.fr.report.worksheet.FormElementCase; |
|
|
|
|
import com.fr.report.worksheet.WorkSheet; |
|
|
|
|
import com.fr.restriction.Restrictions; |
|
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
|
import com.fr.stable.module.Module; |
|
|
|
|
import com.fr.start.MainDesigner; |
|
|
|
|
import com.fr.third.guava.collect.Lists; |
|
|
|
|
import com.fr.transaction.WorkerCallBack; |
|
|
|
|
import junit.framework.TestCase; |
|
|
|
|
import org.easymock.EasyMock; |
|
|
|
|
import org.junit.Assert; |
|
|
|
|
import org.junit.Ignore; |
|
|
|
|
import org.junit.runner.RunWith; |
|
|
|
|
import org.mockito.Mockito; |
|
|
|
|
import org.powermock.api.easymock.PowerMock; |
|
|
|
|
import org.powermock.core.classloader.annotations.PowerMockIgnore; |
|
|
|
|
import org.powermock.modules.junit4.PowerMockRunner; |
|
|
|
|
|
|
|
|
@ -57,6 +52,7 @@ public class JFileTest extends TestCase {
|
|
|
|
|
MainDesigner designer = new MainDesigner(new String[0]); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Ignore("涉及到UI") |
|
|
|
|
public void testJWorkBookSetPicture() { |
|
|
|
|
WorkBook workBook = new WorkBook(); |
|
|
|
|
WorkSheet workSheet = new WorkSheet(); |
|
|
|
@ -72,6 +68,7 @@ public class JFileTest extends TestCase {
|
|
|
|
|
Assert.assertEquals(imageWithSuffix, cellElement.getValue()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Ignore("涉及到UI") |
|
|
|
|
public void testJFormSetPicture() { |
|
|
|
|
Form form = new Form(); |
|
|
|
|
ElementCaseEditor editor = new ElementCaseEditor(); |