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

org.mockito.internal.junit.StubbingHint Maven / Gradle / Ivy

There is a newer version: 5.12.0
Show newest version
/*
 * Copyright (c) 2016 Mockito contributors
 * This program is made available under the terms of the MIT License.
 */
package org.mockito.internal.junit;

/**
 * Stubbing hint emitted to the user
 */
class StubbingHint {

    private final StringBuilder hint;

    StubbingHint(String testName) {
        hint = new StringBuilder("[MockitoHint] ")
            .append(testName).append(" (see javadoc for MockitoHint):");
    }

    void appendLine(Object ... elements) {
        hint.append("\n[MockitoHint] ");
        for (Object e : elements) {
            hint.append(e);
        }
    }

    public String toString() {
        return hint.toString() + "\n";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy