Search in sources :

Example 1 with de.tum.in.www1.artemis.service

use of de.tum.in.www1.artemis.service in project ArTEMiS by ls1intum.

the class GitServiceIntTest method testListFiles.

@Test
public void testListFiles() throws IOException, GitAPIException {
    Participation participation = new Participation();
    participation.setRepositoryUrl(remoteTestRepo);
    Repository repo = gitService.getOrCheckoutRepository(participation);
    Collection<de.tum.in.www1.artemis.domain.File> files = gitService.listFiles(repo);
    assertThat(files.size()).isGreaterThan(0);
    gitService.deleteLocalRepository(repo);
}
Also used : Participation(de.tum.in.www1.artemis.domain.Participation) Repository(de.tum.in.www1.artemis.domain.Repository) File(java.io.File) Test(org.junit.Test) SpringBootTest(org.springframework.boot.test.context.SpringBootTest)

Aggregations

Participation (de.tum.in.www1.artemis.domain.Participation)1 Repository (de.tum.in.www1.artemis.domain.Repository)1 File (java.io.File)1 Test (org.junit.Test)1 SpringBootTest (org.springframework.boot.test.context.SpringBootTest)1