tracks/scala/testgen/src/main/scala/testgen/TestSuiteBuilder.scala in trackler-2.2.1.115 vs tracks/scala/testgen/src/main/scala/testgen/TestSuiteBuilder.scala in trackler-2.2.1.116

- old
+ new

@@ -1,12 +1,14 @@ package testgen import java.io.FileWriter import java.io.File + import play.twirl.api.Txt import play.twirl.api.Template1 import TestSuiteBuilder._ +import testgen.CanonicalDataParser.ParseResult object TestSuiteBuilder { type TestSuiteTemplate = Template1[TestSuiteData, Txt] type ToTestCaseData = String => LabeledTestItem => TestCaseData @@ -179,9 +181,15 @@ case lstr: Long => lstr.toString + "l" case _ => any.toString } } + + /** + * Get value from "input" map + */ + def fromInputMap(parseResult: ParseResult, name: String) = + parseResult("input").asInstanceOf[Map[String, Any]](name) def writeToFile(text: String, dest: File): Unit = { val fileWriter = new FileWriter(dest) try { fileWriter.write(text) } finally fileWriter.close }