📄 customerfreemarkerconfigurertest.java
字号:
package anni.core.web.freemarker;
import freemarker.template.Configuration;
import freemarker.template.ObjectWrapper;
import junit.framework.TestCase;
import static org.easymock.EasyMock.*;
import org.easymock.classextension.EasyMock;
public class CustomerFreeMarkerConfigurerTest extends TestCase {
CustomerFreeMarkerConfigurer conf = null;
Configuration c;
@Override
protected void setUp() {
conf = new CustomerFreeMarkerConfigurer();
}
@Override
protected void tearDown() {
}
public void testDefault() throws Exception {
assertNotNull(conf);
c = EasyMock.createMock(Configuration.class);
c.setObjectWrapper(ObjectWrapper.BEANS_WRAPPER);
EasyMock.replay(c);
conf.postProcessConfiguration(c);
EasyMock.verify();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -