本文整理匯總了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);
}