
CMSC 433 – Programming Language
Technologies and Paradigms
Spring 2003
May 13, 2003
2
Project 6
•Test oracle available
1. Peering and accepting messages
2. Handling slow clients
3. Symmetric disconnects
4. Does your portal forward a probe packet
5. Does your portal generate and forward response
6. Does your portal pass through a response msg
7. Can downloaded code connect to port 80
8. Can downloaded code not connect elsewhere
•Don’t forget to test with p5 oracle
3
Final Exam
•Pugh’s section
–Tuesday, May 20, 10:30am-12:30pm
•Foster’s section
–Thursday, May 22, 10:30am-12:30pm
• Topics:
–Everything
–More emphasis on material after midterm
–Looks at sample midterm 2’s, finals
4
Java Basics
•Objects, inheritance, and interfaces
–Mutability, equality, casts (dynamic types)
•Method dispatch
–Overriding, overloading
–Dynamic, static
•Exceptions
–try, catch, finally
5
Project 1
•Build a toy Java web server
–MiniServlet interface between web server and
servlets
–A little bit of reflection
–Some generic container classes (e.g., Map)
–Some sockets and I/O
•If you need any java.* APIs, we’ll give them to you
on the exam
6
Testing and Specifications
• Benefits and limitations of testing
• Black box vs. white/glass box
–Tips on generating tests from specs
–Statement, branch, condition coverage
–Tradeoffs, design choices (e.g., unit vs. integration)
•Specifications
–Issues (tradeoffs between formal and informal etc.)
–What makes a good specification
– Javadoc