From: Felix Schumacher Date: Tue, 24 Aug 2010 20:23:50 +0000 (+0200) Subject: added testcase for PasswordService X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=806daeb74b46ab8e270d61b995d4b7fbdd98556f;p=problems.git added testcase for PasswordService --- 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")); + } + +}