@@ -0,0 +1,2308 @@
+/* Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *      http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage org.camunda.bpm.application.impl.deployment;%0A%0Aimport java.util.Map;%0A%0Aimport org.camunda.bpm.application.impl.metadata.spi.ProcessArchiveXml;%0Aimport org.camunda.bpm.application.impl.metadata.spi.ProcessesXml;%0A%0Aimport junit.framework.TestCase;%0A%0A/**%0A * %3Cp%3ETestcase verifying the default properties in the empty processes.xml%3C/p%3E%0A *%0A * @author Daniel Meyer%0A *%0A */%0Apublic class EmptyProcessesXmlTest extends TestCase %7B%0A%0A  public void testDefaultValues() %7B%0A%0A    ProcessesXml emptyProcessesXml = ProcessesXml.EMPTY_PROCESSES_XML;%0A    assertNotNull(emptyProcessesXml);%0A%0A    assertNotNull(emptyProcessesXml.getProcessEngines());%0A    assertEquals(0, emptyProcessesXml.getProcessEngines().size());%0A%0A    assertNotNull(emptyProcessesXml.getProcessArchives());%0A    assertEquals(1, emptyProcessesXml.getProcessArchives().size());%0A%0A    ProcessArchiveXml processArchiveXml = emptyProcessesXml.getProcessArchives().get(0);%0A%0A    assertNull(processArchiveXml.getName());%0A    assertNull(processArchiveXml.getProcessEngineName());%0A%0A    assertNotNull(processArchiveXml.getProcessResourceNames());%0A    assertEquals(0, processArchiveXml.getProcessResourceNames().size());%0A%0A    Map%3CString, String%3E properties = processArchiveXml.getProperties();%0A%0A    assertNotNull(properties);%0A    assertEquals(2, properties.size());%0A%0A    String isDeleteUponUndeploy = properties.get(ProcessArchiveXml.PROP_IS_DELETE_UPON_UNDEPLOY);%0A    assertNotNull(isDeleteUponUndeploy);%0A    assertEquals(Boolean.FALSE.toString(), isDeleteUponUndeploy);%0A%0A    String isScanForProcessDefinitions = properties.get(ProcessArchiveXml.PROP_IS_SCAN_FOR_PROCESS_DEFINITIONS);%0A    assertNotNull(isScanForProcessDefinitions);%0A    assertEquals(Boolean.TRUE.toString(), isScanForProcessDefinitions);%0A%0A  %7D%0A%0A%7D%0A

add empty processes.xml validation