Last active
January 17, 2018 20:12
-
-
Save rowanl/8caf7b4ef9d57f0bdb486428afce9d3c to your computer and use it in GitHub Desktop.
playframework-kubernetes - Testing a repository that uses Ebean
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
public class CharityRepositoryTest extends WithApplication { | |
private CharityRepository repository; | |
@Before | |
public void setUp() { | |
repository = instanceOf(CharityRepository.class); | |
CallableSql cleanCharityTable = getDefaultServer().createCallableSql("delete from charity"); | |
getDefaultServer().execute(cleanCharityTable); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment