Search in sources :

Example 1 with MatchUserMappingToOvfVnic

use of org.ovirt.engine.core.bll.exportimport.vnics.MapVnicsHandlers.MatchUserMappingToOvfVnic in project ovirt-engine by oVirt.

the class MapVnicsFlow method init.

@PostConstruct
private void init() {
    matchMapping = new MatchUserMappingToOvfVnic();
    RunContextPerMatchedMapping runContexts = new RunContextPerMatchedMapping();
    ReportResults report = new ReportResults();
    matchMapping.setOnSuccess(createContexts);
    matchMapping.setOnNeutral(report);
    createContexts.setOnSuccess(runContexts);
    createContexts.setOnNeutral(report);
    runContexts.setOnSuccess(report);
    runContexts.setOnNeutral(report);
}
Also used : MatchUserMappingToOvfVnic(org.ovirt.engine.core.bll.exportimport.vnics.MapVnicsHandlers.MatchUserMappingToOvfVnic) ReportResults(org.ovirt.engine.core.bll.exportimport.vnics.MapVnicsHandlers.ReportResults) RunContextPerMatchedMapping(org.ovirt.engine.core.bll.exportimport.vnics.MapVnicsHandlers.RunContextPerMatchedMapping) PostConstruct(javax.annotation.PostConstruct)

Example 2 with MatchUserMappingToOvfVnic

use of org.ovirt.engine.core.bll.exportimport.vnics.MapVnicsHandlers.MatchUserMappingToOvfVnic in project ovirt-engine by oVirt.

the class MatchUserMappingToOvfVnicTest method beforeClass.

@BeforeClass
public static void beforeClass() {
    dataPoints = new MapVnicDataPoints();
    dataPoints.prepareTestDataPoints();
    dataPoints.prepareNonMatchingSourcesDataPoints();
    matcher = new MatchUserMappingToOvfVnic();
}
Also used : MatchUserMappingToOvfVnic(org.ovirt.engine.core.bll.exportimport.vnics.MapVnicsHandlers.MatchUserMappingToOvfVnic) BeforeClass(org.junit.BeforeClass)

Example 3 with MatchUserMappingToOvfVnic

use of org.ovirt.engine.core.bll.exportimport.vnics.MapVnicsHandlers.MatchUserMappingToOvfVnic in project ovirt-engine by oVirt.

the class MatchUserMappingToOvfVnicTest method setUp.

@Before
public void setUp() {
    underTest = new MatchUserMappingToOvfVnic();
    externalVnicProfileMapping1 = new ExternalVnicProfileMapping(NETWORK_NAME, VNIC_PROFILE1_NAME, TARGET_VNIC_PROFILE_ID);
    externalVnicProfileMapping2 = new ExternalVnicProfileMapping(NETWORK_NAME, VNIC_PROFILE2_NAME, null);
    externalVnicProfileMappings = asList(externalVnicProfileMapping1, externalVnicProfileMapping2);
    emptySourceMapping = new ExternalVnicProfileMapping(null, null, TARGET_VNIC_PROFILE_ID);
}
Also used : MatchUserMappingToOvfVnic(org.ovirt.engine.core.bll.exportimport.vnics.MapVnicsHandlers.MatchUserMappingToOvfVnic) ExternalVnicProfileMapping(org.ovirt.engine.core.common.businessentities.network.ExternalVnicProfileMapping) Before(org.junit.Before)

Aggregations

MatchUserMappingToOvfVnic (org.ovirt.engine.core.bll.exportimport.vnics.MapVnicsHandlers.MatchUserMappingToOvfVnic)3 PostConstruct (javax.annotation.PostConstruct)1 Before (org.junit.Before)1 BeforeClass (org.junit.BeforeClass)1 ReportResults (org.ovirt.engine.core.bll.exportimport.vnics.MapVnicsHandlers.ReportResults)1 RunContextPerMatchedMapping (org.ovirt.engine.core.bll.exportimport.vnics.MapVnicsHandlers.RunContextPerMatchedMapping)1 ExternalVnicProfileMapping (org.ovirt.engine.core.common.businessentities.network.ExternalVnicProfileMapping)1