Skip to content

Commit

Permalink
chore: foundedYear 타입 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
wonyongChoi05 committed Jul 26, 2023
1 parent 657e592 commit 31f634c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion backend/src/main/java/zipgo/brand/domain/Brand.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class Brand {
private String nation;

@Column
private Long foundedYear;
private Integer foundedYear;

@Column(nullable = false)
private boolean hasResearchCenter;
Expand Down
8 changes: 4 additions & 4 deletions backend/src/test/java/zipgo/brand/domain/BrandTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ class BrandTest {

@Test
void 아이디가_같으면_동등하다() {
Brand 브랜드_1 = new Brand(2L, "사료만드는 삼성", "대한민국", 1999L, true, false);
Brand 브랜드_2 = new Brand(2L, "사료만드는 토스", "대한민국", 2090L, true, false);
Brand 브랜드_1 = new Brand(2L, "사료만드는 삼성", "대한민국", 1999, true, false);
Brand 브랜드_2 = new Brand(2L, "사료만드는 토스", "대한민국", 2090, true, false);

assertThat(브랜드_2).isEqualTo(브랜드_1);
}

@Test
void 아이디가_다르면_동등하지않다() {
Brand 브랜드_1 = new Brand(1L, "사료만드는 삼성", "대한민국", 1999L, true, false);
Brand 브랜드_2 = new Brand(2L, "사료만드는 토스", "대한민국", 2090L, true, false);
Brand 브랜드_1 = new Brand(1L, "사료만드는 삼성", "대한민국", 1999, true, false);
Brand 브랜드_2 = new Brand(2L, "사료만드는 토스", "대한민국", 2090, true, false);

assertThat(브랜드_2).isNotEqualTo(브랜드_1);
}
Expand Down

0 comments on commit 31f634c

Please sign in to comment.