当前位置: 首页>>代码示例>>Java>>正文


Java ReferenceObjectBindingGenTest类代码示例

本文整理汇总了Java中org.kuali.rice.krms.api.repository.ReferenceObjectBindingGenTest的典型用法代码示例。如果您正苦于以下问题:Java ReferenceObjectBindingGenTest类的具体用法?Java ReferenceObjectBindingGenTest怎么用?Java ReferenceObjectBindingGenTest使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ReferenceObjectBindingGenTest类属于org.kuali.rice.krms.api.repository包,在下文中一共展示了ReferenceObjectBindingGenTest类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: test_updateReferenceObjectBinding_success

import org.kuali.rice.krms.api.repository.ReferenceObjectBindingGenTest; //导入依赖的package包/类
@Test
public void test_updateReferenceObjectBinding_success() {
    final ReferenceObjectBinding data = ReferenceObjectBindingGenTest.buildFullReferenceObjectBinding();
    final ReferenceObjectBinding findResult = ReferenceObjectBindingGenTest.buildFullReferenceObjectBinding();
    final ReferenceObjectBindingBo saveResult = service.from(ReferenceObjectBindingGenTest.buildFullReferenceObjectBinding());
    when(mockDataObjectService.find(any(Class.class), any(String.class))).thenReturn(service.from(findResult));
    when(mockDataObjectService.save(any(ReferenceObjectBindingBo.class), any(PersistenceOption.class))).thenReturn(saveResult);
    ReferenceObjectBinding updatedData = service.updateReferenceObjectBinding(data);
    assertNotNull(updatedData);
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:11,代码来源:ReferenceObjectBindingBoServiceImplGenTest.java

示例2: test_from

import org.kuali.rice.krms.api.repository.ReferenceObjectBindingGenTest; //导入依赖的package包/类
@Test
public void test_from() {
    ReferenceObjectBinding def = ReferenceObjectBindingGenTest.buildFullReferenceObjectBinding();
    ReferenceObjectBindingBo def2 = service.from(def);
    assertEquals(def2.getKrmsDiscriminatorType(),def.getKrmsDiscriminatorType());
    assertEquals(def2.getKrmsObjectId(),def.getKrmsObjectId());
    assertEquals(def2.getNamespace(),def.getNamespace());
    assertEquals(def2.getReferenceDiscriminatorType(),def.getReferenceDiscriminatorType());
    assertEquals(def2.getReferenceObjectId(),def.getReferenceObjectId());
    assertEquals(def2.getId(),def.getId());
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:12,代码来源:ReferenceObjectBindingBoServiceImplGenTest.java

示例3: test_to

import org.kuali.rice.krms.api.repository.ReferenceObjectBindingGenTest; //导入依赖的package包/类
@Test
public void test_to() {
    ReferenceObjectBinding def = ReferenceObjectBindingGenTest.buildFullReferenceObjectBinding();
    ReferenceObjectBindingBo referenceObjectBindingBo = service.from(def);
    ReferenceObjectBinding def2 = ReferenceObjectBindingBo.to(referenceObjectBindingBo);
    assertEquals(def, def2);
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:8,代码来源:ReferenceObjectBindingBoServiceImplGenTest.java

示例4: test_createReferenceObjectBinding_success

import org.kuali.rice.krms.api.repository.ReferenceObjectBindingGenTest; //导入依赖的package包/类
@Test
public void test_createReferenceObjectBinding_success() {
    final ReferenceObjectBinding findResult = null;
    final ReferenceObjectBindingBo saveResult = service.from(ReferenceObjectBindingGenTest.buildFullReferenceObjectBinding());
    when(mockDataObjectService.find(any(Class.class), any(String.class))).thenReturn(service.from(findResult));
    when(mockDataObjectService.save(any(ReferenceObjectBindingBo.class), any(PersistenceOption.class))).thenReturn(saveResult);
    ReferenceObjectBinding def = ReferenceObjectBindingGenTest.buildFullReferenceObjectBinding();
    ReferenceObjectBinding referenceObjectBinding = service.createReferenceObjectBinding(def);
    assertNotNull(referenceObjectBinding);
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:11,代码来源:ReferenceObjectBindingBoServiceImplGenTest.java

示例5: test_from

import org.kuali.rice.krms.api.repository.ReferenceObjectBindingGenTest; //导入依赖的package包/类
@Test
public void test_from() {
    ReferenceObjectBinding def = ReferenceObjectBindingGenTest.buildFullReferenceObjectBinding();
    ReferenceObjectBindingBo referenceObjectBindingBo = referenceObjectBindingBoServiceImpl.from(def);
    assert(referenceObjectBindingBo.getKrmsDiscriminatorType().equals(def.getKrmsDiscriminatorType()));
    assert(referenceObjectBindingBo.getKrmsObjectId().equals(def.getKrmsObjectId()));
    assert(referenceObjectBindingBo.getNamespace().equals(def.getNamespace()));
    assert(referenceObjectBindingBo.getReferenceDiscriminatorType().equals(def.getReferenceDiscriminatorType()));
    assert(referenceObjectBindingBo.getReferenceObjectId().equals(def.getReferenceObjectId()));
    assert(referenceObjectBindingBo.getId().equals(def.getId()));
}
 
开发者ID:aapotts,项目名称:kuali_rice,代码行数:12,代码来源:ReferenceObjectBindingBoServiceImplGenTest.java

示例6: test_to

import org.kuali.rice.krms.api.repository.ReferenceObjectBindingGenTest; //导入依赖的package包/类
@Test
public void test_to() {
    ReferenceObjectBinding def = ReferenceObjectBindingGenTest.buildFullReferenceObjectBinding();
    ReferenceObjectBindingBo referenceObjectBindingBo = referenceObjectBindingBoServiceImpl.from(def);
    ReferenceObjectBinding def2 = ReferenceObjectBindingBo.to(referenceObjectBindingBo);
    assert(def.equals(def2));
}
 
开发者ID:aapotts,项目名称:kuali_rice,代码行数:8,代码来源:ReferenceObjectBindingBoServiceImplGenTest.java

示例7: test_createReferenceObjectBinding

import org.kuali.rice.krms.api.repository.ReferenceObjectBindingGenTest; //导入依赖的package包/类
@Test
public void test_createReferenceObjectBinding() {
    ReferenceObjectBinding def = ReferenceObjectBindingGenTest.buildFullReferenceObjectBinding();
    referenceObjectBinding = service.createReferenceObjectBinding(def);
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:6,代码来源:ReferenceObjectBindingBoServiceImplGenTest.java

示例8: test_createReferenceObjectBinding

import org.kuali.rice.krms.api.repository.ReferenceObjectBindingGenTest; //导入依赖的package包/类
@Test
public void test_createReferenceObjectBinding() {
    ReferenceObjectBinding def = ReferenceObjectBindingGenTest.buildFullReferenceObjectBinding();
    referenceObjectBinding = referenceObjectBindingBoServiceImpl.createReferenceObjectBinding(def);
}
 
开发者ID:aapotts,项目名称:kuali_rice,代码行数:6,代码来源:ReferenceObjectBindingBoServiceImplGenTest.java


注:本文中的org.kuali.rice.krms.api.repository.ReferenceObjectBindingGenTest类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。