Skip to main content

Marco Castellani's Library tagged gaia   View Popular

12 Sep 08

The Concept of Mocking - Michael Minella

  • The idea of unit testing is that we want to test our code without testing the dependencies.
  • You aren't trying to test that ArrayList works because you assume that it has been tested and works as designed. Your only goal is to test your use of ArrayList.
  • 6 more annotations...
11 Sep 08

Unit testing with JUnit and EasyMock - Michael Minella

  • This is what separates a unit test from other types of tests. In order for it to be a unit test, it must test something in isolation, aka without dependencies. The reason for this is that we are testing the component itself and not it's interaction with other components (that is an integration test).
  • In test driven design, we develop the unit test before the functionality.
  • 3 more annotations...
09 Sep 08

EasyMock : Home

  • Unit testing is the testing of software units in isolation.
    However, most units do not work alone, but they collaborate
    with other units. To test a unit in isolation, we have to
    simulate the collaborators in the test.



    A Mock Object is a test-oriented replacement for a collaborator.

1 - 20 of 31 Next ›
Showing 20 items per page

Diigo is about better ways to research, share and collaborate on information. Learn more »

Join Diigo