aboutsummaryrefslogtreecommitdiffstats
path: root/container-search/src/test/java/com/yahoo/prelude/templates/test/TestTemplate.java
blob: 0f5e126dae8aff992a2e0f6425bc940d01199f7c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.prelude.templates.test;

import java.io.IOException;
import java.io.Writer;

import com.yahoo.prelude.templates.Context;
import com.yahoo.prelude.templates.UserTemplate;

/**
 * Test basic UserTemplate functionality of detecting
 * overridden group rendering methods.
 *
 * @author <a href="mailto:steinar@yahoo-inc.com">Steinar Knutsen</a>
 */
@SuppressWarnings("rawtypes")
public class TestTemplate extends UserTemplate {

    public TestTemplate(String name, String mimeType, String encoding) {
        super(name, mimeType, encoding);
    }

    @Override
    public void error(Context context, Writer writer) throws IOException {
        // NOP
    }

    @Override
    public void footer(Context context, Writer writer) throws IOException {
        // NOP
    }

    @Override
    public void header(Context context, Writer writer) throws IOException {
        // NOP
    }

    @Override
    public void hit(Context context, Writer writer) throws IOException {
        // NOP
    }

    @Override
    public void hitFooter(Context context, Writer writer) throws IOException {
        // NOP
    }

    @Override
    public void noHits(Context context, Writer writer) throws IOException {
        // NOP
    }

}