Skip to content

Instantly share code, notes, and snippets.

@cexbrayat
Created July 29, 2012 15:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cexbrayat/3199641 to your computer and use it in GitHub Desktop.
Save cexbrayat/3199641 to your computer and use it in GitHub Desktop.
Blog - Play!, MongoDB et Morphia - AppMongoTest.java
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());
}
}
@cexbrayat
Copy link
Author

Gist for a blog post

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment