forumutilstest.java

来自「如题ServletJSP.rar 为网络收集的JSP网站源文件」· Java 代码 · 共 41 行

JAVA
41
字号
/*
 * XP Forum
 *
 * Copyright (c) 2002-2003 RedSoft Group.  All rights reserved.
 *
 */
package org.redsoft.forum.util;

import junit.framework.TestCase;

/**
 * Class Description here
 *
 * @author <a href="mailto:charles@chinaxp.org">Charles Huang</a>
 *
 * @version $Id: ForumUtilsTest.java,v 1.1.1.1 2003/07/08 08:25:17 cinc Exp $
 */
public class ForumUtilsTest extends TestCase {
	public ForumUtilsTest(String theName) {
		super(theName);
	}

	public void testGetForumNameNormal() {
		// According the java doc,forum id starts from 1
		String forumName = ForumUtils.getForumName( 1 );
		if( forumName == null ){
			fail("ForumName is null given ID 1");
		}
	}

	public void testGetForumNameOutOfIndex(){
		// According the java doc,forum id starts from 1
		String forumName = ForumUtils.getForumName( 100 );
		if( forumName != null ){
			fail("Expecting null given ID 100");
		}

	}

}//EOC

⌨️ 快捷键说明

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