use of org.eclipse.mylyn.wikitext.maven.internal.FileToMarkupLanguage in project mylyn.docs by eclipse.
the class FileToMarkupLanguageTest method getCaseInsensitive.
@Test
public void getCaseInsensitive() {
MarkupLanguage language1 = mockMarkupLanguage("Test");
MarkupLanguage language2 = mockMarkupLanguage("Test2");
FileToMarkupLanguage fileToMarkupLanguage = create(language1, language2);
assertSame(language1, fileToMarkupLanguage.get(mockFile("test.Test")));
assertSame(language1, fileToMarkupLanguage.get(mockFile("test.test")));
assertSame(language2, fileToMarkupLanguage.get(mockFile("test.test2")));
assertSame(language2, fileToMarkupLanguage.get(mockFile("test.tEst2")));
}
Aggregations