All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.itest.impl.util.ITestUtils Maven / Gradle / Ivy

There is a newer version: 1.5.4
Show newest version
package org.itest.impl.util;

import java.lang.reflect.Method;

public class ITestUtils {
    public static String getMethodSingnature(Method m, boolean full) {
        StringBuilder sb = new StringBuilder().append(m.getName()).append("(");
        if ( full ) {
            for (Class clazz : m.getParameterTypes()) {
                sb.append(clazz.getName()).append(',');
            }
            if ( ',' == sb.charAt(sb.length() - 1) ) {
                sb.deleteCharAt(sb.length() - 1);
            }
        } else {
            sb.append('*');
        }
        sb.append(")");
        return sb.toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy