Search in sources :

Example 1 with OptionActions

use of org.hisp.dhis.actions.metadata.OptionActions in project dhis2-core by dhis2.

the class UsersRemovalTests method beforeEach.

@BeforeEach
public void beforeEach() {
    userActions = new UserActions();
    optionActions = new OptionActions();
    loginActions = new LoginActions();
    userName = (DataGenerator.randomString()).toLowerCase();
    loginActions.loginAsSuperUser();
    userId = userActions.addUser("johnny", "bravo", userName, password);
}
Also used : OptionActions(org.hisp.dhis.actions.metadata.OptionActions) UserActions(org.hisp.dhis.actions.UserActions) LoginActions(org.hisp.dhis.actions.LoginActions) BeforeEach(org.junit.jupiter.api.BeforeEach)

Example 2 with OptionActions

use of org.hisp.dhis.actions.metadata.OptionActions 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);
    }
}
Also used : OptionActions(org.hisp.dhis.actions.metadata.OptionActions) MetadataPaginationActions(org.hisp.dhis.actions.metadata.MetadataPaginationActions) LoginActions(org.hisp.dhis.actions.LoginActions) BeforeEach(org.junit.jupiter.api.BeforeEach)

Example 3 with OptionActions

use of org.hisp.dhis.actions.metadata.OptionActions in project dhis2-core by dhis2.

the class OptionSetTests method beforeAll.

@BeforeAll
public void beforeAll() {
    optionActions = new OptionActions();
    loginActions = new LoginActions();
    loginActions.loginAsSuperUser();
}
Also used : OptionActions(org.hisp.dhis.actions.metadata.OptionActions) LoginActions(org.hisp.dhis.actions.LoginActions) BeforeAll(org.junit.jupiter.api.BeforeAll)

Aggregations

LoginActions (org.hisp.dhis.actions.LoginActions)3 OptionActions (org.hisp.dhis.actions.metadata.OptionActions)3 BeforeEach (org.junit.jupiter.api.BeforeEach)2 UserActions (org.hisp.dhis.actions.UserActions)1 MetadataPaginationActions (org.hisp.dhis.actions.metadata.MetadataPaginationActions)1 BeforeAll (org.junit.jupiter.api.BeforeAll)1