refactoring

revert-70aa11f8
GDLMadushanka 7 years ago
parent ca1c9b18cd
commit 026e70824c

@ -38,7 +38,6 @@ import java.util.concurrent.ConcurrentHashMap;
Unit tests for DeviceTypePluginDeployer Unit tests for DeviceTypePluginDeployer
*/ */
public class DeviceTypePluginDeployerTest { public class DeviceTypePluginDeployerTest {
private DeviceTypePluginDeployer deviceTypePluginDeployer; private DeviceTypePluginDeployer deviceTypePluginDeployer;
private DeploymentFileData deploymentFileData; private DeploymentFileData deploymentFileData;
private Field deviceTypeServiceRegistrations = null; private Field deviceTypeServiceRegistrations = null;
@ -68,7 +67,6 @@ public class DeviceTypePluginDeployerTest {
File file = new File("src/test/resources"); File file = new File("src/test/resources");
if (file.exists()) { if (file.exists()) {
System.setProperty("carbon.home", file.getAbsolutePath()); System.setProperty("carbon.home", file.getAbsolutePath());
} }
} }
PrivilegedCarbonContext.getThreadLocalCarbonContext().setTenantDomain( PrivilegedCarbonContext.getThreadLocalCarbonContext().setTenantDomain(

@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!-- <!--
~ Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. ~ Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
~ ~

@ -1,4 +1,3 @@
<!-- <!--
~ Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. ~ Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
~ ~

@ -192,7 +192,9 @@
<fileset dir="${api.extension.handlers}/${target}/${coverge-report}"> <fileset dir="${api.extension.handlers}/${target}/${coverge-report}">
<include name="${individual.test.report.name}" /> <include name="${individual.test.report.name}" />
</fileset> </fileset>
<fileset dir="${device.extensions.deployer}/${target}/${coverge-report}">
<include name="${individual.test.report.name}" />
</fileset>
<!-- Need to list the newly added exec files here --> <!-- Need to list the newly added exec files here -->
</executiondata> </executiondata>
<structure name="Carbon Device Management Component Coverage Report"> <structure name="Carbon Device Management Component Coverage Report">

Loading…
Cancel
Save