Browse Source

单元测试

research/11.0
kerry 4 years ago
parent
commit
8c7c2ac7f3
  1. 2
      designer-form/src/test/java/com/fr/design/preview/FormAdaptivePreviewTest.java

2
designer-realize/src/test/java/com/fr/design/preview/FormAdaptivePreviewTest.java → designer-form/src/test/java/com/fr/design/preview/FormAdaptivePreviewTest.java

@ -1,7 +1,6 @@
package com.fr.design.preview; package com.fr.design.preview;
import com.fr.design.mainframe.JForm; import com.fr.design.mainframe.JForm;
import com.fr.design.mainframe.JWorkBook;
import com.fr.general.web.ParameterConstants; import com.fr.general.web.ParameterConstants;
import org.easymock.EasyMock; import org.easymock.EasyMock;
import org.junit.Assert; import org.junit.Assert;
@ -25,6 +24,5 @@ public class FormAdaptivePreviewTest {
public void testAccept() { public void testAccept() {
FormAdaptivePreview formPreview = new FormAdaptivePreview(); FormAdaptivePreview formPreview = new FormAdaptivePreview();
Assert.assertTrue(formPreview.accept(EasyMock.mock(JForm.class))); Assert.assertTrue(formPreview.accept(EasyMock.mock(JForm.class)));
Assert.assertFalse(formPreview.accept(EasyMock.mock(JWorkBook.class)));
} }
} }
Loading…
Cancel
Save