Created
May 21, 2013 07:07
-
-
Save keesun/5618004 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Test | |
public void buildCloneRepository() throws GitAPIException, IOException { | |
// Given | |
Project original = createProject("keesun", "test"); | |
CloneAndFetchTemplate template = createTemplate(original); | |
new GitRepository("keesun", "test").create(); | |
// When | |
Repository repository = template.buildCloneRepository(); | |
// Then | |
assertThat(repository).isNotNull(); | |
assertThat(template.getDirectory()).isNotNull(); | |
String clonePath = "resources/test/repo/git-merging/keesun/test.git"; | |
assertThat(template.getDirectory()).isEqualTo(clonePath); | |
assertThat(new File(clonePath).exists()).isTrue(); | |
assertThat(new File(clonePath + "/.git").exists()).isTrue(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment