@Test
public void testType() throws SimalRepositoryException {
Set<IDoapRepository> repos = project1.getRepositories();
Iterator<IDoapRepository> itr = repos.iterator();
while (itr.hasNext()) {
IDoapRepository repo = itr.next();
if (repo.getURI().contains("cvs")) {
assertTrue("CVS repo is identified as ARCH", !repo.isARCH());
assertTrue("CVS repo is identified as Bazaar", !repo.isBazaar());
assertTrue("CVS repo is identified as BK", !repo.isBK());
assertTrue("CVS repo is not identified as CVS", repo.isCVS());
assertTrue("CVS repo is identified as Darcs", !repo.isDarcs());
assertTrue("CVS repo is identified as Mercurial", !repo.isMercurial());
assertTrue("SVN repo is identified as Git", !repo.isGit());
assertTrue("CVS repo is identified as SVN", !repo.isSVN());
} else if (repo.getURI().contains("svn")) {
assertTrue("SVN repo is identified as ARCH", !repo.isARCH());
assertTrue("CVS repo is identified as Bazaar", !repo.isBazaar());
assertTrue("SVN repo is identified as BK", !repo.isBK());
assertTrue("SVN repo is identified as CVS", !repo.isCVS());
assertTrue("CVS repo is identified as Darcs", !repo.isDarcs());
assertTrue("SVN repo is identified as Git", !repo.isGit());
assertTrue("CVS repo is identified as Mercurial", !repo.isMercurial());
assertTrue("SVN repo is not identified as SVN", repo.isSVN());
}
}
}