Groovy language idioms

Coercing values from Java static method into a SOAPUI property.

uuid = context.expand('${=java.util.UUID.randomUUID()}')
startTime = context.expand('${=System.currentTimeMillis()}')
currentTime = context.expand('${=Calendar.getInstance().getTime()}')
isoDate = context.expand('${=new java.text.SimpleDateFormat("yyyy-mm-dd").format(Calendar.getInstance().getTime())}')

groovy_language_idioms.txt ยท Last modified: 2012/07/30 10:50 by Martin Spamer