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

Substitution and format not working as expected when used together #17

lviggiano opened this issue Feb 19, 2013 · 1 comment


Copy link

lviggiano commented Feb 19, 2013

This test is failing in version 1.0.3

public static interface SubstituteAndFormat extends Config {
    @DefaultValue("Hello ${mister}")
    String salutation(String name);

    @DefaultValue("Mr. %s")
    String mister(String name);

public void testSubstitutionAndFormat() {
    SubstituteAndFormat cfg = ConfigFactory.create(SubstituteAndFormat.class);
    assertEquals("Hello Mr. Luigi", cfg.salutation("Luigi")); // this fails returning "Hello Mr. %s"
    assertEquals("Mr. Luigi", cfg.mister("Luigi"));
Copy link
Collaborator Author

lviggiano commented Feb 19, 2013

fixed in commit baaa4e2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

1 participant