1 package org.weda.workflow;
2
3 import java.text.MessageFormat;
4 import tim.test.LogableTestCase;
5
6 /**
7 *
8 * @author tim
9 */
10 public class RegexpTest extends LogableTestCase {
11
12 public RegexpTest (String name){
13 super(name);
14 }
15
16 public void test() throws Exception {
17 String expression="aaaa {1} nnnnn {0} dddd {0} {1} {4}";
18 MessageFormat fmt = new MessageFormat(expression);
19 log.debug("fmt formats count: "+fmt.getFormatsByArgumentIndex().length);
20 log.debug(fmt.format(new Object[]{"test", "test1"}));
21 }
22
23 }