Created
November 13, 2012 15:00
-
-
Save hongsw/4066165 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
package models; | |
생략 | |
public class GuestbookTest { | |
@Before | |
public void setUp() { | |
start(fakeApplication(inMemoryDatabase())); | |
} | |
@Test | |
public void createAndRetrieveGuestbook() { | |
new Guestbook("Bob","[email protected]", | |
"password", "Hello~ Play Framework 2.0." ).save(); | |
Guestbook bob = Guestbook.find.where().eq("email", | |
"[email protected]").findUnique(); | |
assertNotNull(bob); | |
assertEquals("Bob", bob.name); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment