org.silverpeas.token.persistent.service
Class TokenServiceTest

java.lang.Object
  extended by 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

Constructor Summary
TokenServiceTest()
           
 
Method Summary
 void generalSetUp()
           
 void initializeFromExistingKey()
           
 void initializeFromExistingKeyIntoTransaction()
           
static void prepareDataSet()
           
 void testGet()
           
 void testGetTokenFromExistingResourceRef()
           
 void testGetTokenFromKnownTokenValue()
           
 void testGetTokenFromNewResourceRef()
           
 void testGetTokenFromUnexistingResourceRef()
           
 void testGetTokenFromUnknownTokenValue()
           
 void testInitializeFromNewKey()
           
 void testInitializeFromNewKeyIntoTransaction()
           
 void testInitializeFromNotValidKey()
           
 void testInitializeFromNull()
           
 void testRemove()
           
 void testRemoveIntoTransaction()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TokenServiceTest

public TokenServiceTest()
Method Detail

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.