@Test public void testAddNewGroup() throws Exception { Group g = Group.create(testName.getMethodName(), testName.getMethodName() + "Title"); FedoraGroupDao dao = new FedoraGroupDao(); dao.setTransaction(tx); dao.addNewGroup(g, support.getTestUser(), testName.getMethodName()); assertEquals(UserUtil.toGroupPid(testName.getMethodName()), g.getName()); String pid = g.getName(); assertTrue(tx.getRemoteStorage().exist(pid)); dao.addNewGroup(g, support.getTestUser(), testName.getMethodName()); assertNotEquals(UserUtil.toGroupPid(testName.getMethodName()), g.getName()); pid = g.getName(); assertTrue(tx.getRemoteStorage().exist(pid)); }
public String addNewGroup(Group group, String owner, String logMessage) { return addGroup(group, true, owner, logMessage); }
FedoraGroupDao extends FedoraDao { public String addNewGroup(Group group, String owner, String logMessage) { return addGroup(group, true, owner, logMessage); } }
FedoraGroupDao extends FedoraDao { public String addNewGroup(Group group, String owner, String logMessage) { return addGroup(group, true, owner, logMessage); } FedoraGroupDao(); }
FedoraGroupDao extends FedoraDao { public String addNewGroup(Group group, String owner, String logMessage) { return addGroup(group, true, owner, logMessage); } FedoraGroupDao(); String addNewGroup(Group group, String owner, String logMessage); String addGroup(Group group, String owner, String logMessage); }
FedoraGroupDao extends FedoraDao { public String addNewGroup(Group group, String owner, String logMessage) { return addGroup(group, true, owner, logMessage); } FedoraGroupDao(); String addNewGroup(Group group, String owner, String logMessage); String addGroup(Group group, String owner, String logMessage); static final String METAMODEL_ID; static final String PID_PREFIX; }