List of usage examples for org.apache.commons.lang ArrayUtils EMPTY_STRING_ARRAY
String[] EMPTY_STRING_ARRAY
To view the source code for org.apache.commons.lang ArrayUtils EMPTY_STRING_ARRAY.
Click Source Link
String
array. From source file:net.sourceforge.vulcan.core.support.ProjectImporterImplTest.java
@TrainingMethod("trainNoRepositorySupportsUrl") public void testNoRepositorySupportsUrl() throws Exception { try {/*from w ww .ja v a 2s . co m*/ importer.createProjectsForUrl(url, null, null, false, NameCollisionResolutionMode.Abort, ArrayUtils.EMPTY_STRING_ARRAY, null, null); fail("Expected exception"); } catch (ConfigException e) { assertEquals("errors.url.unsupported", e.getKey()); } }
From source file:net.sourceforge.vulcan.core.support.ProjectImporterImplTest.java
@TrainingMethod("trainWrapsIOExceptionDuringDownload") public void testWrapsIOExceptionDuringDownload() throws Exception { try {//w ww . j ava 2 s . c om importer.createProjectsForUrl(url, null, null, false, NameCollisionResolutionMode.Abort, ArrayUtils.EMPTY_STRING_ARRAY, null, null); fail("Expected exception"); } catch (ConfigException e) { assertSame(ioException, e.getCause()); assertEquals("errors.import.download", e.getKey()); assertEquals(ioException.getMessage(), e.getArgs()[0]); } assertFalse(tmpFile1.exists()); }
From source file:net.sourceforge.vulcan.core.support.ProjectImporterImplTest.java
@TrainingMethod("trainNoBuildToolSupportsFile") public void testNoBuildToolSupportsFile() throws Exception { try {/*from w w w .j a v a 2s. c o m*/ importer.createProjectsForUrl(url, null, null, false, NameCollisionResolutionMode.Abort, ArrayUtils.EMPTY_STRING_ARRAY, null, null); fail("expected exception"); } catch (ConfigException e) { assertEquals("errors.build.file.unsupported", e.getKey()); } assertFalse(tmpFile1.exists()); }
From source file:net.sourceforge.vulcan.core.support.ProjectImporterImplTest.java
@TrainingMethod("trainConfigures,trainSaves") public void testConfiguresAndSaves() throws Exception { importer.createProjectsForUrl(url, null, null, false, NameCollisionResolutionMode.Abort, ArrayUtils.EMPTY_STRING_ARRAY, null, null); }
From source file:net.sourceforge.vulcan.core.support.ProjectImporterImplTest.java
@TrainingMethod("trainConfigures,trainSavesWithPluginConfig") public void testConfiguresAndSavesWithPluginChanges() throws Exception { importer.createProjectsForUrl(url, null, null, false, NameCollisionResolutionMode.Abort, ArrayUtils.EMPTY_STRING_ARRAY, null, null); }
From source file:net.sourceforge.vulcan.core.support.ProjectImporterImplTest.java
@TrainingMethod("trainConfigures,trainPluginConfigUnchanged,trainSavesWithPluginConfig") public void testConfiguresAndSavesWithPluginChangesPluginNotModified() throws Exception { importer.createProjectsForUrl(url, null, null, false, NameCollisionResolutionMode.Abort, ArrayUtils.EMPTY_STRING_ARRAY, null, null); }
From source file:net.sourceforge.vulcan.core.support.ProjectImporterImplTest.java
@TrainingMethod("trainConfigures,trainStandalone,trainSaves") public void testConfiguresAndSavesStandalone() throws Exception { importer.createProjectsForUrl(url, null, null, true, NameCollisionResolutionMode.Abort, ArrayUtils.EMPTY_STRING_ARRAY, null, null); }
From source file:net.sourceforge.vulcan.core.support.ProjectImporterImplTest.java
@TrainingMethod("trainConfigures,trainNotStandalone,trainSaves") public void testConfiguresAndSavesNotStandalone() throws Exception { importer.createProjectsForUrl(url, null, null, true, NameCollisionResolutionMode.Abort, ArrayUtils.EMPTY_STRING_ARRAY, null, null); }
From source file:net.sourceforge.vulcan.core.support.ProjectImporterImplTest.java
@TrainingMethod("trainSetupAlternateWorkDir,trainConfigures,trainNotStandalone,trainSavesWithAlternateWorkDir") public void testConfiguresAndSavesBuildToolSetsWorkDir() throws Exception { importer.createProjectsForUrl(url, null, null, true, NameCollisionResolutionMode.Abort, ArrayUtils.EMPTY_STRING_ARRAY, Collections.singleton("a label"), null); }
From source file:net.sourceforge.vulcan.core.support.ProjectImporterImplTest.java
@TrainingMethod("trainConfigures,trainGetSubprojects,trainSavesSubproject") public void testCreatesProjectsRecursivelyOnFlag() throws Exception { importer.createProjectsForUrl(url, null, null, true, NameCollisionResolutionMode.Overwrite, ArrayUtils.EMPTY_STRING_ARRAY, null, null); }