KanjidicEntry extends DictEntry { public char getKanji() { return kanji.charAt(0); } KanjidicEntry(final String kanji, final String reading, final String english, final int radical, final int strokes, final String skip, final Integer grade); Integer getJlpt(); char getKanji(); List<String> getOnyomi(); List<String> getKunyomi(); List<String> getNamae(); List<String> getEnglish(); static String removeSplits(final String str); final int radical; final int strokes; final String skip; final Integer grade; }
@Test public void testConstructor() { final KanjidicEntry k = new KanjidicEntry("K", "Reading", "English", 1, 2, "3-4-5", 4); assertEquals("K", k.kanji); assertEquals('K', k.getKanji()); assertEquals("Reading", k.reading); assertEquals("English", k.english); assertEquals(1, k.radical); assertEquals(2, k.strokes); assertEquals("3-4-5", k.skip); assertEquals((Integer) 4, k.grade); }