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);
}
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();
}
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);
}
Aggregations