Class PopulateTestData
- java.lang.Object
-
- nl.b3p.tailormap.api.configuration.dev.PopulateTestData
-
@Configuration @ConditionalOnProperty(name="tailormap-api.database.populate-testdata", havingValue="true") public class PopulateTestData extends ObjectPopulates entities to add services and applications to demo functionality, support development and use in integration tests with a common set of test data. See README.md for usage details.
-
-
Constructor Summary
Constructors Constructor Description PopulateTestData(org.springframework.context.ApplicationContext appContext, UserRepository userRepository, GroupRepository groupRepository, CatalogRepository catalogRepository, GeoServiceRepository geoServiceRepository, GeoServiceHelper geoServiceHelper, FeatureSourceRepository featureSourceRepository, ApplicationRepository applicationRepository, ConfigurationRepository configurationRepository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateTestConfiguration()voidcreateTestUsersAndGroups()voidpopulate()
-
-
-
Constructor Detail
-
PopulateTestData
public PopulateTestData(org.springframework.context.ApplicationContext appContext, UserRepository userRepository, GroupRepository groupRepository, CatalogRepository catalogRepository, GeoServiceRepository geoServiceRepository, GeoServiceHelper geoServiceHelper, FeatureSourceRepository featureSourceRepository, ApplicationRepository applicationRepository, ConfigurationRepository configurationRepository)
-
-
Method Detail
-
populate
@EventListener(org.springframework.boot.context.event.ApplicationReadyEvent.class) @Transactional public void populate() throws Exception- Throws:
Exception
-
createTestUsersAndGroups
public void createTestUsersAndGroups() throws NoSuchElementException- Throws:
NoSuchElementException
-
-