9 Replies Latest reply on Sep 18, 2008 7:45 AM by PhHein

    JUnit test (assertEquals) -- what does it mean?

      I know that assertEquals compares an EXPECTED object to an ACTUAL object, but what does the following do:
      ExampleClass ec = new ExampleClass();
      ... I can't quite get why one would do such a test (this is an example I've come across when reading up on unit testing which isn't explained). It doesn't make sense and I can't find anything about comparing the SAME object to itself on the net...?

      Anyone got any thoughts on this?