@Test public void testIsKnownMode() { Set<String> modes = CowsayTest.modeMap.keySet(); for (String key : modes) { System.out.println("isKnownMode " + key); boolean expResult = true; boolean result = CowFace.isKnownMode(key); Assert.assertEquals(expResult, result); } }
public static final boolean isKnownMode(final String mode) { Set<String> modes = COW_MODES.keySet(); return modes.contains(mode); }
CowFace { public static final boolean isKnownMode(final String mode) { Set<String> modes = COW_MODES.keySet(); return modes.contains(mode); } }
CowFace { public static final boolean isKnownMode(final String mode) { Set<String> modes = COW_MODES.keySet(); return modes.contains(mode); } CowFace(); private  CowFace(final String eyes); private  CowFace(final String eyes, final String tongue); }
CowFace { public static final boolean isKnownMode(final String mode) { Set<String> modes = COW_MODES.keySet(); return modes.contains(mode); } CowFace(); private  CowFace(final String eyes); private  CowFace(final String eyes, final String tongue); String getEyes(); String getTongue(); final void setEyes(final String eyes); final void setTongue(final String tongue); static final boolean isKnownMode(final String mode); }
CowFace { public static final boolean isKnownMode(final String mode) { Set<String> modes = COW_MODES.keySet(); return modes.contains(mode); } CowFace(); private  CowFace(final String eyes); private  CowFace(final String eyes, final String tongue); String getEyes(); String getTongue(); final void setEyes(final String eyes); final void setTongue(final String tongue); static final boolean isKnownMode(final String mode);  }