Skip to content

Commit

Permalink
fix: build.gradle에 test 태스크 추가 (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
verus-j authored Jul 26, 2022
1 parent 2e00b0c commit 5cb8283
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions backend/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ configurations {
}
}

tasks.named('test') {
useJUnitPlatform()
systemProperties = System.getProperties()
}

repositories {
mavenCentral()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ public Study(final Details details, final Participants participants,

public Study(final Long id, final Details details, final Participants participants,
final Period period, final AttachedTags attachedTags) {
validatePeriod(period);

this.id = id;
this.details = details;
this.participants = participants;
this.period = period;
this.createdAt = LocalDateTime.now();
this.attachedTags = attachedTags;

validatePeriod(period);
}

private void validatePeriod(final Period period) {
Expand Down

0 comments on commit 5cb8283

Please sign in to comment.