Class UstraTestUtils

java.lang.Object
com.gsitm.ustra.java.test.utils.UstraTestUtils

public final class UstraTestUtils extends 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