本文整理汇总了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);
}
示例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());
}
示例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);
}
示例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);
}
示例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()));
}
示例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));
}
示例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);
}
示例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);
}