93 private Map<String, String> addTableItem(Map<String, String> entries, String name, String value) {
94 entries.put(name, value);
95 return entries;
96 } // addTableItem()
97
98 private boolean verify;
99 private Map<String, String> validEntries;
100 private Map<String, String> validKeywords;
101
102 private static final String TESTSUITE_HTML = "testsuite.html";
103 // end of code for JCKTagTestFinder emulation
104
105 //--------------------------------------------------------------------------
106
107 public void init(String [] args, File testSuiteRoot, TestEnvironment env) throws Fault {
108 // grab all environment variables open for expansion
109 if (expandVars == null) {
110 expandVars = new HashMap<>(3);
111 expandVarLen = new HashMap<>(3);
112
113 for (Iterator i = env.keys().iterator(); i.hasNext(); ) {
114 try {
115 String n = (String) (i.next());
116
117 if (! n.startsWith("expand."))
118 continue;
119 String[] v = env.lookup(n);
120 String fqvName = n.substring("expand.".length());
121 // add to hashtable of fully-qualified varNames
122 expandVars.put(fqvName, v);
123
124 int pos;
125 if ((pos = fqvName.indexOf(".")) == -1)
126 continue;
127 String stem = fqvName.substring(0, pos);
128
129 // checking lengths of co-joined variables
130 Integer len = expandVarLen.get(stem);
131 if (len == null) {
132 // add to hashtable of valid stems
133 expandVarLen.put(stem, new Integer(v.length));
134 } else {
135 if (v.length != len.intValue()) {
|
93 private Map<String, String> addTableItem(Map<String, String> entries, String name, String value) {
94 entries.put(name, value);
95 return entries;
96 } // addTableItem()
97
98 private boolean verify;
99 private Map<String, String> validEntries;
100 private Map<String, String> validKeywords;
101
102 private static final String TESTSUITE_HTML = "testsuite.html";
103 // end of code for JCKTagTestFinder emulation
104
105 //--------------------------------------------------------------------------
106
107 public void init(String [] args, File testSuiteRoot, TestEnvironment env) throws Fault {
108 // grab all environment variables open for expansion
109 if (expandVars == null) {
110 expandVars = new HashMap<>(3);
111 expandVarLen = new HashMap<>(3);
112
113 for (Iterator<String> i = env.keys().iterator(); i.hasNext(); ) {
114 try {
115 String n = (i.next());
116
117 if (! n.startsWith("expand."))
118 continue;
119 String[] v = env.lookup(n);
120 String fqvName = n.substring("expand.".length());
121 // add to hashtable of fully-qualified varNames
122 expandVars.put(fqvName, v);
123
124 int pos;
125 if ((pos = fqvName.indexOf(".")) == -1)
126 continue;
127 String stem = fqvName.substring(0, pos);
128
129 // checking lengths of co-joined variables
130 Integer len = expandVarLen.get(stem);
131 if (len == null) {
132 // add to hashtable of valid stems
133 expandVarLen.put(stem, new Integer(v.length));
134 } else {
135 if (v.length != len.intValue()) {
|