package gg.jte.output;

import gg.jte.html.HtmlTemplateOutput;
import gg.jte.html.OwaspHtmlTemplateOutput;

import static org.assertj.core.api.Assertions.assertThat;

public class HtmlOutputTest extends AbstractTemplateOutputTest<HtmlTemplateOutput> {

    private StringOutput stringOutput;

    @Override
    HtmlTemplateOutput createTemplateOutput() {
        stringOutput = new StringOutput();
        return output = new OwaspHtmlTemplateOutput(stringOutput);
    }

    @Override
    void thenOutputIs(String expected) {
        assertThat(stringOutput.toString()).isEqualTo(expected);
    }
}