/** * Git can execute simple git command. * * @throws Exception If something is wrong */ @Test @org.junit.Ignore public void clonesSimpleGitRepository() throws Exception { final File key = this.temp.newFile(); FileUtils.writeStringToFile(key, ""); final File folder = this.temp.newFolder(); final Git git = new Git(key, folder); MatcherAssert.assertThat( git.exec(folder.getParentFile(), "init", this.temp.newFolder().getPath()), Matchers.containsString("Initialized empty Git repository")); }