com.silverpeas.look.lookSilverpeasV5Helper
Class SpaceWallpaperTest

java.lang.Object
  extended by com.silverpeas.look.lookSilverpeasV5Helper.SpaceWallpaperTest

@ContextConfiguration(locations="/spring-look.xml")
@DirtiesContext(classMode=AFTER_CLASS)
public class SpaceWallpaperTest
extends Object

Unit tests covering the operations on the space wallpapers provided by the LookSilverpeasV5Helper objects.


Constructor Summary
SpaceWallpaperTest()
           
 
Method Summary
 void getDefaultWallpaper()
          When no space has no specifically wallpaper set, the null is returned.
 void getWallpaperOfARootSpace()
          When a root space has a wallpaper specifically set, this wallpaper should be returned.
 void getWallpaperOfSpaceHavingOneShouldReturn1()
           
 void getWallpaperOfSpaceWithoutOneShouldReturn0()
           
 void getWallpaperOfTheCurrentSpace()
          When a space within a path of spaces has a wallpaper specifically set, this wallpaper should be returned.
 void getWallpaperOfTheFirstParentSpace()
          When a space has no specifically wallpaper set, the one of the fist parent having a wallpaper specifically set is returned
 void prepareMocks()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpaceWallpaperTest

public SpaceWallpaperTest()
Method Detail

prepareMocks

public void prepareMocks()

getWallpaperOfARootSpace

public void getWallpaperOfARootSpace()
When a root space has a wallpaper specifically set, this wallpaper should be returned.


getWallpaperOfTheCurrentSpace

public void getWallpaperOfTheCurrentSpace()
When a space within a path of spaces has a wallpaper specifically set, this wallpaper should be returned.


getWallpaperOfTheFirstParentSpace

public void getWallpaperOfTheFirstParentSpace()
When a space has no specifically wallpaper set, the one of the fist parent having a wallpaper specifically set is returned


getDefaultWallpaper

public void getDefaultWallpaper()
When no space has no specifically wallpaper set, the null is returned.


getWallpaperOfSpaceHavingOneShouldReturn1

public void getWallpaperOfSpaceHavingOneShouldReturn1()

getWallpaperOfSpaceWithoutOneShouldReturn0

public void getWallpaperOfSpaceWithoutOneShouldReturn0()


Copyright © 2016 Silverpeas. All Rights Reserved.