use of org.hisp.dhis.actions.metadata.MetadataPaginationActions in project dhis2-core by dhis2.
the class UserPaginationTest method setUp.
@BeforeEach
public void setUp() {
LoginActions loginActions = new LoginActions();
userActions = new UserActions();
paginationActions = new MetadataPaginationActions("/users");
loginActions.loginAsSuperUser();
// Creates Users
for (int i = 0; i < total; i++) {
userActions.addUser(DataGenerator.randomString() + i, DataGenerator.randomString() + i, (DataGenerator.randomString() + i).toLowerCase(), DataGenerator.randomString() + "Abcd1234!" + i);
}
}
use of org.hisp.dhis.actions.metadata.MetadataPaginationActions in project dhis2-core by dhis2.
the class MetadataPaginationTest method setUp.
@BeforeEach
public void setUp() {
LoginActions loginActions = new LoginActions();
OptionActions optionActions = new OptionActions();
paginationActions = new MetadataPaginationActions("/optionSets");
loginActions.loginAsSuperUser();
// Creates 100 Option Sets
for (int i = 0; i < 100; i++) {
optionActions.createOptionSet(RandomStringUtils.randomAlphabetic(10), "INTEGER", (String[]) null);
}
}
Aggregations