Skip to content

Commit

Permalink
[CORRECTIVE] Fix choice writer tests
Browse files Browse the repository at this point in the history
  • Loading branch information
epekkar committed Dec 4, 2023
1 parent b6f0ae7 commit e73ac2f
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions tests/IPXACTmodels/Component/tst_ChoiceWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ void tst_ChoiceWriter::testWriteChoiceName()
"</ipxact:choice>"
);

ChoiceWriter ChoiceWriter;
ChoiceWriter.writeChoice(xmlStreamWriter, testChoice_);
ChoiceWriter::writeChoice(xmlStreamWriter, testChoice_);
QCOMPARE(output, expectedOutput);
}

Expand All @@ -102,8 +101,7 @@ void tst_ChoiceWriter::testWriteEnum()
"</ipxact:choice>"
);

ChoiceWriter choiceWriter;
choiceWriter.writeChoice(xmlStreamWriter, testChoice_);
ChoiceWriter::writeChoice(xmlStreamWriter, testChoice_);
QCOMPARE(output, expectedOutput);
}

Expand Down Expand Up @@ -137,8 +135,7 @@ void tst_ChoiceWriter::testWriteEnum2()
"</ipxact:choice>"
);

ChoiceWriter choiceWriter;
choiceWriter.writeChoice(xmlStreamWriter, testChoice_);
ChoiceWriter::writeChoice(xmlStreamWriter, testChoice_);
QCOMPARE(output, expectedOutput);
}

Expand Down

0 comments on commit e73ac2f

Please sign in to comment.