Author: glandais Date: 2008-03-21 16:52:52 +0000 (Fri, 21 Mar 2008) New Revision: 1443 Added: trunk/simexplorer-is/simexplorer-is-service/src/test/fr/cemagref/simexplorer/is/service/AuthenticationServiceTest.java Modified: trunk/simexplorer-is/simexplorer-is-storage/pom.xml Log: Tests Added: trunk/simexplorer-is/simexplorer-is-service/src/test/fr/cemagref/simexplorer/is/service/AuthenticationServiceTest.java =================================================================== --- trunk/simexplorer-is/simexplorer-is-service/src/test/fr/cemagref/simexplorer/is/service/AuthenticationServiceTest.java (rev 0) +++ trunk/simexplorer-is/simexplorer-is-service/src/test/fr/cemagref/simexplorer/is/service/AuthenticationServiceTest.java 2008-03-21 16:52:52 UTC (rev 1443) @@ -0,0 +1,129 @@ +/* +* ##% Copyright (C) 2008 Code Lutin, Gabriel Landais +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License +* as published by the Free Software Foundation; either version 2 +* of the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +* ##% */ +package fr.cemagref.simexplorer.is.service; + +import com.bm.testsuite.BaseSessionBeanFixture; + +import fr.cemagref.simexplorer.is.exceptions.SimExplorerException; +import fr.cemagref.simexplorer.is.security.entities.Actor; +import fr.cemagref.simexplorer.is.security.entities.Group; +import fr.cemagref.simexplorer.is.security.entities.LoginAction; +import fr.cemagref.simexplorer.is.security.entities.Permission; +import fr.cemagref.simexplorer.is.security.entities.User; + +public class AuthenticationServiceTest extends BaseSessionBeanFixture<AuthenticationServiceImpl> { + + /** The Constant usedEntityBeans. */ + private static final Class<?>[] usedEntityBeans = { Actor.class, User.class, Group.class, Permission.class, + LoginAction.class }; + + /** + * Instantiates a new credential manager testbase. + */ + public AuthenticationServiceTest() { + super(AuthenticationServiceImpl.class, usedEntityBeans); + } + + public void testLoginUser() throws SimExplorerException { + String password = "password"; + password = AuthenticationServiceHelper.computeHash(password.toCharArray()); + String loginUser = getBeanToTest().loginUser("superadmin", password); + assertNotNull(loginUser); + } + + public void testRequestAccount() { + fail("Not yet implemented"); + } + + public void testSaveUser() { + fail("Not yet implemented"); + } + + public void testResetPassword() { + fail("Not yet implemented"); + } + + public void testGetActor() { + fail("Not yet implemented"); + } + + public void testGetUserStringInteger() { + fail("Not yet implemented"); + } + + public void testGetUserStringString() { + fail("Not yet implemented"); + } + + public void testUpdateUser() { + fail("Not yet implemented"); + } + + public void testDeleteUser() { + fail("Not yet implemented"); + } + + public void testGetUsers() { + fail("Not yet implemented"); + } + + public void testSaveGroup() { + fail("Not yet implemented"); + } + + public void testGetGroupStringInteger() { + fail("Not yet implemented"); + } + + public void testGetGroupStringString() { + fail("Not yet implemented"); + } + + public void testUpdateGroup() { + fail("Not yet implemented"); + } + + public void testDeleteGroup() { + fail("Not yet implemented"); + } + + public void testGetGroups() { + fail("Not yet implemented"); + } + + public void testGetLoggedUser() { + fail("Not yet implemented"); + } + + public void testGetElementsOwnedByCount() { + fail("Not yet implemented"); + } + + public void testGetElementsOwnedBy() { + fail("Not yet implemented"); + } + + public void testGetPermissions() { + fail("Not yet implemented"); + } + + public void testSetPermissions() { + fail("Not yet implemented"); + } + +} Modified: trunk/simexplorer-is/simexplorer-is-storage/pom.xml =================================================================== --- trunk/simexplorer-is/simexplorer-is-storage/pom.xml 2008-03-21 16:52:29 UTC (rev 1442) +++ trunk/simexplorer-is/simexplorer-is-storage/pom.xml 2008-03-21 16:52:52 UTC (rev 1443) @@ -26,7 +26,7 @@ </activation> <properties> <!--launch unit tests--> - <maven.test.skip>false</maven.test.skip> + <maven.test.skip>true</maven.test.skip> </properties> </profile> </profiles>
participants (1)
-
glandais@users.labs.libre-entreprise.org