Created
July 29, 2012 15:48
-
-
Save cexbrayat/3199641 to your computer and use it in GitHub Desktop.
Blog - Play!, MongoDB et Morphia - AppMongoTest.java
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 models.App; | |
import org.junit.Test; | |
import java.util.List; | |
public class AppMongoTest extends MongoTest { | |
@Test | |
public void saveNewApp() { | |
App app = new App(); | |
app.name = "camel-ref"; | |
app.save(); | |
List<App> apps = App.findAll(); | |
assertEquals(1, apps.size()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Gist for a blog post