Skip to content
Advertisement

DBUnit: NoSuchColumnException Non-uppercase input column in ColumnNameToIndexes cache map. map’s column names are NOT case sensitive

My java application stores your information in MySql database version 8. The user information and password are stored in this database. I am implementing an integration test to test the method that validates the user in the database using dbunit. After the test method runs, the error below occurs.

JavaScript

I checked through MySql Workbench that both the table and the columns were created in uppercase, so the error message displayed does not make sense. Does anyone know what can be causing this exception?

testContext.xml

unitils.properties

JavaScript

In src/test/dbscripts exists the file 001_SCRIPT_01.00.00

JavaScript

/datasets/UserServiceTest.xml

JavaScript

Entities

JavaScript

Class Test AccessServiceIT.java

JavaScript

Advertisement

Answer

I found the solution to the problem. I just put the following property in unitils.properties and everything is working perfectly fine now.

JavaScript

I found the solution here https://stackoverflow.com/a/39549867/3554659

I hope it helps who is going through the same mistake.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement