Skip to content

Commit 67be3ee

Browse files
committed
Pulled in some changes from master, and made further changes.
1 parent e80e83b commit 67be3ee

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/test/groovy/org/mitre/stix/sitx_1/STIXPackageSpec.groovy

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ import spock.lang.*
5353

5454
class STIXPackageSpec extends spock.lang.Specification{
5555

56-
def "A STIXPpackage when created creates the expected XML String"() {
56+
def "A STIXPackage when created creates the expected XML String"() {
5757
setup:
5858
XMLUnit.setIgnoreWhitespace(true)
5959
XMLUnit.setIgnoreAttributeOrder(true)
@@ -188,9 +188,8 @@ class STIXPackageSpec extends spock.lang.Specification{
188188

189189
def producer = new InformationSourceType()
190190
.withDescription(
191-
new StructuredTextType(
192-
"An indicator containing a File observable with an associated hash",
193-
null))
191+
new StructuredTextType().withValue(
192+
"An indicator containing a File observable with an associated hash"))
194193
.withTime(
195194
new TimeType()
196195
.withProducedTime(new DateTimeWithPrecisionType(
@@ -225,9 +224,9 @@ class STIXPackageSpec extends spock.lang.Specification{
225224
.withTimestamp(epoch)
226225
.withTitle("File Hash Example")
227226
.withDescription(
228-
new StructuredTextType(
229-
"An indicator containing a File observable with an associated hash",
230-
null)).withProducer(producer)
227+
new StructuredTextType().withValue(
228+
"An indicator containing a File observable with an associated hash"))
229+
.withProducer(producer)
231230
.withObservable(observable)
232231

233232
def indicators = new IndicatorsType(

0 commit comments

Comments
 (0)