⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 regutiltest.java

📁 采用JAVA开发
💻 JAVA
字号:
/*
 * Created on 2004-6-24
 * Created by Administrator
 */
package com.gctech.sms.sdsms.common;

import junit.framework.TestCase;

/**
 * <p>Title:</p>
 * <p>Description:</p>
 * <p>Copyright: GCTech (c) 2004-6-24</p>
 * <p>Company: 国创科技</p>
 * <p>Email: ly@gctech.com.cn</p>
 *
 * @version 1.0
 * @author liyi
 *
 */
public class RegUtilTest extends TestCase {

	/**
	 * Constructor for RegUtilTest.
	 * @param arg0
	 */
	public RegUtilTest(String arg0) {
		super(arg0);
	}

	/*
	 * @see TestCase#setUp()
	 */
	protected void setUp() throws Exception {
		super.setUp();
	}

	/*
	 * @see TestCase#tearDown()
	 */
	protected void tearDown() throws Exception {
		super.tearDown();
	}

	public void testGetSmContent() {
		assertEquals(RegUtil.getSmContent("8999901 MAD")[1],"MAD");
	}

	public void testSplitWithReg() {
		assertEquals(RegUtil.splitWithReg("houadff","hou")[1],"adff");
	}

	public void testFilterCommand() {
		assertEquals(RegUtil.filterCommand("09","XZQY"),false);
	}

}

⌨️ 快捷键说明

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