mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Matthew Swift
29.14.2013 89b548f1b79335af2dc6b409fb4829ed03d22076
Back-port fix OPENDJ-1124: Connection.search() return value not mockable

* make ConnectionEntryReader non-final.
1 files modified
12 ■■■■ changed files
opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldif/ConnectionEntryReader.java 12 ●●●● patch | view | raw | blame | history
opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldif/ConnectionEntryReader.java
@@ -22,7 +22,7 @@
 *
 *
 *      Copyright 2010 Sun Microsystems, Inc.
 *      Portions copyright 2011-2012 ForgeRock AS.
 *      Portions copyright 2011-2013 ForgeRock AS.
 */
package org.forgerock.opendj.ldif;
@@ -97,8 +97,16 @@
 *   reader.close();
 * }
 * </pre>
 *
 * <b>NOTE:</b> although this class is non-final, sub-classing is not supported
 * except when creating mock objects for unit tests. This class has been
 * selected specifically because it is the only aspect of the {@code Connection}
 * interface which is not mockable.
 */
public final class ConnectionEntryReader implements EntryReader {
public class ConnectionEntryReader implements EntryReader {
    /*
     * See OPENDJ-1124 for more discussion about why this class is non-final.
     */
    /**
     * Result handler that places all responses in a queue.