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

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

Build:
DEFAULT BRANCH: master
Ran 29 Mar 2019 09:23AM UTC
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

29 Mar 2019 09:19AM UTC coverage: 86.491% (+0.3%) from 86.205%
569.1

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.

2164 of 2502 relevant lines covered (86.49%)

0.86 hits per line

Source Files on job 569.1
  • Tree
  • List 0
  • Changed 3
  • Source Changed 3
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 444
  • Travis Job 569.1
  • 38f7c5ac on github
  • Prev Job for on master (#557.1)
  • Next Job for on master (#579.1)
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