불필요 컨틀롤러 삭제
This commit is contained in:
@@ -1,44 +0,0 @@
|
||||
package com.eactive.eai.rms.common.advice;
|
||||
|
||||
import com.eactive.eai.rms.common.interceptor.InterceptorSkipController;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
/**
|
||||
* EmptyJsonResponseAdviceController 테스트용 컨트롤러.
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/test/empty-json")
|
||||
public class EmptyJsonResponseTestController implements InterceptorSkipController {
|
||||
|
||||
/**
|
||||
* null 반환 테스트
|
||||
* URL: /monitoring/test/empty-json/null.json
|
||||
*/
|
||||
@RequestMapping("/null.json")
|
||||
@ResponseBody
|
||||
public Object returnNull() {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 빈 문자열 반환 테스트
|
||||
* URL: /monitoring/test/empty-json/empty-string.json
|
||||
*/
|
||||
@RequestMapping("/empty-string.json")
|
||||
@ResponseBody
|
||||
public String returnEmptyString() {
|
||||
return "";
|
||||
}
|
||||
|
||||
/**
|
||||
* 정상 데이터 반환 테스트 (변환되지 않아야 함)
|
||||
* URL: /monitoring/test/empty-json/normal.json
|
||||
*/
|
||||
@RequestMapping("/normal.json")
|
||||
@ResponseBody
|
||||
public String returnNormal() {
|
||||
return "{\"status\":\"ok\"}";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user