LinkedSpecificationItem { public boolean hasLinks() { return !this.links.isEmpty(); } LinkedSpecificationItem(final SpecificationItem item); SpecificationItemId getId(); String getTitle(); String getTitleWithFallback(); ItemStatus getStatus(); String getDescription(); Location getLocation(); List<String> getTags(); SpecificationItem getItem(); void addLinkToItemWithStatus(final LinkedSpecificationItem item, final LinkStatus status); Map<LinkStatus, List<LinkedSpecificationItem>> getLinks(); List<LinkedSpecificationItem> getLinksByStatus(final LinkStatus status); List<TracedLink> getTracedLinks(); List<SpecificationItemId> getCoveredIds(); List<String> getNeedsArtifactTypes(); void addCoveredArtifactType(final String artifactType); void addOverCoveredArtifactType(final String artifactType); Set<String> getCoveredArtifactTypes(); Set<String> getOverCoveredArtifactTypes(); List<String> getUncoveredArtifactTypes(); boolean isCoveredShallow(); DeepCoverageStatus getDeepCoverageStatus(); boolean isDefect(); boolean hasLinks(); int countOutgoingLinks(); int countOutgoingBadLinks(); int countIncomingLinks(); int countIncomingBadLinks(); int countDuplicateLinks(); boolean hasDuplicates(); String getArtifactType(); String getName(); int getRevision();  }
@Test void testHasLinks_InitiallyFalse() { assertThat(this.linkedItem.hasLinks(), equalTo(false)); }
@Test void testHasLinks() { this.linkedItem.addLinkToItemWithStatus(this.otherLinkedItem, LinkStatus.AMBIGUOUS); assertThat(this.linkedItem.hasLinks(), equalTo(true)); }