@@ -67,17 +67,17 @@ public void testUpdateNextIds() throws InvalidSPDXAnalysisException {
6767 RdfSpdxDocumentModelManager store = new RdfSpdxDocumentModelManager (TEST_DOCUMENT_URI1 , model );
6868 // License ID's
6969 String nextId = store .getNextId (IdType .LicenseRef );
70- assertEquals ("LicenseRef-1 " , nextId );
71- store .getOrCreate ("LicenseRef-33 " , SpdxConstants .CLASS_SPDX_EXTRACTED_LICENSING_INFO );
70+ assertEquals ("LicenseRef-gnrtd1 " , nextId );
71+ store .getOrCreate ("LicenseRef-gnrtd33 " , SpdxConstants .CLASS_SPDX_EXTRACTED_LICENSING_INFO );
7272 nextId = store .getNextId (IdType .LicenseRef );
73- assertEquals ("LicenseRef-34 " , nextId );
73+ assertEquals ("LicenseRef-gnrtd34 " , nextId );
7474
7575 // SPDX ID's
7676 nextId = store .getNextId (IdType .SpdxId );
77- assertEquals ("SPDXRef-1 " , nextId );
78- store .getOrCreate ("SPDXRef-33 " , SpdxConstants .CLASS_SPDX_FILE );
77+ assertEquals ("SPDXRef-gnrtd1 " , nextId );
78+ store .getOrCreate ("SPDXRef-gnrtd33 " , SpdxConstants .CLASS_SPDX_FILE );
7979 nextId = store .getNextId (IdType .SpdxId );
80- assertEquals ("SPDXRef-34 " , nextId );
80+ assertEquals ("SPDXRef-gnrtd34 " , nextId );
8181
8282 // Anonymous ID's
8383 nextId = store .getNextId (IdType .Anonymous );
@@ -88,22 +88,22 @@ public void testUpdateNextIds() throws InvalidSPDXAnalysisException {
8888
8989 // Document ID
9090 nextId = store .getNextId (IdType .DocumentRef );
91- assertEquals (SpdxConstants .EXTERNAL_DOC_REF_PRENUM + "1 " , nextId );
92- store .getOrCreate (SpdxConstants .EXTERNAL_DOC_REF_PRENUM + "33 " , SpdxConstants .CLASS_EXTERNAL_DOC_REF );
91+ assertEquals (SpdxConstants .EXTERNAL_DOC_REF_PRENUM + "gnrtd1 " , nextId );
92+ store .getOrCreate (SpdxConstants .EXTERNAL_DOC_REF_PRENUM + "gnrtd33 " , SpdxConstants .CLASS_EXTERNAL_DOC_REF );
9393 nextId = store .getNextId (IdType .DocumentRef );
94- assertEquals (SpdxConstants .EXTERNAL_DOC_REF_PRENUM + "34 " , nextId );
94+ assertEquals (SpdxConstants .EXTERNAL_DOC_REF_PRENUM + "gnrtd34 " , nextId );
9595
9696 // test initialization of the next ID's
9797 RdfSpdxDocumentModelManager store2 = new RdfSpdxDocumentModelManager (TEST_DOCUMENT_URI1 , model );
9898 nextId = store2 .getNextId (IdType .LicenseRef );
99- assertEquals ("LicenseRef-34 " , nextId );
99+ assertEquals ("LicenseRef-gnrtd34 " , nextId );
100100 nextId = store2 .getNextId (IdType .SpdxId );
101- assertEquals ("SPDXRef-34 " , nextId );
101+ assertEquals ("SPDXRef-gnrtd34 " , nextId );
102102 nextId = store2 .getNextId (IdType .Anonymous );
103103 assertTrue (nextId .startsWith (RdfStore .ANON_PREFIX ));
104104 assertFalse (nextId .equals (nextNextId ));
105105 nextId = store2 .getNextId (IdType .DocumentRef );
106- assertEquals (SpdxConstants .EXTERNAL_DOC_REF_PRENUM + "34 " , nextId );
106+ assertEquals (SpdxConstants .EXTERNAL_DOC_REF_PRENUM + "gnrtd34 " , nextId );
107107 }
108108
109109
@@ -236,21 +236,21 @@ public void testGetNextId() throws InvalidSPDXAnalysisException {
236236 RdfSpdxDocumentModelManager store = new RdfSpdxDocumentModelManager (TEST_DOCUMENT_URI1 , model );
237237 // License ID's
238238 String nextId = store .getNextId (IdType .LicenseRef );
239- assertEquals ("LicenseRef-1 " , nextId );
239+ assertEquals ("LicenseRef-gnrtd1 " , nextId );
240240 nextId = store .getNextId (IdType .LicenseRef );
241- assertEquals ("LicenseRef-2 " , nextId );
241+ assertEquals ("LicenseRef-gnrtd2 " , nextId );
242242
243243 // SPDX ID's
244244 nextId = store .getNextId (IdType .SpdxId );
245- assertEquals ("SPDXRef-1 " , nextId );
245+ assertEquals ("SPDXRef-gnrtd1 " , nextId );
246246 nextId = store .getNextId (IdType .SpdxId );
247- assertEquals ("SPDXRef-2 " , nextId );
247+ assertEquals ("SPDXRef-gnrtd2 " , nextId );
248248
249249 // Document ID
250250 nextId = store .getNextId (IdType .DocumentRef );
251- assertEquals (SpdxConstants .EXTERNAL_DOC_REF_PRENUM + "1 " , nextId );
251+ assertEquals (SpdxConstants .EXTERNAL_DOC_REF_PRENUM + "gnrtd1 " , nextId );
252252 nextId = store .getNextId (IdType .DocumentRef );
253- assertEquals (SpdxConstants .EXTERNAL_DOC_REF_PRENUM + "2 " , nextId );
253+ assertEquals (SpdxConstants .EXTERNAL_DOC_REF_PRENUM + "gnrtd2 " , nextId );
254254 }
255255
256256 /**
0 commit comments