void () { doTest("comment"); doTest("noinspection"); doTest("noinspection I1", "I1"); doTest("noinspection I1, I2", "I1", "I2"); doTest("noinspection I.1 , I-2,I_3", "I.1", "I-2", "I_3"); try { doTest("noinspection ID junk", "ID", "junk"); fail(); } catch (AssertionError e) { assertEquals("'junk' is not in 'ID'", e.getMessage()); } }