aboutsummaryrefslogtreecommitdiff
path: root/tvsaver/saver2v1/save_annotation_test.go
diff options
context:
space:
mode:
authorBrandon Lum <lumjjb@gmail.com>2022-07-19 16:43:48 -0400
committerBrandon Lum <lumjjb@gmail.com>2022-07-19 22:43:24 -0400
commit9ae1bd2f8e0dabb0845f1225b54f23e8f3a429f1 (patch)
treea43213aadfb9bde3d9ec15634a39305f19ff38b2 /tvsaver/saver2v1/save_annotation_test.go
parent41d2272711255f5a25e16e3507ec3318bc550189 (diff)
downloadspdx-tools-9ae1bd2f8e0dabb0845f1225b54f23e8f3a429f1.tar.gz
replace all v2_1, v2_2 with new convention
Signed-off-by: Brandon Lum <lumjjb@gmail.com>
Diffstat (limited to 'tvsaver/saver2v1/save_annotation_test.go')
-rw-r--r--tvsaver/saver2v1/save_annotation_test.go21
1 files changed, 11 insertions, 10 deletions
diff --git a/tvsaver/saver2v1/save_annotation_test.go b/tvsaver/saver2v1/save_annotation_test.go
index 3eef5a7..405bf8a 100644
--- a/tvsaver/saver2v1/save_annotation_test.go
+++ b/tvsaver/saver2v1/save_annotation_test.go
@@ -6,16 +6,17 @@ import (
"bytes"
"testing"
- "github.com/spdx/tools-golang/spdx"
+ "github.com/spdx/tools-golang/spdx/common"
+ "github.com/spdx/tools-golang/spdx/v2_1"
)
// ===== Annotation section Saver tests =====
func TestSaver2_1AnnotationSavesTextForPerson(t *testing.T) {
- ann := &spdx.Annotation2_1{
- Annotator: spdx.Annotator{AnnotatorType: "Person", Annotator: "John Doe"},
+ ann := &v2_1.Annotation{
+ Annotator: common.Annotator{AnnotatorType: "Person", Annotator: "John Doe"},
AnnotationDate: "2018-10-10T17:52:00Z",
AnnotationType: "REVIEW",
- AnnotationSPDXIdentifier: spdx.MakeDocElementID("", "DOCUMENT"),
+ AnnotationSPDXIdentifier: common.MakeDocElementID("", "DOCUMENT"),
AnnotationComment: "This is an annotation about the SPDX document",
}
@@ -43,11 +44,11 @@ AnnotationComment: This is an annotation about the SPDX document
}
func TestSaver2_1AnnotationSavesTextForOrganization(t *testing.T) {
- ann := &spdx.Annotation2_1{
- Annotator: spdx.Annotator{AnnotatorType: "Organization", Annotator: "John Doe, Inc."},
+ ann := &v2_1.Annotation{
+ Annotator: common.Annotator{AnnotatorType: "Organization", Annotator: "John Doe, Inc."},
AnnotationDate: "2018-10-10T17:52:00Z",
AnnotationType: "REVIEW",
- AnnotationSPDXIdentifier: spdx.MakeDocElementID("", "DOCUMENT"),
+ AnnotationSPDXIdentifier: common.MakeDocElementID("", "DOCUMENT"),
AnnotationComment: "This is an annotation about the SPDX document",
}
@@ -75,11 +76,11 @@ AnnotationComment: This is an annotation about the SPDX document
}
func TestSaver2_1AnnotationSavesTextForTool(t *testing.T) {
- ann := &spdx.Annotation2_1{
- Annotator: spdx.Annotator{AnnotatorType: "Tool", Annotator: "magictool-1.1"},
+ ann := &v2_1.Annotation{
+ Annotator: common.Annotator{AnnotatorType: "Tool", Annotator: "magictool-1.1"},
AnnotationDate: "2018-10-10T17:52:00Z",
AnnotationType: "REVIEW",
- AnnotationSPDXIdentifier: spdx.MakeDocElementID("", "DOCUMENT"),
+ AnnotationSPDXIdentifier: common.MakeDocElementID("", "DOCUMENT"),
AnnotationComment: "This is an annotation about the SPDX document",
}