| 137 | } |
| 138 | |
| 139 | void TestSvnImport::validateImport( const QString& repourl, QTemporaryDir& checkoutdir, const QString& origcontent ) |
| 140 | { |
| 141 | VcsLocation reposLoc; |
| 142 | reposLoc.setRepositoryServer( repourl ); |
| 143 | VcsJob* job = vcs->createWorkingCopy( reposLoc, QUrl::fromLocalFile(checkoutdir.path()) ); |
| 144 | validatingExecJob(job); |
| 145 | |
| 146 | QFile newfile( checkoutdir.path() + "/sample.file" ); |
| 147 | QVERIFY(newfile.exists()); |
| 148 | QVERIFY(newfile.open(QIODevice::ReadOnly)); |
| 149 | QCOMPARE(QString::fromUtf8( newfile.readAll() ), origcontent); |
| 150 | } |
| 151 | |
| 152 | QTEST_MAIN(TestSvnImport) |
| 153 |
nothing calls this directly
no test coverage detected