📄 actionconfigtest.java
字号:
/* * Copyright (c) 2002-2003 by OpenSymphony * All rights reserved. */package com.opensymphony.xwork2.config.entities;import com.opensymphony.xwork2.util.location.LocationImpl;import com.opensymphony.xwork2.XWorkTestCase;/** * ActionConfigTest */public class ActionConfigTest extends XWorkTestCase { public void testToString() { ActionConfig cfg = new ActionConfig(); cfg.setClassName("foo.Bar"); cfg.setMethodName("execute"); cfg.setLocation(new LocationImpl(null, "foo/xwork.xml", 10, 12)); assertTrue("Wrong toString(): "+cfg.toString(), "{ActionConfig foo.Bar.execute() - foo/xwork.xml:10:12}".equals(cfg.toString())); } public void testToStringWithNoMethod() { ActionConfig cfg = new ActionConfig(); cfg.setClassName("foo.Bar"); cfg.setLocation(new LocationImpl(null, "foo/xwork.xml", 10, 12)); assertTrue("Wrong toString(): "+cfg.toString(), "{ActionConfig foo.Bar - foo/xwork.xml:10:12}".equals(cfg.toString())); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -