Package org.jasig.portal

Examples of org.jasig.portal.IChannel


   * Test that CError propogates events to wrapped channels.
   */
  public void testReceiveEvent() {
    EventRecordingChannel irc = new EventRecordingChannel();
   
    IChannel cError = new CError(ErrorCode.GENERAL_ERROR, new Throwable(), "bogusSusbscribeId", irc);
   
    assertTrue(irc.getEventsReceived().isEmpty());

    cError.receiveEvent(PortalEvent.SESSION_DONE_EVENT);
   
    List eventsReceived = irc.getEventsReceived();
    assertFalse(eventsReceived.isEmpty());
    PortalEvent event = (PortalEvent) irc.getEventsReceived().get(0);
    assertEquals(PortalEvent.SESSION_DONE, event.getEventNumber());
View Full Code Here


   */
  public void testReceiveEvent() {
    EventRecordingChannel irc = new EventRecordingChannel();
   
   
    IChannel cSecureInfo = new CSecureInfo("bugusSubId", irc);
   
     
    assertTrue(irc.getEventsReceived().isEmpty());

    cSecureInfo.receiveEvent(PortalEvent.SESSION_DONE_EVENT);
   
    List eventsReceived = irc.getEventsReceived();
    assertFalse(eventsReceived.isEmpty());
    PortalEvent event = (PortalEvent) irc.getEventsReceived().get(0);
    assertEquals(PortalEvent.SESSION_DONE, event.getEventNumber());
View Full Code Here

   */
  public void testReceiveEvent() {
    EventRecordingChannel irc = new EventRecordingChannel();
   
   
    IChannel cSecureInfo = new CSecureInfo("bugusSubId", irc);
   
     
    assertTrue(irc.getEventsReceived().isEmpty());

    cSecureInfo.receiveEvent(PortalEvent.SESSION_DONE_EVENT);
   
    List eventsReceived = irc.getEventsReceived();
    assertFalse(eventsReceived.isEmpty());
    PortalEvent event = (PortalEvent) irc.getEventsReceived().get(0);
    assertEquals(PortalEvent.SESSION_DONE, event.getEventNumber());
View Full Code Here

   * Test that CError propogates events to wrapped channels.
   */
  public void testReceiveEvent() {
    EventRecordingChannel irc = new EventRecordingChannel();
   
    IChannel cError = new CError(ErrorCode.GENERAL_ERROR, new Throwable(), "bogusSusbscribeId", irc);
   
    assertTrue(irc.getEventsReceived().isEmpty());

    cError.receiveEvent(PortalEvent.SESSION_DONE_EVENT);
   
    List eventsReceived = irc.getEventsReceived();
    assertFalse(eventsReceived.isEmpty());
    PortalEvent event = (PortalEvent) irc.getEventsReceived().get(0);
    assertEquals(PortalEvent.SESSION_DONE, event.getEventNumber());
View Full Code Here

TOP

Related Classes of org.jasig.portal.IChannel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.