/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

  1. package ${PACKAGE};
  2. import org.junit.After;
  3. import org.junit.Before;
  4. import org.junit.Test;
  5. import ${FQ_CLASS_UNDER_TEST};
  6. import static org.mockito.Mockito.*;
  7. /**
  8. * @since 3.5
  9. */
  10. public class ${CLASSNAME} {
  11. @Before
  12. public void setup() {
  13. }
  14. @After
  15. public void tearDown() {
  16. }
  17. @Test(expected=Exception.class)
  18. public void testSomething() throws Exception {
  19. //${CLASS_UNDER_TEST} testClass = new ${CLASS_UNDER_TEST}();
  20. throw new Exception("${CLASS_UNDER_TEST} has no tests!");
  21. }
  22. }