124 return configName;
125 }
126 /**
127 * Get the URLs of the tests that were executed in the last test run.
128 * @return String array of testURLs executed.
129 */
130 public List<String> getTestURLs() {
131 return testURLs;
132 }
133
134 /**
135 * Joins list of String into a single space separated String
136 * @param list
137 * @return A single string with all the items in the list joined.
138 */
139 private static String join(List<String> list) {
140 if (list == null) {
141 return "";
142 }
143 StringBuffer sb = new StringBuffer();
144 for (Iterator it = list.iterator(); it.hasNext();) {
145 sb.append((String)it.next());
146 sb.append(SEP);
147 }
148
149 // remove trailing space
150 if (sb.length() > 0 && sb.charAt(sb.length()-1) == ' ')
151 sb.deleteCharAt(sb.length()-1);
152
153 return sb.toString();
154 }
155 /**
156 * Split the string into list
157 * @param joined - string to split
158 * @return array list, never null.
159 */
160 private static List<String> split(String joined) {
161 List<String> list = new ArrayList<>();
162 if (joined == null || joined.trim().length() == 0) {
163 return list;
164 }
165 // emulate StringTokenizer(joined, SEP) to find tokens
|
124 return configName;
125 }
126 /**
127 * Get the URLs of the tests that were executed in the last test run.
128 * @return String array of testURLs executed.
129 */
130 public List<String> getTestURLs() {
131 return testURLs;
132 }
133
134 /**
135 * Joins list of String into a single space separated String
136 * @param list
137 * @return A single string with all the items in the list joined.
138 */
139 private static String join(List<String> list) {
140 if (list == null) {
141 return "";
142 }
143 StringBuffer sb = new StringBuffer();
144 for (Iterator<String> it = list.iterator(); it.hasNext();) {
145 sb.append(it.next());
146 sb.append(SEP);
147 }
148
149 // remove trailing space
150 if (sb.length() > 0 && sb.charAt(sb.length()-1) == ' ')
151 sb.deleteCharAt(sb.length()-1);
152
153 return sb.toString();
154 }
155 /**
156 * Split the string into list
157 * @param joined - string to split
158 * @return array list, never null.
159 */
160 private static List<String> split(String joined) {
161 List<String> list = new ArrayList<>();
162 if (joined == null || joined.trim().length() == 0) {
163 return list;
164 }
165 // emulate StringTokenizer(joined, SEP) to find tokens
|