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


Java OrganizationAuthoritiesException類代碼示例

本文整理匯總了Java中org.oscm.types.exceptions.OrganizationAuthoritiesException的典型用法代碼示例。如果您正苦於以下問題:Java OrganizationAuthoritiesException類的具體用法?Java OrganizationAuthoritiesException怎麽用?Java OrganizationAuthoritiesException使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


OrganizationAuthoritiesException類屬於org.oscm.types.exceptions包,在下文中一共展示了OrganizationAuthoritiesException類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: notifyAsyncSubscription_completion

import org.oscm.types.exceptions.OrganizationAuthoritiesException; //導入依賴的package包/類
@Test
public void notifyAsyncSubscription_completion()
        throws APPlatformException, BESNotificationException,
        ObjectNotFoundException, SubscriptionStateException,
        TechnicalServiceNotAliveException,
        TechnicalServiceOperationException,
        OrganizationAuthoritiesException, OperationNotPermittedException,
        ValidationException {
    // given
    doReturn(subServ).when(besDAO).getBESWebService(
            eq(SubscriptionService.class), any(ServiceInstance.class), any(Optional.class));
    VOInstanceInfo info = new VOInstanceInfo();
    doReturn(info).when(besDAO).getInstanceInfo(any(ServiceInstance.class),
            any(InstanceResult.class));
    ServiceInstance si = givenServiceInstance(false);

    // when
    besDAO.notifyAsyncSubscription(si, new InstanceResult(), true,
            new APPlatformException(""));

    // then
    verify(subServ).completeAsyncSubscription(si.getSubscriptionId(),
            si.getOrganizationId(), info);
}
 
開發者ID:servicecatalog,項目名稱:oscm-app,代碼行數:25,代碼來源:BesDAOTest.java

示例2: notifyAsyncModifySubscription_completion

import org.oscm.types.exceptions.OrganizationAuthoritiesException; //導入依賴的package包/類
@Test
public void notifyAsyncModifySubscription_completion()
        throws APPlatformException, BESNotificationException,
        ObjectNotFoundException, SubscriptionStateException,
        TechnicalServiceNotAliveException,
        TechnicalServiceOperationException,
        OrganizationAuthoritiesException, OperationNotPermittedException {
    // given
    doReturn(subServ).when(besDAO).getBESWebService(
            eq(SubscriptionService.class), any(ServiceInstance.class), any(Optional.class));
    VOInstanceInfo info = new VOInstanceInfo();
    doReturn(info).when(besDAO).getInstanceInfo(any(ServiceInstance.class),
            any(InstanceResult.class));
    ServiceInstance si = givenServiceInstance(false);

    // when
    besDAO.notifyAsyncModifySubscription(si, new InstanceResult(), true,
            new APPlatformException(""));

    // then
    verify(subServ).completeAsyncModifySubscription(si.getSubscriptionId(),
            si.getOrganizationId(), info);
}
 
開發者ID:servicecatalog,項目名稱:oscm-app,代碼行數:24,代碼來源:BesDAOTest.java

示例3: notifyAsyncUpgradeSubscription_completion

import org.oscm.types.exceptions.OrganizationAuthoritiesException; //導入依賴的package包/類
@Test
public void notifyAsyncUpgradeSubscription_completion()
        throws APPlatformException, BESNotificationException,
        ObjectNotFoundException, SubscriptionStateException,
        TechnicalServiceNotAliveException,
        TechnicalServiceOperationException,
        OrganizationAuthoritiesException, OperationNotPermittedException {
    // given
    doReturn(subServ).when(besDAO).getBESWebService(
            eq(SubscriptionService.class), any(ServiceInstance.class), any(Optional.class));
    VOInstanceInfo info = new VOInstanceInfo();
    doReturn(info).when(besDAO).getInstanceInfo(any(ServiceInstance.class),
            any(InstanceResult.class));
    ServiceInstance si = givenServiceInstance(false);

    // when
    besDAO.notifyAsyncUpgradeSubscription(si, new InstanceResult(), true,
            new APPlatformException(""));

    // then
    verify(subServ).completeAsyncUpgradeSubscription(
            si.getSubscriptionId(), si.getOrganizationId(), info);
}
 
開發者ID:servicecatalog,項目名稱:oscm-app,代碼行數:24,代碼來源:BesDAOTest.java

示例4: notifyAsyncSubscription_completion_OperationNotPermited

import org.oscm.types.exceptions.OrganizationAuthoritiesException; //導入依賴的package包/類
@Test(expected = BESNotificationException.class)
public void notifyAsyncSubscription_completion_OperationNotPermited()
        throws APPlatformException, BESNotificationException,
        ObjectNotFoundException, SubscriptionStateException,
        TechnicalServiceNotAliveException,
        TechnicalServiceOperationException,
        OrganizationAuthoritiesException, OperationNotPermittedException,
        ValidationException {
    // given
    doReturn(subServ).when(besDAO).getBESWebService(
            eq(SubscriptionService.class), any(ServiceInstance.class), any(Optional.class));
    doReturn(new VOInstanceInfo()).when(besDAO).getInstanceInfo(
            any(ServiceInstance.class), any(InstanceResult.class));
    ServiceInstance si = givenServiceInstance(false);
    doThrow(new OperationNotPermittedException()).when(subServ)
            .completeAsyncSubscription(anyString(), anyString(),
                    any(VOInstanceInfo.class));

    // when
    besDAO.notifyAsyncSubscription(si, new InstanceResult(), true,
            new APPlatformException(""));
}
 
開發者ID:servicecatalog,項目名稱:oscm-app,代碼行數:23,代碼來源:BesDAOTest.java

示例5: notifyAsyncModifySubscription_completion_OperationNotPermited

import org.oscm.types.exceptions.OrganizationAuthoritiesException; //導入依賴的package包/類
@Test(expected = BESNotificationException.class)
public void notifyAsyncModifySubscription_completion_OperationNotPermited()
        throws APPlatformException, BESNotificationException,
        ObjectNotFoundException, SubscriptionStateException,
        TechnicalServiceNotAliveException,
        TechnicalServiceOperationException,
        OrganizationAuthoritiesException, OperationNotPermittedException {
    // given
    doReturn(subServ).when(besDAO).getBESWebService(
            eq(SubscriptionService.class), any(ServiceInstance.class), any(Optional.class));
    doReturn(new VOInstanceInfo()).when(besDAO).getInstanceInfo(
            any(ServiceInstance.class), any(InstanceResult.class));
    ServiceInstance si = givenServiceInstance(false);
    doThrow(new OperationNotPermittedException()).when(subServ)
            .completeAsyncModifySubscription(anyString(), anyString(),
                    any(VOInstanceInfo.class));

    // when
    besDAO.notifyAsyncModifySubscription(si, new InstanceResult(), true,
            new APPlatformException(""));
}
 
開發者ID:servicecatalog,項目名稱:oscm-app,代碼行數:22,代碼來源:BesDAOTest.java

示例6: notifyAsyncUpgradeSubscription_completion_OperationNotPermited

import org.oscm.types.exceptions.OrganizationAuthoritiesException; //導入依賴的package包/類
@Test(expected = BESNotificationException.class)
public void notifyAsyncUpgradeSubscription_completion_OperationNotPermited()
        throws APPlatformException, BESNotificationException,
        ObjectNotFoundException, SubscriptionStateException,
        TechnicalServiceNotAliveException,
        TechnicalServiceOperationException,
        OrganizationAuthoritiesException, OperationNotPermittedException {
    // given
    doReturn(subServ).when(besDAO).getBESWebService(
            eq(SubscriptionService.class), any(ServiceInstance.class), any(Optional.class));
    doReturn(new VOInstanceInfo()).when(besDAO).getInstanceInfo(
            any(ServiceInstance.class), any(InstanceResult.class));
    ServiceInstance si = givenServiceInstance(false);
    doThrow(new OperationNotPermittedException()).when(subServ)
            .completeAsyncUpgradeSubscription(anyString(), anyString(),
                    any(VOInstanceInfo.class));

    // when
    besDAO.notifyAsyncUpgradeSubscription(si, new InstanceResult(), true,
            new APPlatformException(""));
}
 
開發者ID:servicecatalog,項目名稱:oscm-app,代碼行數:22,代碼來源:BesDAOTest.java

示例7: notifyAsyncModifySubscription_abortion_OperationNotPermited

import org.oscm.types.exceptions.OrganizationAuthoritiesException; //導入依賴的package包/類
@Test(expected = BESNotificationException.class)
public void notifyAsyncModifySubscription_abortion_OperationNotPermited()
        throws APPlatformException, BESNotificationException,
        ObjectNotFoundException, SubscriptionStateException,
        OrganizationAuthoritiesException, OperationNotPermittedException {
    // given
    doReturn(subServ).when(besDAO).getBESWebService(
            eq(SubscriptionService.class), any(ServiceInstance.class), any(Optional.class));
    doReturn(new VOInstanceInfo()).when(besDAO).getInstanceInfo(
            any(ServiceInstance.class), any(InstanceResult.class));
    ServiceInstance si = givenServiceInstance(false);
    doThrow(new OperationNotPermittedException()).when(subServ)
            .abortAsyncModifySubscription(anyString(), anyString(),
                    anyListOf(VOLocalizedText.class));

    // when
    besDAO.notifyAsyncModifySubscription(si, new InstanceResult(), false,
            new APPlatformException(""));
}
 
開發者ID:servicecatalog,項目名稱:oscm-app,代碼行數:20,代碼來源:BesDAOTest.java

示例8: notifyAsyncUpgradeSubscription_abortion_OperationNotPermited

import org.oscm.types.exceptions.OrganizationAuthoritiesException; //導入依賴的package包/類
@Test(expected = BESNotificationException.class)
public void notifyAsyncUpgradeSubscription_abortion_OperationNotPermited()
        throws APPlatformException, BESNotificationException,
        ObjectNotFoundException, SubscriptionStateException,
        OrganizationAuthoritiesException, OperationNotPermittedException {
    // given
    doReturn(subServ).when(besDAO).getBESWebService(
            eq(SubscriptionService.class), any(ServiceInstance.class), any(Optional.class));
    doReturn(new VOInstanceInfo()).when(besDAO).getInstanceInfo(
            any(ServiceInstance.class), any(InstanceResult.class));
    ServiceInstance si = givenServiceInstance(false);
    doThrow(new OperationNotPermittedException()).when(subServ)
            .abortAsyncUpgradeSubscription(anyString(), anyString(),
                    anyListOf(VOLocalizedText.class));

    // when
    besDAO.notifyAsyncUpgradeSubscription(si, new InstanceResult(), false,
            new APPlatformException(""));
}
 
開發者ID:servicecatalog,項目名稱:oscm-app,代碼行數:20,代碼來源:BesDAOTest.java

示例9: notifyAsyncSubscription_completion_ObjectNotFound

import org.oscm.types.exceptions.OrganizationAuthoritiesException; //導入依賴的package包/類
@Test
public void notifyAsyncSubscription_completion_ObjectNotFound()
        throws APPlatformException, BESNotificationException,
        ObjectNotFoundException, SubscriptionStateException,
        TechnicalServiceNotAliveException,
        TechnicalServiceOperationException,
        OrganizationAuthoritiesException, OperationNotPermittedException,
        ValidationException {
    // given
    doReturn(subServ).when(besDAO).getBESWebService(
            eq(SubscriptionService.class), any(ServiceInstance.class), any(Optional.class));
    doReturn(new VOInstanceInfo()).when(besDAO).getInstanceInfo(
            any(ServiceInstance.class), any(InstanceResult.class));
    ServiceInstance si = givenServiceInstance(false);
    doThrow(new ObjectNotFoundException()).when(subServ)
            .completeAsyncSubscription(anyString(), anyString(),
                    any(VOInstanceInfo.class));

    // when
    besDAO.notifyAsyncSubscription(si, new InstanceResult(), true,
            new APPlatformException(""));

    // then no exception
}
 
開發者ID:servicecatalog,項目名稱:oscm-app,代碼行數:25,代碼來源:BesDAOTest.java

示例10: notifyAsyncModifySubscription_completion_ObjectNotFound

import org.oscm.types.exceptions.OrganizationAuthoritiesException; //導入依賴的package包/類
@Test
public void notifyAsyncModifySubscription_completion_ObjectNotFound()
        throws APPlatformException, BESNotificationException,
        ObjectNotFoundException, SubscriptionStateException,
        TechnicalServiceNotAliveException,
        TechnicalServiceOperationException,
        OrganizationAuthoritiesException, OperationNotPermittedException {
    // given
    doReturn(subServ).when(besDAO).getBESWebService(
            eq(SubscriptionService.class), any(ServiceInstance.class), any(Optional.class));
    doReturn(new VOInstanceInfo()).when(besDAO).getInstanceInfo(
            any(ServiceInstance.class), any(InstanceResult.class));
    ServiceInstance si = givenServiceInstance(false);
    doThrow(new ObjectNotFoundException()).when(subServ)
            .completeAsyncModifySubscription(anyString(), anyString(),
                    any(VOInstanceInfo.class));

    // when
    besDAO.notifyAsyncModifySubscription(si, new InstanceResult(), true,
            new APPlatformException(""));

    // then no exception
}
 
開發者ID:servicecatalog,項目名稱:oscm-app,代碼行數:24,代碼來源:BesDAOTest.java

示例11: notifyAsyncUpgradeSubscription_completion_ObjectNotFound

import org.oscm.types.exceptions.OrganizationAuthoritiesException; //導入依賴的package包/類
@Test
public void notifyAsyncUpgradeSubscription_completion_ObjectNotFound()
        throws APPlatformException, BESNotificationException,
        ObjectNotFoundException, SubscriptionStateException,
        TechnicalServiceNotAliveException,
        TechnicalServiceOperationException,
        OrganizationAuthoritiesException, OperationNotPermittedException {
    // given
    doReturn(subServ).when(besDAO).getBESWebService(
            eq(SubscriptionService.class), any(ServiceInstance.class), any(Optional.class));
    doReturn(new VOInstanceInfo()).when(besDAO).getInstanceInfo(
            any(ServiceInstance.class), any(InstanceResult.class));
    ServiceInstance si = givenServiceInstance(false);
    doThrow(new ObjectNotFoundException()).when(subServ)
            .completeAsyncUpgradeSubscription(anyString(), anyString(),
                    any(VOInstanceInfo.class));

    // when
    besDAO.notifyAsyncUpgradeSubscription(si, new InstanceResult(), true,
            new APPlatformException(""));

    // then no exception
}
 
開發者ID:servicecatalog,項目名稱:oscm-app,代碼行數:24,代碼來源:BesDAOTest.java

示例12: notifyAsyncSubscription_abortion_ObjectNotFound

import org.oscm.types.exceptions.OrganizationAuthoritiesException; //導入依賴的package包/類
@Test
public void notifyAsyncSubscription_abortion_ObjectNotFound()
        throws APPlatformException, BESNotificationException,
        ObjectNotFoundException, SubscriptionStateException,
        OrganizationAuthoritiesException, OperationNotPermittedException {
    // given
    doReturn(subServ).when(besDAO).getBESWebService(
            eq(SubscriptionService.class), any(ServiceInstance.class), any(Optional.class));
    doReturn(new VOInstanceInfo()).when(besDAO).getInstanceInfo(
            any(ServiceInstance.class), any(InstanceResult.class));
    ServiceInstance si = givenServiceInstance(false);
    doThrow(new ObjectNotFoundException()).when(subServ)
            .abortAsyncSubscription(anyString(), anyString(),
                    anyListOf(VOLocalizedText.class));

    // when
    besDAO.notifyAsyncSubscription(si, new InstanceResult(), false,
            new APPlatformException(""));

    // then no exception
}
 
開發者ID:servicecatalog,項目名稱:oscm-app,代碼行數:22,代碼來源:BesDAOTest.java

示例13: notifyAsyncModifySubscription_abortion_ObjectNotFound

import org.oscm.types.exceptions.OrganizationAuthoritiesException; //導入依賴的package包/類
@Test
public void notifyAsyncModifySubscription_abortion_ObjectNotFound()
        throws APPlatformException, BESNotificationException,
        ObjectNotFoundException, SubscriptionStateException,
        OrganizationAuthoritiesException, OperationNotPermittedException {
    // given
    doReturn(subServ).when(besDAO).getBESWebService(
            eq(SubscriptionService.class), any(ServiceInstance.class), any(Optional.class));
    doReturn(new VOInstanceInfo()).when(besDAO).getInstanceInfo(
            any(ServiceInstance.class), any(InstanceResult.class));
    ServiceInstance si = givenServiceInstance(false);
    doThrow(new ObjectNotFoundException()).when(subServ)
            .abortAsyncModifySubscription(anyString(), anyString(),
                    anyListOf(VOLocalizedText.class));

    // when
    besDAO.notifyAsyncModifySubscription(si, new InstanceResult(), false,
            new APPlatformException(""));

    // then no exception
}
 
開發者ID:servicecatalog,項目名稱:oscm-app,代碼行數:22,代碼來源:BesDAOTest.java

示例14: notifyAsyncUpgradeSubscription_abortion_ObjectNotFound

import org.oscm.types.exceptions.OrganizationAuthoritiesException; //導入依賴的package包/類
@Test
public void notifyAsyncUpgradeSubscription_abortion_ObjectNotFound()
        throws APPlatformException, BESNotificationException,
        ObjectNotFoundException, SubscriptionStateException,
        OrganizationAuthoritiesException, OperationNotPermittedException {
    // given
    doReturn(subServ).when(besDAO).getBESWebService(
            eq(SubscriptionService.class), any(ServiceInstance.class), any(Optional.class));
    doReturn(new VOInstanceInfo()).when(besDAO).getInstanceInfo(
            any(ServiceInstance.class), any(InstanceResult.class));
    ServiceInstance si = givenServiceInstance(false);
    doThrow(new ObjectNotFoundException()).when(subServ)
            .abortAsyncUpgradeSubscription(anyString(), anyString(),
                    anyListOf(VOLocalizedText.class));

    // when
    besDAO.notifyAsyncUpgradeSubscription(si, new InstanceResult(), false,
            new APPlatformException(""));

    // then no exception
}
 
開發者ID:servicecatalog,項目名稱:oscm-app,代碼行數:22,代碼來源:BesDAOTest.java

示例15: notifyAsyncSubscription_abortion_SubscriptionState

import org.oscm.types.exceptions.OrganizationAuthoritiesException; //導入依賴的package包/類
@Test
public void notifyAsyncSubscription_abortion_SubscriptionState()
        throws APPlatformException, BESNotificationException,
        ObjectNotFoundException, SubscriptionStateException,
        OrganizationAuthoritiesException, OperationNotPermittedException {
    // given
    doReturn(subServ).when(besDAO).getBESWebService(
            eq(SubscriptionService.class), any(ServiceInstance.class), any(Optional.class));
    doReturn(new VOInstanceInfo()).when(besDAO).getInstanceInfo(
            any(ServiceInstance.class), any(InstanceResult.class));
    ServiceInstance si = givenServiceInstance(false);
    doThrow(new SubscriptionStateException()).when(subServ)
            .abortAsyncSubscription(anyString(), anyString(),
                    anyListOf(VOLocalizedText.class));
    doNothing().when(besDAO).handleSubscriptionStateException(
            any(ServiceInstance.class), any(InstanceResult.class),
            eq(false), any(SubscriptionStateException.class));

    // when
    besDAO.notifyAsyncSubscription(si, new InstanceResult(), false,
            new APPlatformException(""));

    // then no exception
}
 
開發者ID:servicecatalog,項目名稱:oscm-app,代碼行數:25,代碼來源:BesDAOTest.java


注:本文中的org.oscm.types.exceptions.OrganizationAuthoritiesException類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。