actionconfigtest.java
来自「在Struts2中的jar包xwork的源代码.版本为2.0.7」· Java 代码 · 共 34 行
JAVA
34 行
/* * 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 + =
减小字号Ctrl + -
显示快捷键?