Tag Archives: IDEA Error java.lang.AssertionError

When using Assert assertion to test the basic query statement of mybatis, IDEA prompts: java.lang.AssertionError

When using Assert assertion to test the basic query statement of mybatis, idea prompts: java.lang.AssertionError

All sql statements are executed correctly, line 33

Tag t = tm.selectByTname(“Shpping”);

Assert.assertNotNull(t);

The test failed.

 

 

After checking, it was found that the word “Shopping” was entered incorrectly, so the test of “not empty” failed