@Test public void testShouldIgnoreCase() throws Exception { assertThat(decoder.decode("6.MIME")).isEqualTo(SectionType.MIME); assertThat(decoder.decode("6.mime")).isEqualTo(SectionType.MIME); assertThat(decoder.decode("6.miME")).isEqualTo(SectionType.MIME); assertThat(decoder.decode("6.MIme")).isEqualTo(SectionType.MIME); assertThat(decoder.decode("6.HEADER")).isEqualTo(SectionType.HEADER); assertThat(decoder.decode("6.header")).isEqualTo(SectionType.HEADER); assertThat(decoder.decode("6.HEadER")).isEqualTo(SectionType.HEADER); assertThat(decoder.decode("6.heADEr")).isEqualTo(SectionType.HEADER); assertThat(decoder.decode("6.TEXT")).isEqualTo(SectionType.TEXT); assertThat(decoder.decode("6.text")).isEqualTo(SectionType.TEXT); assertThat(decoder.decode("6.TExt")).isEqualTo(SectionType.TEXT); assertThat(decoder.decode("6.teXT")).isEqualTo(SectionType.TEXT); }
public SectionType decode(CharSequence sectionSpecification) throws DecodingException { init(); sectionType = decode(0, sectionSpecification); prunePath(); return sectionType; }
FetchPartPathDecoder { public SectionType decode(CharSequence sectionSpecification) throws DecodingException { init(); sectionType = decode(0, sectionSpecification); prunePath(); return sectionType; } }
FetchPartPathDecoder { public SectionType decode(CharSequence sectionSpecification) throws DecodingException { init(); sectionType = decode(0, sectionSpecification); prunePath(); return sectionType; } FetchPartPathDecoder(); }
FetchPartPathDecoder { public SectionType decode(CharSequence sectionSpecification) throws DecodingException { init(); sectionType = decode(0, sectionSpecification); prunePath(); return sectionType; } FetchPartPathDecoder(); SectionType decode(CharSequence sectionSpecification); final int[] getPath(); final SectionType getSpecifier(); final List<String> getNames(); }
FetchPartPathDecoder { public SectionType decode(CharSequence sectionSpecification) throws DecodingException { init(); sectionType = decode(0, sectionSpecification); prunePath(); return sectionType; } FetchPartPathDecoder(); SectionType decode(CharSequence sectionSpecification); final int[] getPath(); final SectionType getSpecifier(); final List<String> getNames();  }