當前位置: 首頁>>代碼示例>>Java>>正文


Java ReferenceObjectBindingGenTest.buildFullReferenceObjectBinding方法代碼示例

本文整理匯總了Java中org.kuali.rice.krms.api.repository.ReferenceObjectBindingGenTest.buildFullReferenceObjectBinding方法的典型用法代碼示例。如果您正苦於以下問題:Java ReferenceObjectBindingGenTest.buildFullReferenceObjectBinding方法的具體用法?Java ReferenceObjectBindingGenTest.buildFullReferenceObjectBinding怎麽用?Java ReferenceObjectBindingGenTest.buildFullReferenceObjectBinding使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.kuali.rice.krms.api.repository.ReferenceObjectBindingGenTest的用法示例。


在下文中一共展示了ReferenceObjectBindingGenTest.buildFullReferenceObjectBinding方法的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.buildFullReferenceObjectBinding方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。