Search in sources :

Example 1 with SystemActions

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

the class MetadataImportTest method before.

@BeforeAll
public void before() {
    metadataActions = new MetadataActions();
    systemActions = new SystemActions();
    new LoginActions().loginAsSuperUser();
}
Also used : SystemActions(org.hisp.dhis.actions.SystemActions) MetadataActions(org.hisp.dhis.actions.metadata.MetadataActions) LoginActions(org.hisp.dhis.actions.LoginActions) BeforeAll(org.junit.jupiter.api.BeforeAll)

Example 2 with SystemActions

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

the class DataImportTest method before.

@BeforeAll
public void before() {
    dataValueSetActions = new DataValueSetActions();
    metadataActions = new MetadataActions();
    dataValueActions = new DataValueActions();
    systemActions = new SystemActions();
    new LoginActions().loginAsSuperUser();
    metadataActions.importMetadata(new File("src/test/resources/aggregate/metadata.json"), "async=false").validate().statusCode(200);
}
Also used : SystemActions(org.hisp.dhis.actions.SystemActions) DataValueSetActions(org.hisp.dhis.actions.aggregate.DataValueSetActions) DataValueActions(org.hisp.dhis.actions.aggregate.DataValueActions) MetadataActions(org.hisp.dhis.actions.metadata.MetadataActions) LoginActions(org.hisp.dhis.actions.LoginActions) File(java.io.File) BeforeAll(org.junit.jupiter.api.BeforeAll)

Example 3 with SystemActions

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

the class EventImportTests method before.

@BeforeAll
public void before() {
    eventActions = new EventActions();
    systemActions = new SystemActions();
    new LoginActions().loginAsSuperUser();
}
Also used : SystemActions(org.hisp.dhis.actions.SystemActions) LoginActions(org.hisp.dhis.actions.LoginActions) EventActions(org.hisp.dhis.actions.tracker.EventActions) BeforeAll(org.junit.jupiter.api.BeforeAll)

Aggregations

LoginActions (org.hisp.dhis.actions.LoginActions)3 SystemActions (org.hisp.dhis.actions.SystemActions)3 BeforeAll (org.junit.jupiter.api.BeforeAll)3 MetadataActions (org.hisp.dhis.actions.metadata.MetadataActions)2 File (java.io.File)1 DataValueActions (org.hisp.dhis.actions.aggregate.DataValueActions)1 DataValueSetActions (org.hisp.dhis.actions.aggregate.DataValueSetActions)1 EventActions (org.hisp.dhis.actions.tracker.EventActions)1