• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

se-edu / addressbook-level4 / 4579
94%

Build:
DEFAULT BRANCH: master
Ran 06 Jul 2018 02:58PM UTC
Jobs 1
Files 91
Run time 9s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
4579

push

travis-ci

web-flow
Decouple UndoableCommand from ReadOnlyAddressBook (#861)

The undo/redo mechanism uses an UndoRedoStack stored in the
LogicManager, which uses 2 stacks to store executed and undone
UndoableCommands. The UndoableCommands stores the previousAddressBook
state before execution, which is used to restore the AddressBook state
during an undo command.

This results in unnecessary coupling between the UndoableCommand (within
the Logic Layer) and AddressBook (within the Model Layer).

Let's add a new class, VersionedAddressBook which extends AddressBook
and shift the undo redo machanism from UndoRedoStack in LogicManager to
VersionedAddressBook in ModelManager. This VersionedAddressBook class
will use a list to keep track of the different versions of AddressBook
by maintaining a list of AddressBook States.

Since VersionedAddressBook will store all the AddressBook states,
UndoableCommand will no longer need to store the
previousAddressBookState in itself.

  [1/5] System Tests: remove model verification checks
  [2/5] Add VersionedAddressBook Class
  [3/5] Remove UndoRedoStack class
  [4/5] Remove UndoableCommand class
  [5/5] DeveloperGuide: update section on UndoRedoStack to VersionedAddressBook

80 of 80 new or added lines in 9 files covered. (100.0%)

1431 of 1552 relevant lines covered (92.2%)

0.92 hits per line

Jobs
ID Job ID Ran Files Coverage
1 4579.1 06 Jul 2018 02:58PM UTC 0
92.2
Travis Job 4579.1
Source Files on build 4579
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #4579
  • c47a1e39 on github
  • Prev Build on master (#4569)
  • Next Build on master (#4584)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc