public final class MockObjectsUtil extends Object
Modifier and Type | Method and Description |
---|---|
static NotificationBo |
buildTestNotification(String deliveryType,
Timestamp sendDateTime,
Timestamp autoRemoveDateTime,
NotificationContentTypeBo contentType,
String content,
NotificationPriorityBo priority,
NotificationProducerBo producer,
NotificationChannelBo channel,
List<NotificationRecipientBo> recipients,
List<NotificationSenderBo> senders)
This method is a helper to build a Notification instance.
|
static NotificationChannelBo |
buildTestNotificationChannel(String name,
String description,
boolean subscribable)
This method is a helper to build a NotificationChannel instance.
|
static NotificationChannelReviewerBo |
buildTestNotificationChannelReviewer(MemberType reviewerType,
String reviewerId)
This method is a helper to build a NotificationChannelReviewer instance.
|
static NotificationContentTypeBo |
buildTestNotificationContentType(String name,
String description,
String namespace,
String xsd,
String xsl)
This method is a helper to build a NotificationContentType instance.
|
static NotificationPriorityBo |
buildTestNotificationPriority(String name,
String description,
Integer order)
This method is a helper to build a NotificationPriority instance.
|
static NotificationProducerBo |
buildTestNotificationProducer(String name,
String description,
String contactInfo)
This method is a helper to build a NotificationProducer instance.
|
static NotificationRecipientBo |
buildTestNotificationRecipient(String recipientId,
MemberType recipientType)
This method is a helper to build a NotificationRecipient instance.
|
static NotificationSenderBo |
buildTestNotificationSender(String userId)
This method is a helper to build a NotificationSender instance.
|
static NotificationChannelBo |
getTestChannel1()
This method returns back a specific test mock object.
|
static NotificationChannelBo |
getTestChannel2()
This method returns back a specific test mock object.
|
static NotificationContentTypeBo |
getTestContentType1()
This method returns back a specific test mock object.
|
static NotificationPriorityBo |
getTestPriority1()
This method returns back a specific test mock object.
|
static NotificationProducerBo |
getTestProducer1()
This method returns back a specific test mock object.
|
static NotificationRecipientBo |
getTestRecipient1()
This method returns back a specific test mock object.
|
static NotificationRecipientBo |
getTestRecipient2()
This method returns back a specific test mock object.
|
static NotificationSenderBo |
getTestSender1()
This method returns back a specific test mock object.
|
static NotificationSenderBo |
getTestSender2()
This method returns back a specific test mock object.
|
public static final NotificationChannelBo buildTestNotificationChannel(String name, String description, boolean subscribable)
name
- description
- subscribable
- public static final NotificationChannelBo getTestChannel1()
public static final NotificationChannelBo getTestChannel2()
public static final NotificationProducerBo buildTestNotificationProducer(String name, String description, String contactInfo)
name
- description
- contactInfo
- public static final NotificationChannelReviewerBo buildTestNotificationChannelReviewer(MemberType reviewerType, String reviewerId)
reviewerType
- reviewerId
- public static final NotificationProducerBo getTestProducer1()
public static final NotificationContentTypeBo buildTestNotificationContentType(String name, String description, String namespace, String xsd, String xsl)
name
- description
- namespace
- xsd
- public static final NotificationContentTypeBo getTestContentType1()
public static final NotificationPriorityBo buildTestNotificationPriority(String name, String description, Integer order)
name
- description
- order
- public static final NotificationPriorityBo getTestPriority1()
public static final NotificationRecipientBo buildTestNotificationRecipient(String recipientId, MemberType recipientType)
recipientId
- recipientType
- public static final NotificationRecipientBo getTestRecipient1()
public static final NotificationRecipientBo getTestRecipient2()
public static final NotificationBo buildTestNotification(String deliveryType, Timestamp sendDateTime, Timestamp autoRemoveDateTime, NotificationContentTypeBo contentType, String content, NotificationPriorityBo priority, NotificationProducerBo producer, NotificationChannelBo channel, List<NotificationRecipientBo> recipients, List<NotificationSenderBo> senders)
recipientId
- recipientType
- public static final NotificationSenderBo buildTestNotificationSender(String userId)
userId
- public static final NotificationSenderBo getTestSender1()
public static final NotificationSenderBo getTestSender2()
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.