JUnit Testing

  1. (JUnit Testing): What is a test fixture?
    A fixed state of a set of objects which are used as a baseline for running tests.
  2. (JUnit Testing): What is code under test?
    what the code which is tested is usually called.
  3. (JUnit Testing): What is a unit test?
    A piece of code written by a developer that executes a specific functionality in the code to be tested and asserts a certain behavior or state.
  4. (JUnit Testing):What is test coverage?
    The percentage of code which is tested by unit tests.
  5. (JUnit Testing):Unit tests are not suitable for testing complex user interface or component interaction(True or False).
    Unit tests are not suitable for testing complex user interface or component interaction. True 
  6. (JUnit Testing):What is an integration test?
    This aims to test the behavior of a component or the integration between a set of components.
  7. (JUnit Testing):Where should the unit tests be located?
    Typically unit tests are created in a separate project or separate source folder to keep the test code separate from the real code.
  8. (JUnit Testing): Which part of the software should be tested?
    You should write software tests for the critical and complex parts of your application.
  9. (JUnit Testing):If you start developing tests for an existing code base without any tests, it is good practice to start writing tests for code in which most of the errors happened in the past (True or False).
    If you start developing tests for an existing code base without any tests, it is good practice to start writing tests for code in which most of the errors happened in the past. True 
  10. (JUnit Testing):What is a JUnit test?
    A method contained in a class which is only used for testing.
  11. (JUnit Testing):What are asserts or assert statements used for?
    They are used to check an expected result versus the actual result.
Author
geschw66
ID
350538
Card Set
JUnit Testing
Description
JUnit testing
Updated