Junit中对于EL表达式的支持办法

在Junit测试Hibernate Validator验证数据返回默认的错误message,如果带EL表达书,Junit是不支持处理输入EL表达式的信息的,会报错,需要添加三个包来支持,分别是一下这三个:

        <dependency>
            <groupId>de.odysseus.juel</groupId>
            <artifactId>juel-impl</artifactId>
            <version>2.2.7</version>
            <scope>test</scope>
        </dependency>

        <dependency>
            <groupId>de.odysseus.juel</groupId>
            <artifactId>juel-api</artifactId>
            <version>2.2.7</version>
            <scope>test</scope>
        </dependency>

        <dependency>
            <groupId>de.odysseus.juel</groupId>
            <artifactId>juel-spi</artifactId>
            <version>2.2.7</version>
            <scope>test</scope>
        </dependency>


你可能感兴趣的:(JUnit,el表达式)