Lines Matching defs:cmd
116 * if <code>cmd</code> is running on a terminal
117 * @param cmd the argument of a keytool command line
120 void test(String input, String cmd) throws Exception {
122 lastCommand = cmd;
126 test(in, cmd);
132 void test(InputStream in, String cmd) throws Exception {
136 System.err.println(cmd);
157 KeyTool.main(("-debug "+cmd).split("\\s+"));
169 * Call this method if you expect test(input, cmd) should go OK
171 void testOK(String input, String cmd) throws Exception {
173 test(input, cmd);
175 afterFail(input, cmd, "OK");
181 * Call this method if you expect test(input, cmd) should fail and throw
184 void testFail(String input, String cmd) throws Exception {
187 test(input, cmd);
197 afterFail(input, cmd, "FAIL");
203 * Call this method if you expect test(input, cmd) should go OK
205 void testOK(InputStream is, String cmd) throws Exception {
207 test(is, cmd);
209 afterFail("", cmd, "OK");
215 * Call this method if you expect test(input, cmd) should fail and throw
218 void testFail(InputStream is, String cmd) throws Exception {
221 test(is, cmd);
227 afterFail("", cmd, "FAIL");
236 void testAnyway(String input, String cmd) {
238 test(input, cmd);
247 void afterFail(String input, String cmd, String should) {
249 "keytool " + cmd + "\nOr its debug version ---\n" +
250 "keytool -debug " + cmd);