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

Manage default value in filters #1

Closed
wants to merge 1 commit into from

Conversation

jc7447
Copy link

@jc7447 jc7447 commented Jan 3, 2019

Not sure if this is the good place to contribute, let me know :)

The goal is to manage defaut value like ${toto:tutu} where tutu is used when no value for toto is found.
It is the same behavior as Spring's PropertyPlaceholderConfigurer

@eolivelli
Copy link

Sure, can you please create an issue here

https://issues.apache.org/jira/browse/MSHARED

Just follow the guide

https://maven.apache.org/guides/development/guide-helping.html

Thanks

@@ -121,4 +123,25 @@ public void testAtDollarExpression()

assertEquals( " url=\"jdbc:oracle:thin:@DB_SERVER:DB_PORT:DB_NAME\"", IOUtil.toString( reader ) );
}

@Test
public void testDefaultValue()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about adding tests to cover syntax error cases? Or empty string as default...

@jc7447
Copy link
Author

jc7447 commented Jan 4, 2019

Related issue is here : https://issues.apache.org/jira/browse/MSHARED-793

@jc7447 jc7447 closed this Feb 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants