Example usage for org.jfree.util StringUtils endsWithIgnoreCase

List of usage examples for org.jfree.util StringUtils endsWithIgnoreCase

Introduction

In this page you can find the example usage for org.jfree.util StringUtils endsWithIgnoreCase.

Prototype

public static boolean endsWithIgnoreCase(final String base, final String end) 

Source Link

Document

Helper functions to query a strings end portion.

Usage

From source file:hudson.plugins.sonar.utils.LibraryPathResolverTest.java

@Test
public void testDoResolvePath() throws IOException, InterruptedException {
    Set<String> stringSet = pathResolver.doResolvePath(workspace, "**/*.jar");
    assertEquals(AMOUNT_OF_PROJECTS, stringSet.size());
    for (String jarFile : stringSet) {
        assertTrue(jarFile + " doesn't end with the right extension",
                StringUtils.endsWithIgnoreCase(jarFile, ".jar"));
    }/*from   w  w  w.j  ava 2s . c  o m*/
}