org.silverpeas.token.persistent.service
Class TokenServiceTest
java.lang.Object
org.silverpeas.token.persistent.service.TokenServiceTest
@ContextConfiguration(locations={"/spring-token.xml","/spring-token-embedded-datasource.xml"})
@TransactionConfiguration(transactionManager="jpaTransactionManager")
public class TokenServiceTest- extends Object
- Author:
- Yohann Chastagnier
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TokenServiceTest
public TokenServiceTest()
prepareDataSet
public static void prepareDataSet()
throws Exception
- Throws:
Exception
generalSetUp
public void generalSetUp()
throws Exception
- Throws:
Exception
testGet
public void testGet()
throws TokenException
- Throws:
TokenException
testInitializeFromNotValidKey
public void testInitializeFromNotValidKey()
throws Exception
- Throws:
Exception
testInitializeFromNull
public void testInitializeFromNull()
throws Exception
- Throws:
Exception
initializeFromExistingKeyIntoTransaction
@Transactional
public void initializeFromExistingKeyIntoTransaction()
throws Exception
- Throws:
Exception
initializeFromExistingKey
public void initializeFromExistingKey()
throws Exception
- Throws:
Exception
testInitializeFromNewKeyIntoTransaction
@Transactional
public void testInitializeFromNewKeyIntoTransaction()
throws Exception
- Throws:
Exception
testInitializeFromNewKey
public void testInitializeFromNewKey()
throws Exception
- Throws:
Exception
testGetTokenFromUnknownTokenValue
public void testGetTokenFromUnknownTokenValue()
throws Exception
- Throws:
Exception
testGetTokenFromKnownTokenValue
public void testGetTokenFromKnownTokenValue()
throws Exception
- Throws:
Exception
testGetTokenFromExistingResourceRef
public void testGetTokenFromExistingResourceRef()
throws Exception
- Throws:
Exception
testGetTokenFromNewResourceRef
public void testGetTokenFromNewResourceRef()
throws Exception
- Throws:
Exception
testGetTokenFromUnexistingResourceRef
public void testGetTokenFromUnexistingResourceRef()
throws Exception
- Throws:
Exception
testRemoveIntoTransaction
@Transactional
public void testRemoveIntoTransaction()
throws TokenException
- Throws:
TokenException
testRemove
public void testRemove()
throws TokenException
- Throws:
TokenException
Copyright © 2016 Silverpeas. All Rights Reserved.