Skip to content

Instantly share code, notes, and snippets.

@khannedy
Created September 20, 2011 02:12
Show Gist options
  • Select an option

  • Save khannedy/1228151 to your computer and use it in GitHub Desktop.

Select an option

Save khannedy/1228151 to your computer and use it in GitHub Desktop.
Contoh Posting Code
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