@@ -137,12 +137,14 @@ public void testConvertCreationInfo() throws InvalidSPDXAnalysisException {
137137 String organizationCreatorName = "Source Auditor Inc." ;
138138 String organizationCreator = SpdxConstantsCompatV2 .CREATOR_PREFIX_ORGANIZATION + organizationCreatorName ;
139139 String created = "2010-01-29T18:30:22Z" ;
140+ String comment = "Test creation info comment" ;
140141 String licenseListVersion = "3.21" ;
141142 SpdxCreatorInformation creatorInfo = new SpdxCreatorInformation (fromModelStore , DOCUMENT_URI , creatorId , copyManager , true );
142143 creatorInfo .getCreators ().add (personCreator );
143144 creatorInfo .getCreators ().add (toolCreator );
144145 creatorInfo .getCreators ().add (organizationCreator );
145146 creatorInfo .setCreated (created );
147+ creatorInfo .setComment (comment );
146148 creatorInfo .setLicenseListVersion (licenseListVersion );
147149 List <String > verify = creatorInfo .verify ();
148150 assertTrue (verify .isEmpty ());
@@ -173,6 +175,7 @@ public void testConvertCreationInfo() throws InvalidSPDXAnalysisException {
173175 assertEquals (1 , tools .length );
174176 assertEquals (toolCreatorName , tools [0 ].getName ().get ());
175177 assertEquals (created , result .getCreated ());
178+ assertEquals (comment , result .getComment ().orElse (null ));
176179 assertEquals (IdType .Anonymous , toModelStore .getIdType (result .getObjectUri ()));
177180 verify = result .verify ();
178181 assertTrue (verify .isEmpty ());
0 commit comments