Subtle incompatibility in deprecation of TestUtil's mock lookup functionality.
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.