use of org.ovirt.engine.core.common.businessentities.Erratum in project ovirt-engine by oVirt.
the class KatelloProvider method mapErrata.
private List<Erratum> mapErrata(List<ExternalErratum> externalErrata) {
List<Erratum> errata = new ArrayList<>(externalErrata.size());
for (ExternalErratum externalErratum : externalErrata) {
Erratum erratum = mapErratum(externalErratum);
errata.add(erratum);
}
return errata;
}
use of org.ovirt.engine.core.common.businessentities.Erratum in project ovirt-engine by oVirt.
the class KatelloProvider method mapErratum.
protected Erratum mapErratum(ExternalErratum externalErratum) {
Erratum erratum = new Erratum();
erratum.setId(externalErratum.getId());
erratum.setIssued(externalErratum.getIssued());
erratum.setTitle(externalErratum.getTitle());
erratum.setSummary(externalErratum.getSummary());
erratum.setSolution(externalErratum.getSolution());
erratum.setDescription(externalErratum.getDescription());
erratum.setSeverity(Erratum.ErrataSeverity.byDescription(externalErratum.getSeverity()));
erratum.setType(Erratum.ErrataType.byDescription(externalErratum.getType()));
erratum.setPackages(Arrays.asList(externalErratum.getPackages()));
return erratum;
}
use of org.ovirt.engine.core.common.businessentities.Erratum in project ovirt-engine by oVirt.
the class BackendEngineKatelloErrataResourceTest method getEntity.
@Override
protected Erratum getEntity(int index) {
Erratum erratum = mock(Erratum.class);
when(erratum.getId()).thenReturn(NAMES[index]);
when(erratum.getDescription()).thenReturn(DESCRIPTIONS[index]);
return erratum;
}
use of org.ovirt.engine.core.common.businessentities.Erratum in project ovirt-engine by oVirt.
the class BackendHostKatelloErrataResourceTest method getEntity.
@Override
protected Erratum getEntity(int index) {
Erratum erratum = mock(Erratum.class);
when(erratum.getId()).thenReturn(NAMES[index]);
when(erratum.getDescription()).thenReturn(DESCRIPTIONS[index]);
return erratum;
}
use of org.ovirt.engine.core.common.businessentities.Erratum in project ovirt-engine by oVirt.
the class BackendVmKatelloErratumResourceTest method getEntity.
@Override
protected Erratum getEntity(int index) {
Erratum erratum = mock(Erratum.class);
when(erratum.getId()).thenReturn(GUIDS[index].toString());
when(erratum.getDescription()).thenReturn(DESCRIPTIONS[index]);
return erratum;
}
Aggregations