But no matter how much enthusiasm we have for all of these goals, taking on even just two habits at once is setting ourselves up for failure.
但是,无论我们对这些目标怀着多大的热情,一次承担哪怕两个习惯也会让我们准备着迎接失败。
"Without the help of parents, we are setting a child up for failure," says Dr. Anthony Porto, a pediatric gastroenterologist at New York Hospital Queens and the director of the Fit Kids program.
“如果没有父母的帮助,我们指导孩子的计划将会失败,”纽约皇后医院的小儿胃肠病医师和适合儿童的项目负责人安东尼·波尔图博士说道。
You can prime JUnit to expect this failure by setting the expected value on the @Test annotation of the class type you expect to be thrown.
通过将您希望抛出异常的类类型的 @Test 注释的值设置为 expected,可以使 JUit 提前预测到这种错误。
应用推荐