TestCase.java 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /**************************************************************************
  2. /* The interface for a single test-case.
  3. /*
  4. /* Copyright (c) 2009 by Bernhard Bablok (mail@bablokb.de)
  5. /*
  6. /* This program is free software; you can redistribute it and/or modify
  7. /* it under the terms of the GNU Library General Public License as published
  8. /* by the Free Software Foundation; either version 2 of the License or
  9. /* (at your option) any later version.
  10. /*
  11. /* This program is distributed in the hope that it will be useful, but
  12. /* WITHOUT ANY WARRANTY; without even the implied warranty of
  13. /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. /* GNU Library General Public License for more details.
  15. /*
  16. /* You should have received a copy of the GNU Library General Public License
  17. /* along with this program; see the file COPYING.LIB. If not, write to
  18. /* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
  19. /* Boston, MA 02111-1307 USA
  20. /**************************************************************************/
  21. package org.im4java.test;
  22. /**
  23. This interface defines the methods for a single test-case.
  24. @version $Revision: 1.2 $
  25. @author $Author: bablokb $
  26. @since 1.0.0
  27. */
  28. public interface TestCase {
  29. //////////////////////////////////////////////////////////////////////////////
  30. /**
  31. Return the description of the test.
  32. */
  33. public String getDescription();
  34. //////////////////////////////////////////////////////////////////////////////
  35. /**
  36. Run the test.
  37. */
  38. public void run() throws Exception;
  39. }