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

se-edu / addressbook-level4 / 4584
94%

Build:
DEFAULT BRANCH: master
Ran 25 Jul 2018 12:09PM UTC
Jobs 1
Files 91
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
4584

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

Jobs
ID Job ID Ran Files Coverage
1 4584.1 25 Jul 2018 12:09PM UTC 0
92.2
Travis Job 4584.1
Source Files on build 4584
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #4584
  • ac37d6e2 on github
  • Prev Build on master (#4579)
  • Next Build on master (#4586)
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