Class ConfigurationPropertyTest

java.lang.Object
info.ejava.assignments.configprops.rentals.ConfigurationPropertyTest

@SpringBootTest public class ConfigurationPropertyTest extends Object
This test does a light verification of the populated PropertyPrinter component. It uses reflection because all of the data types are in the starter project and it is unknown what Java packaging things will use. We will cover testing soon and reflection several weeks after that
  • Field Details

    • component

      private Object component
  • Constructor Details

    • ConfigurationPropertyTest

      public ConfigurationPropertyTest()
  • Method Details

    • init

      @BeforeEach void init(@Autowired org.springframework.context.ApplicationContext ctx) throws Exception
      Throws:
      Exception
    • component_has_houserentals

      @Test void component_has_houserentals() throws Exception
      Throws:
      Exception
    • context

      private String context(Object rental)
    • component_has_toolrentals

      @Test void component_has_toolrentals() throws Exception
      Throws:
      Exception
    • component_has_boatrental

      @Test void component_has_boatrental() throws Exception
      Throws:
      Exception
    • getId

      private int getId(Object obj)
    • get

      private <T> T get(Object obj, String property, Class<T> type)