@DataProvider(name = "fieldNamesWithMissingValue") public Object[][] getFieldNamesWithMissingValue() { List<String> notNullAttributes = ReflectionUtils.getAttributeNamesWithAnnotation( ContainerService.State.class, NotNull.class); return TestHelper.toDataProvidersList(notNullAttributes); }
@DataProvider(name = "ImmutableFieldNames") public Object[][] getFieldNamesWithInvalidValue() { return TestHelper.toDataProvidersList( ReflectionUtils.getAttributeNamesWithAnnotation( InitializeDeploymentMigrationWorkflowService.State.class, Immutable.class)); }
@DataProvider(name = "RequiredFieldNames") public Object[][] getRequiredFieldNames() { return TestHelper.toDataProvidersList( ReflectionUtils.getAttributeNamesWithAnnotation( InitializeDeploymentMigrationWorkflowService.State.class, NotNull.class)); }