com.silverpeas.thumbnail
Class ThumbnailSettingsTest

java.lang.Object
  extended by com.silverpeas.thumbnail.ThumbnailSettingsTest

public class ThumbnailSettingsTest
extends Object

BE CAREFUL, this unit test verifies especially that a default width and a default height are returned.

Author:
Yohann Chastagnier

Field Summary
 MockByReflectionRule mockByReflectionRule
           
 
Constructor Summary
ThumbnailSettingsTest()
           
 
Method Summary
 void componentInstanceHeightParameterShouldBeGivenPriorityOverTheDefaultWidthAndHeightOfProperties()
           
 void componentInstanceWidthParameterShouldBeGivenPriorityOverTheDefaultWidthAndHeightOfProperties()
           
 void defaultComponentInstanceHeightParameterShouldBeTakenIntoAccountAndAppliedOnWidthToo()
           
 void defaultComponentInstanceSizeParametersShouldBeTakenIntoAccount()
           
 void defaultComponentInstanceWidthParameterShouldBeTakenIntoAccountAndAppliedOnHeightToo()
           
 void defaultHeightPropertyShouldBeTakenIntoAccountAndAppliedOnWidthToo()
           
 void defaultSizePropertiesShouldBeTakenIntoAccount()
           
 void defaultWidthPropertyShouldBeTakenIntoAccountAndAppliedOnHeightToo()
           
 void setup()
           
 void shouldReturnDefaultSizeWhenComponentParametersAndDefaultPropertiesAreNotDefined()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mockByReflectionRule

public MockByReflectionRule mockByReflectionRule
Constructor Detail

ThumbnailSettingsTest

public ThumbnailSettingsTest()
Method Detail

setup

public void setup()

shouldReturnDefaultSizeWhenComponentParametersAndDefaultPropertiesAreNotDefined

public void shouldReturnDefaultSizeWhenComponentParametersAndDefaultPropertiesAreNotDefined()

defaultWidthPropertyShouldBeTakenIntoAccountAndAppliedOnHeightToo

public void defaultWidthPropertyShouldBeTakenIntoAccountAndAppliedOnHeightToo()

defaultHeightPropertyShouldBeTakenIntoAccountAndAppliedOnWidthToo

public void defaultHeightPropertyShouldBeTakenIntoAccountAndAppliedOnWidthToo()

defaultSizePropertiesShouldBeTakenIntoAccount

public void defaultSizePropertiesShouldBeTakenIntoAccount()

defaultComponentInstanceWidthParameterShouldBeTakenIntoAccountAndAppliedOnHeightToo

public void defaultComponentInstanceWidthParameterShouldBeTakenIntoAccountAndAppliedOnHeightToo()

defaultComponentInstanceHeightParameterShouldBeTakenIntoAccountAndAppliedOnWidthToo

public void defaultComponentInstanceHeightParameterShouldBeTakenIntoAccountAndAppliedOnWidthToo()

defaultComponentInstanceSizeParametersShouldBeTakenIntoAccount

public void defaultComponentInstanceSizeParametersShouldBeTakenIntoAccount()

componentInstanceWidthParameterShouldBeGivenPriorityOverTheDefaultWidthAndHeightOfProperties

public void componentInstanceWidthParameterShouldBeGivenPriorityOverTheDefaultWidthAndHeightOfProperties()

componentInstanceHeightParameterShouldBeGivenPriorityOverTheDefaultWidthAndHeightOfProperties

public void componentInstanceHeightParameterShouldBeGivenPriorityOverTheDefaultWidthAndHeightOfProperties()


Copyright © 2016 Silverpeas. All Rights Reserved.