assertNull(pushApplicationService.findByPushApplicationID(uuid));
}
@Test
public void findByPushApplicationIDForDeveloper() {
PushApplication pa = new PushApplication();
pa.setName("EJB Container");
final String uuid = UUID.randomUUID().toString();
pa.setPushApplicationID(uuid);
pa.setDeveloper("admin");
pushApplicationService.addPushApplication(pa);
PushApplication queried = pushApplicationService.findByPushApplicationIDForDeveloper(uuid, "admin");
assertNotNull(queried);
assertEquals(uuid, queried.getPushApplicationID());
assertNull(pushApplicationService.findByPushApplicationIDForDeveloper(uuid, "admin2"));
assertNull(pushApplicationService.findByPushApplicationIDForDeveloper("123-3421", "admin"));
}