Skip to content

Commit

Permalink
fixing some annoying indentation issues and a copy-pasta error
Browse files Browse the repository at this point in the history
  • Loading branch information
ialarmedalien committed Apr 14, 2023
1 parent ab68fab commit 7e0cfaf
Showing 1 changed file with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,6 @@ private void assertCreditMetadataFields(final CreditMetadata cm,

assertThat(INCORRECT_ID, cm.getIdentifier(), is(identifier));
assertThat(INCORRECT_REPO, cm.getRepository(), is(repository));
assertThat(INCORRECT_ID, cm.getDescription(), is(description));
assertThat(INCORRECT_TYPE, cm.getResourceType(), is(rt));
assertThat(INCORRECT_COMMENTS, cm.getComments(),
is(comments));
Expand Down Expand Up @@ -719,8 +718,7 @@ public void buildFailInvalidPID() throws Exception {
CONTRIBUTOR_LIST,
TITLE_LIST)
.withVersion(VERSION_STRING),
ILLEGAL_ID_BEFORE + invalidPid
+ ILLEGAL_ID_AFTER);
ILLEGAL_ID_BEFORE + invalidPid + ILLEGAL_ID_AFTER);
}
}

Expand Down Expand Up @@ -1045,13 +1043,21 @@ public void buildMinimalFailAllFields() throws Exception {
// null lists
buildCreditMetadataFailWithError(
CreditMetadata.getBuilder(
invalidPid, null, wsOrNull, null, null),
invalidPid,
null,
wsOrNull,
null,
null),
errorStringWithRegex);

// empty lists
buildCreditMetadataFailWithError(
CreditMetadata.getBuilder(invalidPid,
null, wsOrNull, ELC, ELT),
CreditMetadata.getBuilder(
invalidPid,
null,
wsOrNull,
ELC,
ELT),
errorStringWithRegex);

// list of nulls
Expand Down

0 comments on commit 7e0cfaf

Please sign in to comment.