Derby和JUnit 4之间的冲突?

时间:2013-06-05 13:09:30

标签: spring junit junit4 derby jbehave

为了向我们的项目添加一些新的ATDD测试功能(使用JBehave)。我已经更新了我的JUnit jar(4.4 - > 4.10),以便我可以使用SpringAnnotatedEmbedderRunner类。

由于这样做,我们的许多单元测试都失败了。所有这些都与我们的'内存'db derby有关:

Caused by: ERROR 42X05: Table/View 'FIX_MESSAGE_SEQUENCES' does not exist.
at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
at org.apache.derby.impl.sql.compile.FromBaseTable.bindTableDescriptor(Unknown Source)
at org.apache.derby.impl.sql.compile.FromBaseTable.bindNonVTITables(Unknown Source)
at org.apache.derby.impl.sql.compile.FromList.bindTables(Unknown Source)
at org.apache.derby.impl.sql.compile.SelectNode.bindNonVTITables(Unknown Source)
at org.apache.derby.impl.sql.compile.DMLStatementNode.bindTables(Unknown Source)
at org.apache.derby.impl.sql.compile.UpdateNode.bindStatement(Unknown Source)
at org.apache.derby.impl.sql.GenericStatement.prepMinion(Unknown Source)
at org.apache.derby.impl.sql.GenericStatement.prepare(Unknown Source)
at org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.prepareInternalStatement(Unknown Source)
... 13 more

有没有人知道德比和JUnit 4之间是否存在任何已知冲突?或者如果有任何解决方法?

Pom条目:

    <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>4.10</version>
        <scope>test</scope>
        <optional>true</optional>
    </dependency>

    <dependency>
        <groupId>org.apache.derby</groupId>
        <artifactId>derby</artifactId>
        <version>10.9.1.0 </version>
        <scope>test</scope>
    </dependency>

0 个答案:

没有答案