Module 4 | Software Engineering Topics: Testing, Design patterns¶
Objective¶
- Understanding control flows
- Designing test cases and how to use code coverage
- Design patterns
Resources: Part 1 (Testing)¶
Slides
Software testing (PDF file)
Automated testing (PDF file)
Test coverage (PDF file)
Practical aspects (PDF file)
Youtube playlist:
Java code examples (right-click to download):
Example code: min method (java source)
Example code: test code for min method without JUnit (java source)
Example code: test code for min method with JUnit (java source)
Exercises:
Resources: Part 2 (Design patterns)¶
Slides:
Youtube playlist:
Java code examples:
Example code: singleton (zip file)
Example code: factory (zip file)
Example code: observer (zip file)
Example code: visitor (zip file)
Exercises:
- Factory design pattern
- Observer design pattern
- Visitor design pattern basics: list filtering
- Visitor design pattern: staff statistics
Restructuration 2021¶
Slides
- Versions 1 and 2 of the “find pattern” quiz:
FindPattern.java
- Version 3 of the “find pattern” quiz:
FindPattern.java
- Source code of the “merge linked lists without duplicates” quiz:
MergeSortedLinkedListDuplicate.java