org.silverpeas.upload
Class UploadSessionTest

java.lang.Object
  extended by org.silverpeas.upload.UploadSessionTest

public class UploadSessionTest
extends Object

Author:
Yohann Chastagnier

Field Summary
 MockByReflectionRule reflectionRule
           
 
Constructor Summary
UploadSessionTest()
           
 
Method Summary
 void cleanTest()
           
 void fromBehaviorAccordingToSessionCache()
           
 void getComponentInstanceParameterValue()
           
 void getComponentInstanceParameterValueButNoComponentId()
           
 void getComponentInstanceParameterValueWithTwoDifferentParameters()
           
 void getComponentInstanceParameterValueWithTwoDifferentParametersCalledSeveralTimes()
           
 void isUserAuthorizedWithoutComponentIdAndUserAccess()
           
 void isUserAuthorizedWithoutUserAccessButWithComponentId()
           
 void isUserAuthorizedWithUserAccessAndComponentId()
           
 void isUserAuthorizedWithUserAccessButWithoutComponentId()
           
 void isUserAuthorizedWithUserAccessButWrongComponentId()
           
 void registerSameFileAndNoWritingIsInProgress()
           
 void registerSameFileButWritingIsInProgress()
           
 void registerWithExistingUploadSession()
           
 void registerWithNewUploadSession()
           
 void remove()
           
 void verifySessionCache()
           
 void write()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

reflectionRule

public MockByReflectionRule reflectionRule
Constructor Detail

UploadSessionTest

public UploadSessionTest()
Method Detail

cleanTest

public void cleanTest()

verifySessionCache

public void verifySessionCache()
                        throws Exception
Throws:
Exception

fromBehaviorAccordingToSessionCache

public void fromBehaviorAccordingToSessionCache()

registerWithNewUploadSession

public void registerWithNewUploadSession()
                                  throws Exception
Throws:
Exception

registerWithExistingUploadSession

public void registerWithExistingUploadSession()
                                       throws Exception
Throws:
Exception

write

public void write()
           throws Exception
Throws:
Exception

registerSameFileButWritingIsInProgress

public void registerSameFileButWritingIsInProgress()
                                            throws Exception
Throws:
Exception

registerSameFileAndNoWritingIsInProgress

public void registerSameFileAndNoWritingIsInProgress()
                                              throws Exception
Throws:
Exception

remove

public void remove()
            throws Exception
Throws:
Exception

isUserAuthorizedWithoutComponentIdAndUserAccess

public void isUserAuthorizedWithoutComponentIdAndUserAccess()
                                                     throws Exception
Throws:
Exception

isUserAuthorizedWithoutUserAccessButWithComponentId

public void isUserAuthorizedWithoutUserAccessButWithComponentId()
                                                         throws Exception
Throws:
Exception

isUserAuthorizedWithUserAccessAndComponentId

public void isUserAuthorizedWithUserAccessAndComponentId()
                                                  throws Exception
Throws:
Exception

isUserAuthorizedWithUserAccessButWithoutComponentId

public void isUserAuthorizedWithUserAccessButWithoutComponentId()
                                                         throws Exception
Throws:
Exception

isUserAuthorizedWithUserAccessButWrongComponentId

public void isUserAuthorizedWithUserAccessButWrongComponentId()
                                                       throws Exception
Throws:
Exception

getComponentInstanceParameterValue

public void getComponentInstanceParameterValue()
                                        throws Exception
Throws:
Exception

getComponentInstanceParameterValueButNoComponentId

public void getComponentInstanceParameterValueButNoComponentId()
                                                        throws Exception
Throws:
Exception

getComponentInstanceParameterValueWithTwoDifferentParameters

public void getComponentInstanceParameterValueWithTwoDifferentParameters()
                                                                  throws Exception
Throws:
Exception

getComponentInstanceParameterValueWithTwoDifferentParametersCalledSeveralTimes

public void getComponentInstanceParameterValueWithTwoDifferentParametersCalledSeveralTimes()
                                                                                    throws Exception
Throws:
Exception


Copyright © 2016 Silverpeas. All Rights Reserved.