Junit multiple results in one test
问题 Ok, I know this is considered an anti-pattern, and I am certainly open to a better way of doing this. I have a map of enum values. I want to ensure that each of those enum values is assigned to something. My test looks like this. @Test public void eachRowRequiresCellCalc() { Model model = new Model(); EnumValues[] values = EnumValues.values(); for (EnumValues value : values) { Assert.assertTrue(String.format("%s must be assigned", value.name()), model.hasEnumValue(value)); } } This works and