Package org.evolizer.versioncontrol.cvs.model.entities

Examples of org.evolizer.versioncontrol.cvs.model.entities.CommitterRole


        assertEquals("The revision transaction is not the one expected", toAnalyze.getId(), sRev.getChangeSet().getId());
        assertEquals("The test transaction does not contain the test revision", sRev.getId(), toAnalyze.getInvolvedRevisions().iterator().next().getId());
        assertEquals("The test revision's author is not what expected", sRev.getAuthor().getId(), toAnalyze.getInvolvedRevisions().iterator().next().getAuthor().getId());

        Person p = sSession.uniqueResult("from Person as p where p.firstName ='" + sAuthor.getFirstName() + "'", Person.class);
        CommitterRole r = (CommitterRole) p.getRoles().iterator().next();
        SVNVersionedFile f = sSession.uniqueResult("from SVNVersionedFile where path= '/rootDir/dir/file.txt'", SVNVersionedFile.class);
        assertEquals(toAnalyze.getInvolvedRevisions().iterator().next().getId(), f.getRevisions().iterator().next().getId());
        assertEquals("The saved revision was not associated to its saved author", r.getArtifacts().iterator().next(), toAnalyze.getInvolvedRevisions().iterator().next());
    }
View Full Code Here


                person.setEmail(authorEmail);
            }
            if (authorName != null) {
                person.setFirstName(authorName);
            }
            CommitterRole role = new CommitterRole();
            person.addRole(role);
            fSession.saveObject(role);
            if (authorName != null) {
                fPersons.put(authorName, person);
            } else {
View Full Code Here

                Person person = new Person();
                person.setEmail(author);

                e = new P();
                e.fPerson = person;
                e.fRole = new CommitterRole();

                fPersonEmails.put(author, e);
            }

            e.fRole.addRevision(revision);
            revision.setAuthor(e.fPerson);
            revision.setAuthorNickName(author); // MW: facilitates e.g. bug linking
        } else { // We guess that author is a nickname

            if (fPersonNickNames.containsKey(author)) {
                e = fPersonNickNames.get(author);
            } else {
                Person person = new Person();
                person.addNickName(author);

                e = new P();
                e.fPerson = person;
                e.fRole = new CommitterRole();
                e.fPerson.addRole(e.fRole);
               
                fPersonNickNames.put(author, e);
            }
View Full Code Here

                person.setEmail(authorName);
            }
            // TODO should we be more precise?
            person.setFirstName(authorName);

            CommitterRole role = new CommitterRole();
            person.addRole(role);
            fCurrPerson = person;
            fCurrRole = role;
            fPersons.put(authorName, person);
            LOGGER.debug(NLS.bind(MapperMessages.SVNModelMapper_createdPerson, name));
View Full Code Here

TOP

Related Classes of org.evolizer.versioncontrol.cvs.model.entities.CommitterRole

Copyright © 2018 www.massapicom. 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.