From 806daeb74b46ab8e270d61b995d4b7fbdd98556f Mon Sep 17 00:00:00 2001 From: Felix Schumacher Date: Tue, 24 Aug 2010 22:23:50 +0200 Subject: [PATCH] added testcase for PasswordService --- .classpath | 2 ++ .settings/org.eclipse.wst.common.component | 1 + test/org/mcb/services/PasswordServiceTests.java | 19 +++++++++++++++++++ 3 files changed, 22 insertions(+) create mode 100644 test/org/mcb/services/PasswordServiceTests.java diff --git a/.classpath b/.classpath index ba577ab..f62a09b 100644 --- a/.classpath +++ b/.classpath @@ -1,9 +1,11 @@ + + diff --git a/.settings/org.eclipse.wst.common.component b/.settings/org.eclipse.wst.common.component index 16d3ecb..60cb04f 100644 --- a/.settings/org.eclipse.wst.common.component +++ b/.settings/org.eclipse.wst.common.component @@ -3,6 +3,7 @@ + diff --git a/test/org/mcb/services/PasswordServiceTests.java b/test/org/mcb/services/PasswordServiceTests.java new file mode 100644 index 0000000..8939721 --- /dev/null +++ b/test/org/mcb/services/PasswordServiceTests.java @@ -0,0 +1,19 @@ +package org.mcb.services; + +import junit.framework.TestCase; + +public class PasswordServiceTests extends TestCase { + + private PasswordService passwordService; + + @Override + protected void setUp() throws Exception { + super.setUp(); + this.passwordService = new PasswordService(); + } + + public void testEncrypt() throws Exception { + assertEquals("qvTGHdzF6KLavt4PO0gs2a6pQ00=", passwordService.encrypt("hello")); + } + +} -- 2.11.0