Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 0 additions & 59 deletions .classpath

This file was deleted.

3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>egovframework</groupId>
<artifactId>egovframe-boot-web</artifactId>
<version>5.0.0</version>
<packaging>jar</packaging>
<name>egovframe-boot-web</name>
<url>http://www.egovframe.go.kr</url>
Expand All @@ -20,7 +21,7 @@
<parent>
<groupId>org.egovframe.boot</groupId>
<artifactId>egovframe-boot-starter-parent</artifactId>
<version>5.0.0</version>
<version>5.0.1</version>
</parent>

<repositories>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@

import java.util.List;

import org.egovframe.rte.fdl.cmmn.exception.BaseRuntimeException;

/**
* @Class Name : EgovSampleService.java
* @Description : EgovSampleService Class
Expand Down Expand Up @@ -61,10 +59,8 @@ public interface EgovSampleService {
* 글을 조회한다.
* @param vo - 조회할 정보가 담긴 SampleVO
* @return 조회한 글
* @exception BaseRuntimeException
* @exception Exception
*/
SampleVO selectSample(SampleVO vo) throws BaseRuntimeException, Exception;
SampleVO selectSample(SampleVO vo);

/**
* 글 목록을 조회한다.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,12 @@ public void deleteSample(SampleVO vo) {
* 글을 조회한다.
* @param vo - 조회할 정보가 담긴 SampleVO
* @return 조회한 글
* @exception BaseRuntimeException
* @exception Exception
*/
@Override
public SampleVO selectSample(SampleVO vo) throws BaseRuntimeException, Exception {
public SampleVO selectSample(SampleVO vo) {
SampleVO resultVO = sampleMapper.selectSample(vo);
if (resultVO == null) {
throw processException("info.nodata.msg");
throw new BaseRuntimeException(processException("info.nodata.msg"));
}
return resultVO;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ public interface SampleMapper {
* 글 총 개수를 조회한다.
* @param vo - 조회할 정보가 담긴 VO
* @return 글 총 개수
* @exception
*/
int selectSampleListTotCnt(SampleVO vo);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

import java.util.List;

import org.egovframe.rte.fdl.cmmn.exception.BaseRuntimeException;
import org.egovframe.rte.fdl.property.EgovPropertyService;
import org.egovframe.rte.ptl.mvc.tags.ui.pagination.PaginationInfo;
import org.springframework.stereotype.Controller;
Expand Down Expand Up @@ -144,11 +143,9 @@ public String addSample(@Valid @ModelAttribute SampleVO sampleVO, BindingResult
* @param sampleVO - 수정할 글 정보가 담긴 VO
* @param model
* @return "egovSampleRegister"
* @exception BaseRuntimeException
* @exception Exception
*/
@PostMapping("/updateSampleView.do")
public String updateSampleView(@ModelAttribute SampleVO sampleVO, Model model) throws BaseRuntimeException, Exception {
public String updateSampleView(@ModelAttribute SampleVO sampleVO, Model model) {

SampleVO detail = sampleService.selectSample(sampleVO);
detail.setSearchCondition(sampleVO.getSearchCondition());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import java.util.Arrays;
import java.util.List;

import org.egovframe.rte.fdl.cmmn.exception.BaseRuntimeException;
import org.egovframe.rte.fdl.idgnr.EgovIdGnrService;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName;
Expand Down Expand Up @@ -99,7 +98,7 @@ void setUp() {

@Test
@DisplayName("글 단건 조회 - 존재하는 글을 정상적으로 반환한다")
void selectSample_정상() throws BaseRuntimeException, Exception {
void selectSample_정상() {
// given
SampleVO expected = new SampleVO();
expected.setId("SAMPLE-001");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

import java.time.LocalDateTime;

import org.egovframe.rte.fdl.cmmn.exception.BaseRuntimeException;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
Expand Down Expand Up @@ -35,7 +34,7 @@ class EgovSampleServiceImplTestInsertSampleTest {
private EgovSampleService egovSampleService;

@Test
void test() throws BaseRuntimeException, Exception {
void test() {
// given
final SampleVO sampleVO = new SampleVO();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import java.util.regex.Matcher;
import java.util.regex.Pattern;

import org.egovframe.rte.fdl.cmmn.exception.BaseRuntimeException;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
Expand Down Expand Up @@ -49,7 +50,7 @@ class EgovSampleControllerTestRegisterViewTest {
private MockMvc mockMvc;

@Test
void testAddSampleView() throws Exception {
void testAddSampleView() throws BaseRuntimeException, Exception {
// given, when
final String html = mockMvc.perform(

Expand All @@ -72,7 +73,7 @@ void testAddSampleView() throws Exception {
}

@Test
void testUpdateSampleView() throws Exception {
void testUpdateSampleView() throws BaseRuntimeException, Exception {
// given, when
final String html = mockMvc.perform(

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import java.util.regex.Matcher;
import java.util.regex.Pattern;

import org.egovframe.rte.fdl.cmmn.exception.BaseRuntimeException;
import org.egovframe.rte.fdl.property.impl.EgovPropertyServiceImpl;
import org.egovframe.rte.ptl.mvc.tags.ui.pagination.PaginationInfo;
import org.junit.jupiter.api.DisplayName;
Expand Down Expand Up @@ -64,7 +65,7 @@ EgovPropertyServiceImpl propertiesService() {

@Test
@DisplayName("행 번호는 페이지 링크 묶음 크기가 아니라 페이지당 건수만큼 페이지마다 건너뛴다")
void test_행번호_페이지당건수() throws Exception {
void test_행번호_페이지당건수() throws BaseRuntimeException, Exception {
// given
final MvcResult mvcResult = mockMvc
.perform(get("/egovSampleList.do").param("pageIndex", String.valueOf(PAGE_INDEX)))
Expand Down