Examples of PathRenamingInstruction


Examples of net.sourceforge.processdash.hier.PathRenamingInstruction

    private void assertRename(String expected, String path, List renames) {
        assertEquals(expected, PathRenamingInstruction.renamePath(renames, path));
    }

    public void testIsRenamingOperation() {
        PathRenamingInstruction r = new PathRenamingInstruction("/Foo", "Bar");
        TimeLogEntry tle = PathRenamer.toTimeLogEntry(r);
        MutableTimeLogEntry m = new MutableTimeLogEntryVO(tle);
        assertTrue(PathRenamer.isRenamingOperation(m));
        m.setPath("null");
        assertFalse(PathRenamer.isRenamingOperation(m));
View Full Code Here

Examples of net.sourceforge.processdash.hier.PathRenamingInstruction

    public static PathRenamingInstruction toInstruction(String path) {
        int pos = path.indexOf('\n');
        String oldPath = path.substring(0, pos);
        String newPath = path.substring(pos + 1);
        return new PathRenamingInstruction(oldPath, newPath);
    }
View Full Code Here

Examples of net.sourceforge.processdash.hier.PathRenamingInstruction

        dirty = true;
        return result;
    }

    protected void processBatchChange(ChangeFlaggedTimeLogEntry mod, boolean addToList) {
        PathRenamingInstruction instr = PathRenamer.toInstruction(mod);
        synchronized (this) {
            if (addToList)
                batchRenames.add(instr);
            processBatchRename(instr);
        }
View Full Code Here

Examples of net.sourceforge.processdash.hier.PathRenamingInstruction

            super(batchRenames.iterator());
            init();
        }
       
        public Object next() {
            PathRenamingInstruction instr = (PathRenamingInstruction) super.next();
            return PathRenamer.toTimeLogEntry(instr);
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.