Skip to content

Instantly share code, notes, and snippets.

import co.freeside.betamax.TapeMode
import co.freeside.betamax.Recorder
import co.freeside.betamax.proxy.jetty.ProxyServer
trait Betamax extends Wrapped{
def betamax(tape: String, mode: Option[TapeMode] = None)(testFun: => Unit) = {
println("Starting Betamax")
val recorder = new Recorder
val proxyServer = new ProxyServer(recorder)
<?xml version="1.0" encoding="utf-8"?>
<Response>
<Pause length="10" />
<Say>pausing</Say>
<Pause length="10" />
</Response>
and
<?xml version="1.0" encoding="utf-8"?>