Created
September 20, 2011 02:12
-
-
Save khannedy/1228151 to your computer and use it in GitHub Desktop.
Contoh Posting Code
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
| Long size = repository.count(); | |
| Group group = new Group(); | |
| group.setName("Administrator"); | |
| controller.processCreate(group); | |
| Assert.assertNotNull(group.getId()); | |
| Assert.assertNotNull(group.getCreatedDate()); | |
| Assert.assertNotNull(group.getLastModifiedDate()); | |
| if (size == repository.count()) { | |
| Assert.fail(); | |
| } | |
| repository.delete(group); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment