Package javax.naming.ldap

Examples of javax.naming.ldap.UnsolicitedNotification


        server.disconnectNotify();
        Thread.sleep(500);
        assertNull(listener.exceptionEvent);
        assertNotNull(listener.unsolicatedEvent);
        assertTrue(listener.unsolicatedEvent.getSource() instanceof LdapContext);
        UnsolicitedNotification notification = listener.unsolicatedEvent
                .getNotification();
        assertNotNull(notification);
        assertEquals(DisconnectResponse.oid, notification.getID());
        assertNull(notification.getControls());
        assertNull(notification.getException());
        assertNull(notification.getReferrals());
        assertNull(notification.getEncodedValue());
    }
View Full Code Here


  public void testConstructor_simple() {
    NamingException exception = new NamingException(
        "MockUnsolicitedNotification: naming exception");
    String[] referral = { "Red", "Blue", };
    UnsolicitedNotification notification = new MockUnsolicitedNotification(
        referral, exception);
    Object src = "source";
    UnsolicitedNotificationEvent event = new UnsolicitedNotificationEvent(
        src, notification);
View Full Code Here

  public void testConstructor_src_null() {
    NamingException exception = new NamingException(
        "MockUnsolicitedNotification: naming exception");
    String[] referral = { "Red", "Blue", };
    UnsolicitedNotification notification = new MockUnsolicitedNotification(
        referral, exception);
    Object src = null;
    try {
      new UnsolicitedNotificationEvent(
          src, notification);
View Full Code Here

  public void testDispatch() {
    NamingException exception = new NamingException(
        "MockUnsolicitedNotification: naming exception");
    String[] referral = { "Red", "Blue", };
    UnsolicitedNotification notification = new MockUnsolicitedNotification(
        referral, exception);
    Object src = "source";
    UnsolicitedNotificationEvent event = new UnsolicitedNotificationEvent(
        src, notification);
    MockUnsolicitedNotificationListener listener = new MockUnsolicitedNotificationListener();
View Full Code Here

TOP

Related Classes of javax.naming.ldap.UnsolicitedNotification

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.