修复bug

This commit is contained in:
禾几海
2020-05-26 12:54:24 +08:00
parent aa882406d0
commit 03cb04ab06
9 changed files with 14 additions and 11 deletions

View File

@@ -164,7 +164,7 @@ public class ArticleMapperTest extends BaseTest {
@Test
public void findAllByCategoryIdAndOpen() {
List<Article> allByCategoryId = articleMapper.findAllByCategoryId(1);
List<Article> allByCategoryId = articleMapper.findAllByCategoryIdAndOpen(1);
assertNotEquals(0, allByCategoryId.size());
allByCategoryId.forEach(article -> assertTrue(article.getOpen()));
}