Package com.gsitm.ustra.java.test.utils
Class UstraTestUtils
java.lang.Object
com.gsitm.ustra.java.test.utils.UstraTestUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddPropertyToEnvironment(org.springframework.context.ConfigurableApplicationContext applicationContext, String propertyKey, String propertyValue) environment 객체에 프로퍼티 추가static voidconfigureFrameworkPropertyFiles(AbstractUstraSpringTest testClassInstance, List<String> additionalProperyFiles) framework property 설정을 추가한다.static <T> TmvcResultToObject(org.springframework.test.web.servlet.MvcResult result, com.fasterxml.jackson.core.type.TypeReference<T> typeRef) MvcResult body를 Object 유형으로 변경한다.
-
Method Details
-
configureFrameworkPropertyFiles
public static void configureFrameworkPropertyFiles(AbstractUstraSpringTest testClassInstance, List<String> additionalProperyFiles) framework property 설정을 추가한다. -
addPropertyToEnvironment
public static void addPropertyToEnvironment(@NonNull org.springframework.context.ConfigurableApplicationContext applicationContext, @NonNull String propertyKey, @NonNull String propertyValue) environment 객체에 프로퍼티 추가- Parameters:
applicationContext-propertyKey-propertyValue-
-
mvcResultToObject
public static <T> T mvcResultToObject(org.springframework.test.web.servlet.MvcResult result, com.fasterxml.jackson.core.type.TypeReference<T> typeRef) MvcResult body를 Object 유형으로 변경한다.- Type Parameters:
T-- Parameters:
result- 결과 값typeRef- typeReference- Returns:
- Throws:
IOException
-