@@ -53,7 +53,7 @@ import spock.lang.*
5353
5454class 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