You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
815 B
28 lines
815 B
package com.fr.design.preview; |
|
|
|
import com.fr.design.mainframe.JForm; |
|
import com.fr.general.web.ParameterConstants; |
|
import org.easymock.EasyMock; |
|
import org.junit.Assert; |
|
import org.junit.Test; |
|
|
|
import java.util.Map; |
|
|
|
/** |
|
* Created by kerry on 2020-04-24 |
|
*/ |
|
public class FormAdaptivePreviewTest { |
|
@Test |
|
public void testParametersForPreview() { |
|
FormAdaptivePreview formPreview = new FormAdaptivePreview(); |
|
Map<String, Object> map = formPreview.parametersForPreview(); |
|
Assert.assertEquals(1, map.size()); |
|
Assert.assertEquals("form_adaptive", map.get(ParameterConstants.OP)); |
|
} |
|
|
|
@Test |
|
public void testAccept() { |
|
FormAdaptivePreview formPreview = new FormAdaptivePreview(); |
|
Assert.assertTrue(formPreview.accept(EasyMock.mock(JForm.class))); |
|
} |
|
}
|
|
|