diff options
Diffstat (limited to 'org.eclipse.m2e.importer.tests/src/org/eclipse/m2e/importer/tests/MavenImporterTest.java')
-rw-r--r-- | org.eclipse.m2e.importer.tests/src/org/eclipse/m2e/importer/tests/MavenImporterTest.java | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/org.eclipse.m2e.importer.tests/src/org/eclipse/m2e/importer/tests/MavenImporterTest.java b/org.eclipse.m2e.importer.tests/src/org/eclipse/m2e/importer/tests/MavenImporterTest.java index e88e8426..2c542374 100644 --- a/org.eclipse.m2e.importer.tests/src/org/eclipse/m2e/importer/tests/MavenImporterTest.java +++ b/org.eclipse.m2e.importer.tests/src/org/eclipse/m2e/importer/tests/MavenImporterTest.java @@ -1,9 +1,11 @@ /******************************************************************************* - * Copyright (c) 2016 Red Hat Inc. + * Copyright (c) 2016, 2019 Red Hat Inc. * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 + * are made available under the terms of the Eclipse Public License 2.0 * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 *******************************************************************************/ package org.eclipse.m2e.importer.tests; @@ -62,7 +64,7 @@ public class MavenImporterTest extends AbstractMavenProjectTestCase { @Test public void test() throws Exception { Set<IProject> newProjects = null; - SmartImportJob job = new SmartImportJob(projectDirectory, Collections.EMPTY_SET, true, true); + SmartImportJob job = new SmartImportJob(projectDirectory, Collections.emptySet(), true, true); Map<File, List<ProjectConfigurator>> proposals = job.getImportProposals(monitor); Assert.assertEquals("Expected 2 projects to import", 2, proposals.size()); //$NON-NLS-1$ @@ -98,7 +100,7 @@ public class MavenImporterTest extends AbstractMavenProjectTestCase { public void testRootWithoutPom() throws Exception { Set<IProject> newProjects = null; // important part here is the "getParentFile()" - SmartImportJob job = new SmartImportJob(projectDirectory.getParentFile(), Collections.EMPTY_SET, true, true); + SmartImportJob job = new SmartImportJob(projectDirectory.getParentFile(), Collections.emptySet(), true, true); Map<File, List<ProjectConfigurator>> proposals = job.getImportProposals(monitor); Assert.assertEquals("Expected 2 projects to import", 2, proposals.size()); //$NON-NLS-1$ |