public FrameworkPerformanceMethod()

in base/src/main/java/org/apache/sling/performance/FrameworkPerformanceMethod.java [45:65]


    public FrameworkPerformanceMethod(Method method, Object target,
                                      PerformanceSuiteState performanceSuiteState, PerformanceRunner.ReportLevel reportLevel,
                                      String referenceMethod) {
        super(method);
        this.target = target;
        this.performanceSuiteState = performanceSuiteState;
        this.reportLevel = reportLevel;
        this.referenceMethod = referenceMethod;
        if (target instanceof IdentifiableTestCase) {
            this.testCaseName = ((IdentifiableTestCase) target).testCaseName();
        }

        // Name of the test class, as the report logger needs it
        // This can be overwritten by tests by implementing IdentifiableTestClass
        String longClassName = this.target.getClass().getName();
        className = longClassName.substring(longClassName.lastIndexOf(".") + 1);
        if (target instanceof IdentifiableTestClass) {
            this.className = ((IdentifiableTestClass) target).testClassName();
        }

    }