首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >MUnit配置误差

MUnit配置误差
EN

Stack Overflow用户
提问于 2014-01-31 07:12:33
回答 4查看 3.6K关注 0票数 4

在我的Mule项目中,我有Munit测试用例。但是,该文件总是在配置文件开始时的<munit:config>标记处显示错误标记。

注意:,但目前我能够执行我的普通测试用例。

错误是:

找到无效的内容,从元素'munit:config‘开始。{“http://www.mulesoft.org/schema/mule/core”:注释之一,“http://www.mulesoft.org/schema/mule/core”:描述,

EN

回答 4

Stack Overflow用户

发布于 2016-03-24 22:17:42

这是个旧帖子,但我看不出答案。我也有过同样的问题:

我有

在声明的顶端。我把它删除了,因为我还有

xmlns:core="http://www.mulesoft.org/schema/mule/core“下面。

这修正了错误。

票数 2
EN

Stack Overflow用户

发布于 2014-01-31 13:13:46

此错误意味着munit罐子不在您的类路径中。

票数 0
EN

Stack Overflow用户

发布于 2018-08-30 09:38:56

为了帮助其他人和未来的人,我仍然在任何点Studio 6.5和munit tools 3.9.0中面临这个问题,我们必须配置munit配置全局元素,如下所示

代码语言:javascript
复制
<mule xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" xmlns:munit="http://www.mulesoft.org/schema/mule/munit" xmlns:spring="http://www.springframework.org/schema/beans" xmlns:http="http://www.mulesoft.org/schema/mule/http" xmlns:tls="http://www.mulesoft.org/schema/mule/tls" xmlns:core="http://www.mulesoft.org/schema/mule/core" xmlns:mock="http://www.mulesoft.org/schema/mule/mock" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mulesoft.org/schema/mule/munit http://www.mulesoft.org/schema/mule/munit/current/mule-munit.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd
http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd
http://www.mulesoft.org/schema/mule/tls http://www.mulesoft.org/schema/mule/tls/current/mule-tls.xsd
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
http://www.mulesoft.org/schema/mule/mock http://www.mulesoft.org/schema/mule/mock/current/mule-mock.xsd">
<munit:config mock-connectors="false" mock-inbounds="false" name="munit" 
    doc:name="MUnit configuration"/>
    <spring:beans>
        <spring:import resource="classpath:insurer-sys-api.xml"/>
        <spring:import resource="classpath:global.xml"/>
        <spring:import resource="classpath:insurer-sys-api-claims.xml"/>
        <spring:import resource="classpath:insurer-sys-api-policyValidation.xml"/>
        <spring:import resource="classpath:insurer-ctp-sys-api-shared.xml"/>
        <spring:import resource="classpath:insurer-ctp-sys-api-health.xml"/>
    </spring:beans>
    <http:request-config name="HTTPS_Request_Configuration" protocol="HTTPS" 
    host="localhost" port="8082" basePath="/api" doc:name="HTTP Request 
    Configuration">
        <tls:context>
            <tls:trust-store insecure="true"/>
        </tls:context>

    </http:request-config>
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/21474407

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档