Skip to content

Commit

Permalink
fix: 테스트 코드 상 위경도가 반대로 작성된 부분 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Awhn committed Nov 12, 2024
1 parent 354c0f2 commit db717f4
Showing 1 changed file with 12 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
package com.gamsa.activity.repository;

import static org.assertj.core.api.Assertions.assertThat;

import com.gamsa.activity.entity.InstituteJpaEntity;
import com.gamsa.common.config.TestConfig;
import java.math.BigDecimal;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest;
import org.springframework.context.annotation.Import;

import java.math.BigDecimal;

import static org.assertj.core.api.Assertions.assertThat;

@DataJpaTest
@Import(TestConfig.class)
class InstituteJpaRepositoryTest {
Expand All @@ -19,13 +20,13 @@ class InstituteJpaRepositoryTest {
private InstituteJpaRepository instituteJpaRepository;

private final InstituteJpaEntity jpaEntity = InstituteJpaEntity.builder()
.instituteId(1L)
.name("도서관")
.location("서울시")
.latitude(new BigDecimal("123456789.12341234"))
.longitude(new BigDecimal("987654321.43214321"))
.phone("010xxxxxxxx")
.build();
.instituteId(1L)
.name("도서관")
.location("서울시")
.latitude(new BigDecimal("37.56100278"))
.longitude(new BigDecimal("126.9996417"))
.phone("010xxxxxxxx")
.build();

@Test
@DisplayName("새 봉사기관 저장")
Expand All @@ -34,6 +35,6 @@ void save() {
instituteJpaRepository.save(jpaEntity);
// then
assertThat(instituteJpaRepository.findById(1L).get().getName())
.isEqualTo(jpaEntity.getName());
.isEqualTo(jpaEntity.getName());
}
}

0 comments on commit db717f4

Please sign in to comment.