Skip to content

juulSme/hhs-unittesting-practicum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

###Lab Unit Testing

Import the code into your favorite IDE. In NetBeans, make sure you import it as a "Java project from existing sources".

#####Exercise 1. Examine the code in src/main and the tests for LinearStructureArray in src/test. What are the drawbacks to this way of testing? Write down your answer.

#####Exercise 2. Rewrite LinearStructureArrayTest. Use JUnit and Hamcrest and try to apply the best practices explained in the slides. Take note of the postconditions stated in LinearStructure (the interface) to improve your tests.

#####Exercise 3. Write an analysis of the testability of LinearStructureArray. How could it be rewritten to improve the testability? What problems did you encounter in exercise 2?

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages