请帮助我解决以下问题,我的Junit测试失败,因为我的输出是
"09:39:43.704 [main] INFO by.iba.gomel.ShapeController - 145"
但是我只需要“ 145” ShapeController.LOGGER.info("{}", ShapeController.sum);
@Test
public void testSumma() {
final Shape[] newShapes = new Shape[5];
ShapeController.initializeArray(newShapes);
ShapeController.summa(newShapes);
Assert.assertEquals("these objects should be equal", "145", this.log.getLog());
}