public static String extractMethodName(Description description) {
        String methodName = null;
        final String[] splitDisplayName = description.getDisplayName().split("\\(");

        if (splitDisplayName.length > 0) {
            methodName = splitDisplayName[0];
        }

        return methodName;
    }
public static String extractMethodName ( Description description ) { String methodName = null ; final String [ ] splitDisplayName = description . getDisplayName ( ) . split ( "\\(" ) ; if ( splitDisplayName . length > 0 ) { methodName = splitDisplayName [ 0 ] ; } return methodName ; }
Get the tested method name

@param description
@return tested methode name