Class RentalsConfigTest

java.lang.Object
info.ejava.assignments.autoconfig.rentals.RentalsConfigTest

@SpringBootConfiguration @ComponentScan(basePackages="info.ejava_student",excludeFilters={,,}) @EnableAutoConfiguration public class RentalsConfigTest extends Object
This test verifies which component was selected to be injected. It uses reflection to get around the fact that it does not know the solution's package and classnames -- just obvious patterns. We will cover testing soon and reflection several weeks after that
  • Field Details

    • component

      Object component
    • rentalsService

      Object rentalsService
  • Constructor Details

    • RentalsConfigTest

      public RentalsConfigTest()
  • Method Details