Finds a testing method for the method of the interface. @return the testing method, if found, null otherwise
(String method)
| 426 | * @return the testing method, if found, <tt>null</tt> otherwise |
| 427 | */ |
| 428 | private Method getMethodFor(String method) |
| 429 | { |
| 430 | String mName = "_" + method; |
| 431 | |
| 432 | if (mName.endsWith("()")) |
| 433 | { |
| 434 | mName = mName.substring(0, mName.length() - 2); |
| 435 | } |
| 436 | |
| 437 | final Class<?>[] paramTypes = new Class[0]; |
| 438 | |
| 439 | try |
| 440 | { |
| 441 | return this.getClass().getDeclaredMethod(mName, paramTypes); |
| 442 | } |
| 443 | catch (NoSuchMethodException nsmE) |
| 444 | { |
| 445 | return null; |
| 446 | } |
| 447 | } |
| 448 | |
| 449 | /** |
| 450 | * @return the name of the interface tested |
no test coverage detected