Junit 错误NoSuchColumnException DbUnit

Junit 错误NoSuchColumnException DbUnit,junit,dbunit,Junit,Dbunit,我有一个带有JSON列的表,当我使用数据集运行测试时 org.dbunit.dataset.NoSuchColumnException: hero.JSON - (Non-uppercase input column: json) in ColumnNameToIndexes cache map. Note that the map's column names are NOT case sensitive. 我的数据集: <?xml version="1.0" encoding="U

我有一个带有JSON列的表,当我使用数据集运行测试时

org.dbunit.dataset.NoSuchColumnException: hero.JSON - (Non-uppercase
input column: json) in ColumnNameToIndexes cache map. Note that the map's
column names are NOT case sensitive.
我的数据集:

 <?xml version="1.0" encoding="UTF-8"?>
 <dataset>

   <hero id='000580548' json='{"id" : 1,"name" : "mySuperHero"}'/>
   <hero_profile id='000580548-mySuperHero' json='{"habilities": [], "stars" : 7}'/>
</dataset>


Obs:数据库中已存在我的表。

默认情况下,DbUnit不理解json字段设置。
您可以在测试中忽略它,或者为DbUnit编写自定义扩展名,您可以使用技巧:

<hero 
id="000580548" 
json="{&quot;id&quot; : 1,&quot;name&quot; : &quot;mySuperHero&quot;}"
/>

这是我们的工作