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

se-edu / addressbook-level4 / 4584 / 1
94%
master: 94%

Build:
DEFAULT BRANCH: master
Ran 25 Jul 2018 12:09PM UTC
Files 91
Run time 5s
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

25 Jul 2018 12:04PM UTC coverage: 92.204%. Remained the same
4584.1

push

travis-ci

web-flow
[#855] Refactor PersonBuilder constructor to use TypicalPersons as argument (#889)

When creating a Person for testing, some tests specify almost all of
the fields of an existing TypicalPerson, with only a slight variation
in one or two fields. For example, the code below builds on top of
TypicalPerson#AMY with only changes to address and tags:

    toAdd = new PersonBuilder().withName(VALID_NAME_AMY).withPhone(VALID_PHONE_AMY)
            .withEmail(VALID_EMAIL_AMY).withAddress(VALID_ADDRESS_BOB)
            .withTags(VALID_TAG_FRIEND).build();

This is long-winded and unnecessary, as PersonBuilder allows us to start
from a ready-made Person, and modify as necessary. For example, the code
above can be refactored to:

    toAdd = new PersonBuilder(AMY).withAddress(VALID_ADDRESS_BOB).build();

Let's refactor the calls to PersonBuilder to make them more concise.

1431 of 1552 relevant lines covered (92.2%)

0.92 hits per line

Source Files on job 4584.1
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 4349
  • Travis Job 4584.1
  • ac37d6e2 on github
  • Prev Job for on master (#4579.1)
  • Next Job for on master (#4586.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