some code samples, various examples of simple modeling ideas and some minor algorithms.

SquaresTest.java 805B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. import static org.junit.Assert.*;
  2. import org.junit.After;
  3. import org.junit.Before;
  4. import org.junit.Test;
  5. /**
  6. * The test class SquaresTest.
  7. *
  8. * @author (your name)
  9. * @version (a version number or a date)
  10. */
  11. public class SquaresTest
  12. {
  13. /**
  14. * Default constructor for test class SquaresTest
  15. */
  16. public SquaresTest()
  17. {
  18. // : Given
  19. int expected = 49;
  20. // : When
  21. int actual = 0;
  22. // : Then
  23. assertEquals(expected,actual);
  24. }
  25. /**
  26. * Sets up the test fixture.
  27. *
  28. * Called before every test case method.
  29. */
  30. @Before
  31. public void setUp()
  32. {
  33. }
  34. /**
  35. * Tears down the test fixture.
  36. *
  37. * Called after every test case method.
  38. */
  39. @After
  40. public void tearDown()
  41. {
  42. }
  43. }