Search in sources :

Example 1 with ErrataType

use of org.ovirt.engine.core.common.businessentities.Erratum.ErrataType in project ovirt-engine by oVirt.

the class GetErrataCountsForHostQueryTest method noAvailableHostErrata.

@Test
public void noAvailableHostErrata() {
    setupToReportErrata(Collections.emptyList());
    getQuery().executeQueryCommand();
    assertNotNull(getQuery().getQueryReturnValue().getReturnValue());
    ErrataCounts returnValue = getQuery().getQueryReturnValue().getReturnValue();
    for (ErrataType type : ErrataType.values()) {
        assertEquals(0, returnValue.getCountByType(type));
    }
}
Also used : ErrataCounts(org.ovirt.engine.core.common.businessentities.ErrataCounts) ErrataType(org.ovirt.engine.core.common.businessentities.Erratum.ErrataType) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 ErrataCounts (org.ovirt.engine.core.common.businessentities.ErrataCounts)1 ErrataType (org.ovirt.engine.core.common.businessentities.Erratum.ErrataType)1