Subtle incompatibility in deprecation of TestUtil's mock lookup functionality. dev_vw_insync_asyncmodeling features_49618_and_uichanges_102289_root features_49618_root merged_model_j2ee_merge_trunk_1 merged_model_j2ee_root plugin_manager_102289_root versionability_89629_base_4 versionability_89629_base_5
authorjglick@netbeans.org
Fri, 27 Apr 2007 02:13:42 +0000
changeset 2797e829aa7267a
parent 278 4a92e8cb1df5
child 280 d3a1611fbb05
Subtle incompatibility in deprecation of TestUtil's mock lookup functionality.
openide.util/test/unit/src/org/openide/util/test/MockLookup.java
     1.1 --- a/openide.util/test/unit/src/org/openide/util/test/MockLookup.java	Wed Apr 25 16:15:44 2007 +0000
     1.2 +++ b/openide.util/test/unit/src/org/openide/util/test/MockLookup.java	Fri Apr 27 02:13:42 2007 +0000
     1.3 @@ -61,6 +61,14 @@
     1.4      }
     1.5  
     1.6      /**
     1.7 +     * Just ensures that this lookup is default lookup, but does not actually change its content.
     1.8 +     * Useful mainly if you have some test utility method which calls foreign code which might use default lookup,
     1.9 +     * and you want to ensure that any users of mock lookup will see the correct default lookup right away,
    1.10 +     * even if they have not yet called {@link #setLookup} or {@link #setInstances}.
    1.11 +     */
    1.12 +    public static void init() {}
    1.13 +
    1.14 +    /**
    1.15       * Sets the global default lookup with zero or more delegate lookups.
    1.16       * Caution: if you don't include Lookups.metaInfServices, you may have trouble,
    1.17       * e.g. {@link #makeScratchDir} will not work.