diff options
Diffstat (limited to 'tvsaver/saver2v1/save_annotation_test.go')
-rw-r--r-- | tvsaver/saver2v1/save_annotation_test.go | 21 |
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", } |