testdateutils.java

来自「文件上传用例,纯sql分页源码,有用的着地方请下载 试用」· Java 代码 · 共 35 行

JAVA
35
字号
package org.derrick.util;

import junit.framework.TestCase;
/**
 * 
 * @author 刘冬宝Oct 26, 2006
   版权申明:所有人员均可自由修改源码并再发布,但必须保留此相关信息
 *
 */
public class TestDateUtils extends TestCase {

	public TestDateUtils(String name) {
		super(name);
	}

	protected void setUp() throws Exception {
		super.setUp();
	}

	protected void tearDown() throws Exception {
		super.tearDown();
	}

	/*
	 * Test method for 'poson.ecss.util.DateUtils.subtractOneMonth(String)'
	 */
	public void testSubtractOneMonth() throws Exception {
		String param = "200403";
		String expectedString = "200402";
		String actualString = DateUtils.subtractOneMonth(param);
		assertEquals(expectedString, actualString);
	}

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?