Search in sources :

Example 1 with FileToMarkupLanguage

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")));
}
Also used : FileToMarkupLanguage(org.eclipse.mylyn.wikitext.maven.internal.FileToMarkupLanguage) FileToMarkupLanguage(org.eclipse.mylyn.wikitext.maven.internal.FileToMarkupLanguage) MarkupLanguage(org.eclipse.mylyn.wikitext.parser.markup.MarkupLanguage) Test(org.junit.Test)

Aggregations

FileToMarkupLanguage (org.eclipse.mylyn.wikitext.maven.internal.FileToMarkupLanguage)1 MarkupLanguage (org.eclipse.mylyn.wikitext.parser.markup.MarkupLanguage)1 Test (org.junit.Test)1