mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-15 21:12:15 +00:00
Updated the test to include more complex scenarios
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2205 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
b8795f0479
commit
ecdb521b5e
1 file changed
+5
@@ -20,5 +20,10 @@ public class UtilTest extends TestCase {
|
||||
|
||||
// invalid keys are ignored
|
||||
assertEquals("$AAB",Util.replaceMacro("$AAB",m));
|
||||
|
||||
// test that more complex scenarios work
|
||||
assertEquals("/a/B/aa", Util.replaceMacro("/$A/$B/$AA",m));
|
||||
assertEquals("a-aa", Util.replaceMacro("$A-$AA",m));
|
||||
assertEquals("/a/foo/can/B/you-believe_aa~it?", Util.replaceMacro("/$A/foo/can/$B/you-believe_$AA~it?",m));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user