@Test public void testNumberToNameErrorUnknownName() { Integer number = NoteNameTable.nameToNumber(""); Assert.assertNull(number); }
public static Integer nameToNumber(final String name) { for (int noteNum = 0; noteNum < NUM; noteNum++) { if (NOTE_NAME_LIST[noteNum].equals(name)) { return noteNum; } } return null; }
NoteNameTable { public static Integer nameToNumber(final String name) { for (int noteNum = 0; noteNum < NUM; noteNum++) { if (NOTE_NAME_LIST[noteNum].equals(name)) { return noteNum; } } return null; } }
NoteNameTable { public static Integer nameToNumber(final String name) { for (int noteNum = 0; noteNum < NUM; noteNum++) { if (NOTE_NAME_LIST[noteNum].equals(name)) { return noteNum; } } return null; }  }
NoteNameTable { public static Integer nameToNumber(final String name) { for (int noteNum = 0; noteNum < NUM; noteNum++) { if (NOTE_NAME_LIST[noteNum].equals(name)) { return noteNum; } } return null; }  static String numberToName(final int number); static Integer nameToNumber(final String name); }
NoteNameTable { public static Integer nameToNumber(final String name) { for (int noteNum = 0; noteNum < NUM; noteNum++) { if (NOTE_NAME_LIST[noteNum].equals(name)) { return noteNum; } } return null; }  static String numberToName(final int number); static Integer nameToNumber(final String name);  }