Guest User

Untitled

a guest
Jan 18th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. package springfox.documentation.spring.web.paths;
  2.  
  3. import org.junit.Test;
  4.  
  5. /**
  6. *
  7. *
  8. * @author @nobe0716
  9. */
  10. public class PathsBugTest {
  11. @Test
  12. public void sanitizeRequestMappingPattern() throws Exception {
  13. String result = Paths.sanitizeRequestMappingPattern("/{businessId:\\d{3}}:{productId:\\D{3}\\d{3}}");
  14. assert "/{businessId}:{productId}".equals(result);
  15. }
  16. }
Add Comment
Please, Sign In to add comment