@Test public void testprocessNodeBeginPage() throws Exception { DefaultTreeEventHandler labelHandler = new DomsLabelEnricherTreeEventHandler(fedora); NodeBeginsParsingEvent page = new NodeBeginsParsingEvent("blabla/mypage"); labelHandler.handleNodeBegin(page); String currentNodePid = page.getLocation(); verify(fedora).modifyObjectLabel(currentNodePid, "batch-" + "mypage", NodeEnricher.COMMENT); verifyNoMoreInteractions(fedora); }
/** * Convert the event to a dc identifier * * @param event the event * @return the dc identifier */ private String getDCidentifier(NodeBeginsParsingEvent event) { String dir = event.getName(); return "path:" + dir; }