com.silverpeas.look
Class SilverpeasLookTest

java.lang.Object
  extended by com.silverpeas.look.SilverpeasLookTest

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

Unit tests on the SilverpeasLook operations.


Constructor Summary
SilverpeasLookTest()
           
 
Method Summary
 void getCSSOfARootSpace()
          When a root space has a CSS specifically set, this CSS should be returned.
 void getCSSOfTheFirstParentSpace()
          When a space has no specifically CSS set, the one of the fist parent having a CSS specifically set is returned
 void getDefaultWallpaperWithSpacesWithoutSpecificWallpaper()
           
 void getNoWallpaperWithSpacesWithoutSpecificWallpaper()
          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 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 setUp()
           
static void setUpClass()
           
 void spaceWithASpecificWallpaper()
           
 void spaceWithoutASpecificCSS()
           
 void spaceWithoutASpecificWallpaper()
           
static void tearDownClass()
           
 void testHasSpaceWallpaper()
          Test of hasSpaceWallpaper method, of class SilverpeasLook.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SilverpeasLookTest

public SilverpeasLookTest()
Method Detail

setUpClass

public static void setUpClass()
                       throws Exception
Throws:
Exception

tearDownClass

public static void tearDownClass()
                          throws Exception
Throws:
Exception

setUp

public void setUp()

testHasSpaceWallpaper

public void testHasSpaceWallpaper()
Test of hasSpaceWallpaper method, of class SilverpeasLook.


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


getNoWallpaperWithSpacesWithoutSpecificWallpaper

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


spaceWithASpecificWallpaper

public void spaceWithASpecificWallpaper()

spaceWithoutASpecificWallpaper

public void spaceWithoutASpecificWallpaper()

getDefaultWallpaperWithSpacesWithoutSpecificWallpaper

public void getDefaultWallpaperWithSpacesWithoutSpecificWallpaper()

getCSSOfARootSpace

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


getCSSOfTheFirstParentSpace

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


spaceWithoutASpecificCSS

public void spaceWithoutASpecificCSS()


Copyright © 2016 Silverpeas. All Rights Reserved.