Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Working individually, write a possible contract ( specification ) as a Java interface for the DictionaryADT using the Lab 3 StartingCode project. Your contract must

Working individually, write a possible contract (specification) as a Java interface for the
DictionaryADT using the Lab3StartingCode project.
Your contract must include the required functionalities as defined in the problem
description as methods stubs with appropriate pre-conditions, post-conditions,
parameters, return values and expected exceptions using proper Javadoc notations.
The specification should be documented so that the person who receives it could write
an implementation without any extra information.
2. Pair up with a classmate and complete the remaining steps.
3. Compare and discuss the contract with your partner. Together, finalize the ADT to make
sure all functionalities are specified appropriately in the contract.
4. Follow the steps discussed in class to develop a complete set of JUnit tests to cover the
functionality of each method. Include expected, boundary and strange values that are not
specified in the preconditions.
Note: Your tests should all fail as this point, as there is no implementation of a Dictionary
class yet. However, consider at this point whether there

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Principles Programming And Performance

Authors: Patrick O'Neil

1st Edition

1558603921, 978-1558603929

More Books

Students also viewed these Databases questions