()
| 212 | |
| 213 | |
| 214 | @Test |
| 215 | public void testCheckArgs() { |
| 216 | try { |
| 217 | App.appId = "9b3554a97673f1f8f5c929310298037a660"; |
| 218 | App.appSecret = "Lng_oIYW-cf2OZUBSywxY6UnBqRizF0cTg9HGi2VVeE"; |
| 219 | App.url = "http://scloud.baidu.com:8087"; |
| 220 | Utils.invokeStaticMethod("com.baidu.rasp.App", "checkArgs", new Class[]{}); |
| 221 | } catch (Exception e) { |
| 222 | // |
| 223 | } |
| 224 | try { |
| 225 | App.appId = "9b3554a97673f1f8f5c929310298037a660d3b7a"; |
| 226 | App.appSecret = "Lng_oIYW-cf2OZUBSywxY6UnBqRizF0cTg9H"; |
| 227 | App.url = "http://scloud.baidu.com:8087"; |
| 228 | Utils.invokeStaticMethod("com.baidu.rasp.App", "checkArgs", new Class[]{}); |
| 229 | } catch (Exception e) { |
| 230 | // |
| 231 | } |
| 232 | try { |
| 233 | App.appId = "9b3554a97673f1f8f5c929310298037a660d3b7a"; |
| 234 | App.appSecret = "Lng_oIYW-cf2OZUBSywxY6UnBqRizF0cTg9HGi2VVeE"; |
| 235 | App.url = "http/scloud.baidu.com:8087"; |
| 236 | Utils.invokeStaticMethod("com.baidu.rasp.App", "checkArgs", new Class[]{}); |
| 237 | } catch (Exception e) { |
| 238 | // |
| 239 | } |
| 240 | |
| 241 | try { |
| 242 | throw new RaspError("xxxxxx", new Throwable()); |
| 243 | } catch (Throwable t) { |
| 244 | // |
| 245 | } |
| 246 | |
| 247 | try { |
| 248 | throw new RaspError(new Throwable()); |
| 249 | } catch (Throwable t) { |
| 250 | // |
| 251 | } |
| 252 | } |
| 253 | |
| 254 | @Test |
| 255 | public void testShowNotice() { |
nothing calls this directly
no test coverage detected