Commit 87d74653 authored by Mathieu Lirzin's avatar Mathieu Lirzin

Improved: Move ‘ComponentContainerTest’ data to src/test/resources/ (OFBIZ-11275)

Remove unnecessary webapp declaration inside the test component
configurations.
parent d0f522ae
......@@ -43,7 +43,8 @@ public class ComponentContainerTest {
private static final Path ACCOUNTING_CONFIG = Paths.get("applications", "accounting", "config");
private static final Path[] CONFIGS = {ORDER_CONFIG, ACCOUNTING_CONFIG};
private Path ofbizHome = Paths.get("testsdata", "ComponentContainerTest").toAbsolutePath().normalize();
private Path ofbizHome = Paths.get(ComponentContainerTest.class.getResource("testsdata").getFile())
.toAbsolutePath().normalize();
@Before
public void setUp() throws IOException {
......
......@@ -24,10 +24,4 @@ under the License.
<depends-on component-name="order" />
<resource-loader name="main" type="component"/>
<classpath type="dir" location="config"/>
<webapp name="accounting"
title="Accounting"
server="default-server"
location="webapp/accounting"
base-permission="OFBTOOLS,ACCOUNTING"
mount-point="/accounting"/>
</ofbiz-component>
......@@ -17,18 +17,10 @@ KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<ofbiz-component name="order"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/ofbiz-component.xsd">
<resource-loader name="main" type="component"/>
<classpath type="dir" location="config"/>
<webapp name="order"
title="Order"
description="OrderComponentDescription"
server="default-server"
location="webapp/ordermgr"
base-permission="OFBTOOLS,ORDERMGR"
mount-point="/ordermgr"/>
</ofbiz-component>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment