-
-
Save gbeaty/d783bfa9a1e58ac86dee to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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