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

io.apicurio.registry.utils.tests.SimpleDisplayName Maven / Gradle / Ivy

There is a newer version: 3.0.0
Show newest version
package io.apicurio.registry.utils.tests;

import org.junit.jupiter.api.DisplayNameGenerator;

import java.lang.reflect.Method;

public class SimpleDisplayName extends DisplayNameGenerator.ReplaceUnderscores {

    @Override
    public String generateDisplayNameForClass(Class testClass) {
        return super.generateDisplayNameForClass(testClass);
    }

    @Override
    public String generateDisplayNameForNestedClass(Class nestedClass) {
        return super.generateDisplayNameForNestedClass(nestedClass) + "...";
    }

    @Override
    public String generateDisplayNameForMethod(Class testClass, Method testMethod) {
        return testMethod.getName();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy