Skip to content

Commit

Permalink
[CORRECTIVE] Fix component creation in design configuration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
epekkar committed Dec 4, 2023
1 parent de6c895 commit d562a5b
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ void tst_DesignConfigurationValidator::testInterconnectionConfigurationHasValidI
QSharedPointer<BusInterface> testInterface (new BusInterface());
testInterface->setName(busReference);

QSharedPointer<Component> testComponent (new Component(*componentVLNV.data()));
QSharedPointer<Component> testComponent (new Component(*componentVLNV, Document::Revision::Std14));
testComponent->getBusInterfaces()->append(testInterface);

mockLibrary->addComponent(testComponent);
Expand Down Expand Up @@ -852,7 +852,7 @@ void tst_DesignConfigurationValidator::testInterconnectionConfigurationInterface
QSharedPointer<BusInterface> testInterface (new BusInterface());
testInterface->setName(interfaceReference->getBusRef());

QSharedPointer<Component> testComponent (new Component(*componentVLNV.data()));
QSharedPointer<Component> testComponent (new Component(*componentVLNV, Document::Revision::Std14));
testComponent->getBusInterfaces()->append(testInterface);

QSharedPointer<InterconnectionConfiguration> testConfiguration (new InterconnectionConfiguration());
Expand Down Expand Up @@ -1169,7 +1169,7 @@ void tst_DesignConfigurationValidator::testViewConfigurationHasValidViewReferenc
QSharedPointer<ConfigurableVLNVReference> componentVLNV
(new ConfigurableVLNVReference(VLNV(VLNV::COMPONENT, "vendor", "library", "testComponent", "1")));

QSharedPointer<Component> testComponent (new Component(*componentVLNV.data()));
QSharedPointer<Component> testComponent (new Component(*componentVLNV, Document::Revision::Std14));
testComponent->getViews()->append(testView);

mockLibrary->addComponent(testComponent);
Expand Down Expand Up @@ -1259,7 +1259,7 @@ void tst_DesignConfigurationValidator::testHasValidViewConfigurations()
testView->setName("SaederKrupp");
}

QSharedPointer<Component> testComponent (new Component(*componentVLNV.data()));
QSharedPointer<Component> testComponent (new Component(*componentVLNV, Document::Revision::Std14));
testComponent->getViews()->append(testView);

mockLibrary->addComponent(testComponent);
Expand Down

0 comments on commit d562a5b

Please sign in to comment.