1/*
2 * Copyright (c) 2016 Mockito contributors
3 * This program is made available under the terms of the MIT License.
4 */
5package org.mockito.internal.junit;
6
7/**
8 * Stubbing hint emitted to the user
9 */
10class StubbingHint {
11
12    private final StringBuilder hint;
13
14    StubbingHint(String testName) {
15        hint = new StringBuilder("[MockitoHint] ")
16            .append(testName).append(" (see javadoc for MockitoHint):");
17    }
18
19    void appendLine(Object ... elements) {
20        hint.append("\n[MockitoHint] ");
21        for (Object e : elements) {
22            hint.append(e);
23        }
24    }
25
26    public String toString() {
27        return hint.toString() + "\n";
28    }
29}
30