* @param project The project
* @param ref The ref
* @return a pactchsetCreated event
*/
public static PatchsetCreated createPatchsetCreated(String serverName, String project, String ref) {
PatchsetCreated event = new PatchsetCreated();
Change change = new Change();
change.setBranch("branch");
change.setId("Iddaaddaa123456789");
change.setNumber("1000");
Account account = new Account();
account.setEmail("email@domain.com");
account.setName("Name");
change.setOwner(account);
change.setProject(project);
change.setSubject("subject");
change.setUrl("http://gerrit/1000");
event.setChange(change);
PatchSet patch = new PatchSet();
patch.setNumber("1");
patch.setRevision("9999");
patch.setRef(ref);
event.setPatchset(patch);
event.setProvider(new Provider(serverName, "gerrit", "29418", "ssh", "http://gerrit/", "1"));
return event;
}