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

📄 stringutiltest.java

📁 this is for appfuse1.8 source using strut 1.x, spring and hibernate.
💻 JAVA
字号:
package org.appfuse.util;import junit.framework.TestCase;public class StringUtilTest extends TestCase {    public StringUtilTest(String name) {        super(name);    }    protected void setUp() throws Exception {        super.setUp();    }    protected void tearDown() throws Exception {        super.tearDown();    }    public void testEncodePassword() throws Exception {        String password = "tomcat";        String encrypted = "536c0b339345616c1b33caf454454d8b8a190d6c";        assertEquals(StringUtil.encodePassword(password, "SHA"), encrypted);    }    public static void main(String[] args) {        junit.textui.TestRunner.run(StringUtilTest.class);    }}

⌨️ 快捷键说明

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