com.stratelia.silverpeas.notificationManager
Class NotificationManagerTest

java.lang.Object
  extended by com.stratelia.silverpeas.notificationManager.NotificationManagerTest

public class NotificationManagerTest
extends Object

Unit tests on the manager of notifications.


Field Summary
 MockByReflectionRule reflectionRule
           
 
Constructor Summary
NotificationManagerTest()
           
 
Method Summary
 void emptyDefaultChannelsSetsSMTPChannelAsDefault()
          No defined default channels means previous behaviour of Silverpeas: the SMTP mail channel is set as default channel.
 void emptyTest()
          Empty test to check the unit test case works fine by default.
 void loadOfDefaultChannelSettingsSetsTheSpecifiedKnownChannelsAsDefault()
          The load of the parameter on the default channels should set the known specified channels as default.
 void noMultiSupportChannelSettingSetsOnlyOneSpecifiedDefaultChannel()
          If the multi support channel is not supported, then only one among the different specified default channels is taken into account as default channel.
 void setUp()
           
 
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

NotificationManagerTest

public NotificationManagerTest()
Method Detail

setUp

public void setUp()

emptyTest

public void emptyTest()
Empty test to check the unit test case works fine by default. Useful for checking the setting up of the resources required by tests is ok.


loadOfDefaultChannelSettingsSetsTheSpecifiedKnownChannelsAsDefault

public void loadOfDefaultChannelSettingsSetsTheSpecifiedKnownChannelsAsDefault()
The load of the parameter on the default channels should set the known specified channels as default. Any unknow channel is not taken into account.


noMultiSupportChannelSettingSetsOnlyOneSpecifiedDefaultChannel

public void noMultiSupportChannelSettingSetsOnlyOneSpecifiedDefaultChannel()
If the multi support channel is not supported, then only one among the different specified default channels is taken into account as default channel.


emptyDefaultChannelsSetsSMTPChannelAsDefault

public void emptyDefaultChannelsSetsSMTPChannelAsDefault()
No defined default channels means previous behaviour of Silverpeas: the SMTP mail channel is set as default channel.



Copyright © 2016 Silverpeas. All Rights Reserved.