Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

version 1.2.6: allow * path #54

Merged
merged 1 commit into from
Jan 6, 2024
Merged

version 1.2.6: allow * path #54

merged 1 commit into from
Jan 6, 2024

Conversation

tvd12
Copy link
Member

@tvd12 tvd12 commented Jan 6, 2024

Example:

// given
String template = "/versions/{ezyplatformVersion}/java-docs/{moduleName}/*";
String uri = "/versions/0.0.2/java-docs/ezyplatform-web/org/youngmonkeys/ezyplatform/web/package-frame.html";

// when
List<Entry<String, String>> actual = PathVariables.getVariables(
    template,
    uri
);

// then
Asserts.assertEquals(
    actual.stream()
        .collect(Collectors.toMap(Entry::getKey, Entry::getValue)),
    EzyMapBuilder.mapBuilder()
        .put("ezyplatformVersion", "0.0.2")
        .put("moduleName", "ezyplatform-web")
        .put("*", "org/youngmonkeys/ezyplatform/web/package-frame.html")
        .build()
);

@tvd12 tvd12 merged commit 0a31c04 into master Jan 6, 2024
1 check passed
@tvd12 tvd12 deleted the version-1.2.6 branch January 6, 2024 06:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant