PageRenderTime 5ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/plugin-module-codegen-engine/src/main/resources/templates/generic/GenericTest.java.vtl

https://bitbucket.org/mmeinhold/amps
Unknown | 34 lines | 22 code | 12 blank | 0 comment | 0 complexity | 63a62f5e46ad73856549847fbe0f8efd MD5 | raw file
 1package ${PACKAGE};
 2
 3import org.junit.After;
 4import org.junit.Before;
 5import org.junit.Test;
 6import ${FQ_CLASS_UNDER_TEST};
 7
 8import static org.mockito.Mockito.*;
 9
10/**
11 * @since 3.5
12 */
13public class ${CLASSNAME} {
14
15    @Before
16    public void setup() {
17
18    }
19
20    @After
21    public void tearDown() {
22
23    }
24
25    @Test(expected=Exception.class)
26    public void testSomething() throws Exception {
27
28        //${CLASS_UNDER_TEST} testClass = new ${CLASS_UNDER_TEST}();
29
30        throw new Exception("${CLASS_UNDER_TEST} has no tests!");
31
32    }
33
34}