/webportal/src/test/java/au/org/emii/portal/test/AbstractTester.java

http://alageospatialportal.googlecode.com/ · Java · 30 lines · 11 code · 4 blank · 15 comment · 0 complexity · 2feaeec3e48d816b20f2224192c5dbd8 MD5 · raw file

  1. /*
  2. * To change this template, choose Tools | Templates
  3. * and open the template in the editor.
  4. */
  5. package au.org.emii.portal.test;
  6. /**
  7. *
  8. * @author geoff
  9. */
  10. import org.apache.log4j.Logger;
  11. import org.junit.runner.RunWith;
  12. import org.springframework.test.context.ContextConfiguration;
  13. import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
  14. import static org.junit.Assert.*;
  15. /**
  16. * Just provide a base spring config file, the runner and some imports. Although
  17. * the imports aren't all used in this class, they seem to help netbeans detect
  18. * the correct annotation to import in subclasses
  19. * @author geoff
  20. */
  21. @RunWith(SpringJUnit4ClassRunner.class)
  22. // config file within src/test/resources
  23. @ContextConfiguration(locations={"/au/org/emii/portal/test/test-config.xml"})
  24. public class AbstractTester {
  25. protected Logger logger = Logger.getLogger(getClass());
  26. }