Package org.springframework.util

Source Code of org.springframework.util.AntPathMatcherTest

package org.springframework.util;

import static org.junit.Assert.assertEquals;

import org.junit.Test;
import org.springframework.util.AntPathMatcher;


public class AntPathMatcherTest {

  @Test
  public void extractPathWithinPattern_SPR_10515_test() {
    // Given
    String pattern = "**/something";
    String path = "/one/two/three/something";

    // When
    String pathWithinPattern = new AntPathMatcher().extractPathWithinPattern(pattern, path);

    // Then
    assertEquals("/one/two/three/something", pathWithinPattern);
  }

}
TOP

Related Classes of org.springframework.util.AntPathMatcherTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.