Skip to content

Commit

Permalink
Google Java Format
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Dec 20, 2023
1 parent 4b5118b commit 566007d
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public ResponseEntity<Void> outPlan(@RequestBody PlanMemberRequest request) {
}

@PostMapping("/day")
public ResponseEntity<Void> updatePlanDay(@RequestBody final UpdatePlanDayRequest request){
public ResponseEntity<Void> updatePlanDay(@RequestBody final UpdatePlanDayRequest request) {
planService.updatePlanDay(request);
return ResponseEntity.noContent().build();
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.twtw.backend.domain.plan.dto.request;

import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
Expand All @@ -13,6 +14,7 @@
@AllArgsConstructor
public class UpdatePlanDayRequest {
private UUID planId;

@JsonFormat(
shape = JsonFormat.Shape.STRING,
pattern = "yyyy-MM-dd HH:mm",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public void updateMemberLocation(
this.group.updateMemberLocation(member, longitude, latitude);
}

public void updatePlanDay(LocalDateTime changeDay){
public void updatePlanDay(LocalDateTime changeDay) {
this.planDay = changeDay;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ public PlanResponse joinPlan(PlanMemberRequest request) {
return planMapper.toPlanResponse(plan);
}


public void outPlan(PlanMemberRequest request) {
Member member = authService.getMemberByJwt();
Plan plan = getPlanEntity(request.getPlanId());
Expand Down Expand Up @@ -146,7 +145,7 @@ public void updatePlan(final UpdatePlanRequest updatePlanRequest) {
}

@Transactional
public void updatePlanDay(final UpdatePlanDayRequest request){
public void updatePlanDay(final UpdatePlanDayRequest request) {
final Plan plan = getPlanEntity(request.getPlanId());
plan.updatePlanDay(request.getChangeDay());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -333,9 +333,8 @@ void updatePlanDay() throws Exception {
.content(
toRequestBody(
new UpdatePlanDayRequest(
UUID.randomUUID(),
LocalDateTime.of(2023,12,25,13,30)
)))
UUID.randomUUID(),
LocalDateTime.of(2023, 12, 25, 13, 30))))
.header(
"Authorization",
"Bearer wefa3fsdczf32.gaoiuergf92.gb5hsa2jgh"));
Expand All @@ -344,7 +343,11 @@ void updatePlanDay() throws Exception {

// docs
perform.andDo(print())
.andDo(document("post update plan day", getDocumentRequest(), getDocumentResponse()));
.andDo(
document(
"post update plan day",
getDocumentRequest(),
getDocumentResponse()));
}

@Test
Expand Down

0 comments on commit 566007d

Please sign in to comment.