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

templates.method.vm Maven / Gradle / Ivy

There is a newer version: 2.0.1
Show newest version

    /**
     * Matcher for {@link ${type.qualifiedName()}#${field.name()}}
     */
    @org.hamcrest.Factory
    public static org.hamcrest.Matcher<${type.qualifiedName()}> with${utils.normalize(${field.name()})}(org.hamcrest.Matcher<${field.type()}> matcher) {
        return new org.hamcrest.FeatureMatcher<${type.qualifiedName()}, ${field.type()}>(matcher, "${field.name()}", "${field.name()}") {
            @Override
            protected ${field.type()} featureValueOf(${type.qualifiedName()} actual) {
                return actual.get${utils.normalize(${field.name()})}();
            }
        };
    }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy