50
50
import org .eclipse .pde .ui .tests .util .TestBundleCreator ;
51
51
import org .eclipse .test .performance .Dimension ;
52
52
import org .eclipse .test .performance .PerformanceTestCase ;
53
+ import org .junit .Assert ;
53
54
import org .osgi .framework .Version ;
54
55
55
56
/**
@@ -117,7 +118,7 @@ public void testSearchModelRegistry() throws Exception {
117
118
// Create a workspace model
118
119
IWorkspace ws = ResourcesPlugin .getWorkspace ();
119
120
IProject proj = ws .getRoot ().getProject (SEARCH_TEST_WORKSPACE_NAME );
120
- assertFalse ("Project should not exist" , proj .exists ());
121
+ Assert . assertFalse ("Project should not exist" , proj .exists ());
121
122
IBundleProjectDescription description = service .getDescription (proj );
122
123
description .setSymbolicName (SEARCH_TEST_WORKSPACE_NAME );
123
124
description .setBundleVersion (new Version ("1.1.1" ));
@@ -203,19 +204,19 @@ public void testSearchModelRegistry() throws Exception {
203
204
private void executeSearchTest () {
204
205
IPluginModelBase [] models ;
205
206
models = PluginRegistry .getAllModels ();
206
- assertEquals (SEARCH_TEST_EXTERNAL_COUNT + 1 , models .length );
207
+ Assert . assertEquals (SEARCH_TEST_EXTERNAL_COUNT + 1 , models .length );
207
208
models = PluginRegistry .getWorkspaceModels ();
208
- assertEquals (1 , models .length );
209
+ Assert . assertEquals (1 , models .length );
209
210
models = PluginRegistry .getExternalModels ();
210
- assertEquals (SEARCH_TEST_EXTERNAL_COUNT , models .length );
211
+ Assert . assertEquals (SEARCH_TEST_EXTERNAL_COUNT , models .length );
211
212
212
213
IPluginModelBase model ;
213
214
IWorkspace ws = ResourcesPlugin .getWorkspace ();
214
215
model = PluginRegistry .findModel (SEARCH_TEST_WORKSPACE_NAME );
215
- assertNotNull (model );
216
+ Assert . assertNotNull (model );
216
217
IProject project = ws .getRoot ().getProject (SEARCH_TEST_WORKSPACE_NAME );
217
218
model = PluginRegistry .findModel (project );
218
- assertNotNull (model );
219
+ Assert . assertNotNull (model );
219
220
220
221
model = PluginRegistry .findModel (SEARCH_TEST_EXTERNAL_NAME );
221
222
openRequiredBundles (model , new HashSet <>());
@@ -230,7 +231,7 @@ private void executeSearchTest() {
230
231
* @param allBundleNames set of symbolic names that have been looked up to prevent stack overflows
231
232
*/
232
233
private void openRequiredBundles (IPluginModelBase model , Set <String > allBundleNames ) {
233
- assertNotNull (model );
234
+ Assert . assertNotNull (model );
234
235
BundleSpecification [] required = model .getBundleDescription ().getRequiredBundles ();
235
236
for (BundleSpecification element : required ) {
236
237
if (!allBundleNames .contains (element .getName ())) {
0 commit comments