在我的Mule项目中,我有Munit测试用例。但是,该文件总是在配置文件开始时的<munit:config>标记处显示错误标记。
注意:,但目前我能够执行我的普通测试用例。
错误是:
找到无效的内容,从元素'munit:config‘开始。{“http://www.mulesoft.org/schema/mule/core”:注释之一,“http://www.mulesoft.org/schema/mule/core”:描述,
发布于 2016-03-24 22:17:42
这是个旧帖子,但我看不出答案。我也有过同样的问题:
我有
在声明的顶端。我把它删除了,因为我还有
xmlns:core="http://www.mulesoft.org/schema/mule/core“下面。
这修正了错误。
发布于 2014-01-31 13:13:46
此错误意味着munit罐子不在您的类路径中。
发布于 2018-08-30 09:38:56
为了帮助其他人和未来的人,我仍然在任何点Studio 6.5和munit tools 3.9.0中面临这个问题,我们必须配置munit配置全局元素,如下所示
<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>https://stackoverflow.com/questions/21474407
复制相似问题