本文整理汇总了Java中org.kuali.rice.kcb.test.KCBTestData类的典型用法代码示例。如果您正苦于以下问题:Java KCBTestData类的具体用法?Java KCBTestData怎么用?Java KCBTestData使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
KCBTestData类属于org.kuali.rice.kcb.test包,在下文中一共展示了KCBTestData类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setUp
import org.kuali.rice.kcb.test.KCBTestData; //导入依赖的package包/类
@Override
public void setUp() throws Exception {
super.setUp();
messageService = GlobalKCBServiceLocator.getInstance().getKcbMessageService();
MESSAGE = KCBTestData.getMessage1();
MESSAGE = messageService.saveMessage(MESSAGE);
}
示例2: setUp
import org.kuali.rice.kcb.test.KCBTestData; //导入依赖的package包/类
@Override
public void setUp() throws Exception {
super.setUp();
messageService = GlobalKCBServiceLocator.getInstance().getKcbMessageService();
messageDeliveryService = GlobalKCBServiceLocator.getInstance().getMessageDeliveryService();
MESSAGE = KCBTestData.getMessage1();
MESSAGE = messageService.saveMessage(MESSAGE);
MESSAGE_DELIV = KCBTestData.getMessageDelivery1();
MESSAGE_DELIV.setMessage(MESSAGE);
MESSAGE_DELIV = messageDeliveryService.saveMessageDelivery(MESSAGE_DELIV);
}
示例3: testDuplicateCreate
import org.kuali.rice.kcb.test.KCBTestData; //导入依赖的package包/类
@Test(expected = DataAccessException.class)
public void testDuplicateCreate() {
// violates messageid-deliverer constraint
final MessageDelivery md = new MessageDelivery();
md.setId(KCBTestData.FAKE_ID);
md.setDelivererSystemId(MESSAGE_DELIV.getDelivererSystemId());
md.setDelivererTypeName(MESSAGE_DELIV.getDelivererTypeName());
md.setDeliveryStatus(MESSAGE_DELIV.getDeliveryStatus());
md.setLockVerNbr(MESSAGE_DELIV.getLockVerNbr());
md.setMessage(MESSAGE);
KRADServiceLocator.getDataObjectService().save(md, PersistenceOption.FLUSH);
}
示例4: testDuplicateCreate
import org.kuali.rice.kcb.test.KCBTestData; //导入依赖的package包/类
@Test(expected = DataAccessException.class)
public void testDuplicateCreate() {
final RecipientPreference p = new RecipientPreference();
p.setId(KCBTestData.FAKE_ID);
p.setRecipientId(PREF.getRecipientId());
p.setProperty(PREF.getProperty());
p.setValue(PREF.getValue());
prefsvc.saveRecipientPreference(p);
KRADServiceLocator.getDataObjectService().flush(RecipientPreference.class);
}
示例5: setUp
import org.kuali.rice.kcb.test.KCBTestData; //导入依赖的package包/类
@Override
public void setUp() throws Exception {
super.setUp();
messageService = GlobalKCBServiceLocator.getInstance().getMessageService();
MESSAGE = KCBTestData.getMessage1();
MESSAGE = messageService.saveMessage(MESSAGE);
}
示例6: setUp
import org.kuali.rice.kcb.test.KCBTestData; //导入依赖的package包/类
@Override
public void setUp() throws Exception {
super.setUp();
messageService = GlobalKCBServiceLocator.getInstance().getMessageService();
messageDeliveryService = GlobalKCBServiceLocator.getInstance().getMessageDeliveryService();
MESSAGE = KCBTestData.getMessage1();
MESSAGE = messageService.saveMessage(MESSAGE);
MESSAGE_DELIV = KCBTestData.getMessageDelivery1();
MESSAGE_DELIV.setMessage(MESSAGE);
MESSAGE_DELIV = messageDeliveryService.saveMessageDelivery(MESSAGE_DELIV);
}
示例7: setUp
import org.kuali.rice.kcb.test.KCBTestData; //导入依赖的package包/类
@Override
public void setUp() throws Exception {
super.setUp();
messageService = GlobalKCBServiceLocator.getInstance().getMessageService();
MESSAGE = KCBTestData.getMessage1();
messageService.saveMessage(MESSAGE);
}
示例8: setUp
import org.kuali.rice.kcb.test.KCBTestData; //导入依赖的package包/类
@Override
public void setUp() throws Exception {
super.setUp();
messageService = GlobalKCBServiceLocator.getInstance().getMessageService();
messageDeliveryService = GlobalKCBServiceLocator.getInstance().getMessageDeliveryService();
MESSAGE = KCBTestData.getMessage1();
messageService.saveMessage(MESSAGE);
MESSAGE_DELIV = KCBTestData.getMessageDelivery1();
MESSAGE_DELIV.setMessage(MESSAGE);
messageDeliveryService.saveMessageDelivery(MESSAGE_DELIV);
}
示例9: testDuplicateCreate
import org.kuali.rice.kcb.test.KCBTestData; //导入依赖的package包/类
@Test(expected = DataIntegrityViolationException.class)
@Override
public void testDuplicateCreate() {
// violates messageid-deliverer constraint
final MessageDelivery md = new MessageDelivery();
md.setId(KCBTestData.FAKE_ID);
md.setDelivererSystemId(MESSAGE_DELIV.getDelivererSystemId());
md.setDelivererTypeName(MESSAGE_DELIV.getDelivererTypeName());
md.setDeliveryStatus(MESSAGE_DELIV.getDeliveryStatus());
md.setLockVerNbr(MESSAGE_DELIV.getLockVerNbr());
md.setMessage(MESSAGE);
messageDeliveryService.saveMessageDelivery(md);
}
示例10: testDuplicateCreate
import org.kuali.rice.kcb.test.KCBTestData; //导入依赖的package包/类
@Test(expected = DataIntegrityViolationException.class)
@Override
public void testDuplicateCreate() {
final RecipientPreference p = new RecipientPreference();
p.setId(KCBTestData.FAKE_ID);
p.setRecipientId(PREF.getRecipientId());
p.setProperty(PREF.getProperty());
p.setValue(PREF.getValue());
prefsvc.saveRecipientPreference(p);
}
示例11: testInvalidDelete
import org.kuali.rice.kcb.test.KCBTestData; //导入依赖的package包/类
@Test(expected = DataAccessException.class)
@Override
public void testInvalidDelete() {
final RecipientPreference p = new RecipientPreference();
p.setId(KCBTestData.INVALID_ID);
// OJB yields an org.springmodules.orm.ojb.OjbOperationException/OptimisticLockException and claims the object
// may have been deleted by somebody else
prefsvc.deleteRecipientPreference(p);
}