Skip to content

Instantly share code, notes, and snippets.

@gbeaty
Created February 5, 2013 19:08
Show Gist options
  • Save gbeaty/d783bfa9a1e58ac86dee to your computer and use it in GitHub Desktop.
Save gbeaty/d783bfa9a1e58ac86dee to your computer and use it in GitHub Desktop.
import java.util.Date
import org.specs2.mutable._
import play.api.libs.iteratee._
import net.fwbrasil.activate.ActivateContext
import net.fwbrasil.activate.storage.memory.TransientMemoryStorage
import net.fwbrasil.activate.entity.Entity
object TestContext extends ActivateContext {
lazy val storage = new TransientMemoryStorage
}
import TestContext._
class TestEntity extends Entity {
@transient val enum = Enumerator(1,2,3)
}
class TransientEnumeratorTest extends Specification {
"Transient enumerators" should {
"not break" in transactional {
new TestEntity().enum !== null
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment