This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 88504 - Provide a way to register instances in the default lookup in tests
Summary: Provide a way to register instances in the default lookup in tests
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: NB JUnit (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@platform
URL:
Keywords: API
Depends on:
Blocks:
 
Reported: 2006-11-02 12:21 UTC by Andrei Badea
Modified: 2009-10-01 14:34 UTC (History)
3 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrei Badea 2006-11-02 12:21:36 UTC
MockServices is useful, but it doesn't help when one needs to register instances
in the default lookup instead of classes. The workaround requiring the creation
of an own default lookup is too complicated and probably not obvious. There
should be a simpler way to do this.
Comment 1 Jesse Glick 2007-04-25 03:14:59 UTC
Checking in openide/util/test/unit/src/org/openide/util/test/MockLookupTest.java;
/shared/data/ccvs/repository/openide/util/test/unit/src/org/openide/util/test/MockLookupTest.java,v
 <--  MockLookupTest.java
initial revision: 1.1
done
RCS file:
/shared/data/ccvs/repository/openide/util/test/unit/src/org/openide/util/test/MockLookup.java,v
done
Checking in openide/util/test/unit/src/org/openide/util/test/MockLookup.java;
/shared/data/ccvs/repository/openide/util/test/unit/src/org/openide/util/test/MockLookup.java,v
 <--  MockLookup.java
initial revision: 1.1
done
Checking in
projects/projectapi/test/unit/src/org/netbeans/api/project/TestUtilTest.java;
/shared/data/ccvs/repository/projects/projectapi/test/unit/src/org/netbeans/api/project/TestUtilTest.java,v
 <--  TestUtilTest.java
new revision: 1.5; previous revision: 1.4
done
Checking in
projects/projectapi/test/unit/src/org/netbeans/api/project/ProjectUtilsTest.java;
/shared/data/ccvs/repository/projects/projectapi/test/unit/src/org/netbeans/api/project/ProjectUtilsTest.java,v
 <--  ProjectUtilsTest.java
new revision: 1.5; previous revision: 1.4
done
Checking in
projects/projectapi/test/unit/src/org/netbeans/api/project/FileOwnerQueryTest.java;
/shared/data/ccvs/repository/projects/projectapi/test/unit/src/org/netbeans/api/project/FileOwnerQueryTest.java,v
 <--  FileOwnerQueryTest.java
new revision: 1.13; previous revision: 1.12
done
Checking in
projects/projectapi/test/unit/src/org/netbeans/api/project/ProjectManagerTest.java;
/shared/data/ccvs/repository/projects/projectapi/test/unit/src/org/netbeans/api/project/ProjectManagerTest.java,v
 <--  ProjectManagerTest.java
new revision: 1.13; previous revision: 1.12
done
Checking in
projects/projectapi/test/unit/src/org/netbeans/api/project/TestUtil.java;
/shared/data/ccvs/repository/projects/projectapi/test/unit/src/org/netbeans/api/project/TestUtil.java,v
 <--  TestUtil.java
new revision: 1.18; previous revision: 1.17
done
Checking in xtest/nbjunit/src/org/netbeans/junit/MockServices.java;
/shared/data/ccvs/repository/xtest/nbjunit/src/org/netbeans/junit/MockServices.java,v
 <--  MockServices.java
new revision: 1.9; previous revision: 1.8
done
Comment 2 Andrei Badea 2007-04-25 09:06:20 UTC
Thanks.
Comment 3 Marian Mirilovic 2009-10-01 14:34:08 UTC
fix status