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

CS2113-AY1819S2-T09-1 / main / 569
92%

Build:
DEFAULT BRANCH: master
Ran 29 Mar 2019 09:23AM UTC
Jobs 1
Files 102
Run time 6s
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
569

push

travis-ci

chyeo
 Model/util: add and use `InitialDataUtil` class (#134)

* Model/util: add `InitialDataUtil` class

Whenever the `clear` command is executed, or when the application fails
to read the JSON save data successfully, `new AddressBook()` is passed
to `ModelManager#setAddressBook(...)` to effectively 'clear' all save
data.

However, this behaviour is undesirable, as it purges all existing
modules, requirement categories and degree planners. This causes users
to be unable to interact with requirement categories and degree planners
as they no longer exists in the application.

As such, instead of purging all the data by replacing the current
`AddressBook` to a new instance, we should replace it to a barebone copy
of an empty AddressBook that retains the respective requirement
categories and degree planner.

Let's add an `InitialDataUtil` class to provide easy access of reseting
existing data to the initial (empty) data described above.

* Replace `new AddressBook()` with `getInitialAddressBook()`

Let's replace `new AddressBook()` with `getInitialAddressBook()`
whenever `clear` command is executed, or when the application fails
to read the JSON save data successfully, and update the unit tests for
the `clear` command as well.

62 of 62 new or added lines in 4 files covered. (100.0%)

2164 of 2502 relevant lines covered (86.49%)

0.86 hits per line

Jobs
ID Job ID Ran Files Coverage
1 569.1 29 Mar 2019 09:23AM UTC 0
86.49
Travis Job 569.1
Source Files on build 569
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #569
  • 38f7c5ac on github
  • Prev Build on master (#557)
  • Next Build on master (#579)
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