Skip to content

Commit

Permalink
Revert "test: photo 도메인 게층 테스트"
Browse files Browse the repository at this point in the history
This reverts commit 8012fe3.
  • Loading branch information
EunChanNam authored Nov 4, 2023
1 parent 0f630fa commit 5320fdd
Show file tree
Hide file tree
Showing 11 changed files with 5 additions and 212 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ build/

### images ###
**/src/main/resources/static/
**/src/test/resources/images/

### STS ###
.apt_generated
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
package com.inq.wishhair.wesharewishhair.photo.domain;

import java.util.List;
import java.util.Optional;

public interface PhotoRepository {

Photo save(Photo photo);

Optional<Photo> findById(Long id);

List<Photo> findAll();

void deleteAllByReview(Long reviewId);

void deleteAllByReviews(List<Long> reviewIds);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ public interface PhotoStore {

List<String> uploadFiles(List<MultipartFile> files);

boolean deleteFiles(List<String> storeUrls);
void deleteFiles(List<String> storeUrls);
}
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,8 @@ private String uploadFile(final MultipartFile file) {
}
}

public boolean deleteFiles(final List<String> storeUrls) {
public void deleteFiles(final List<String> storeUrls) {
storeUrls.forEach(this::deleteFile);
return true;
}

private void deleteFile(final String storeUrl) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@
import jakarta.persistence.JoinColumn;
import jakarta.persistence.ManyToOne;
import jakarta.persistence.OneToMany;
import lombok.AccessLevel;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Entity
@Getter
@NoArgsConstructor
@NoArgsConstructor(access = AccessLevel.PROTECTED)
public class Review extends BaseEntity {

@Id
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Binary file removed src/test/resources/images/hello1.jpg
Binary file not shown.
Binary file removed src/test/resources/images/hello2.jpg
Binary file not shown.
Binary file removed src/test/resources/images/hello3.png
Binary file not shown.

0 comments on commit 5320fdd

Please sign in to comment.