Added the rest of the test.

This commit is contained in:
Winston Li 2015-01-11 16:01:56 +00:00
parent a276b7c806
commit cd7877e02e

View file

@ -99,13 +99,16 @@ public class WLGitBridgeIntegrationTest {
wlgb.run();
folder.create();
File git = folder.newFolder();
Git.cloneRepository()
Git base = Git.cloneRepository()
.setURI("http://127.0.0.1:33859/testproj.git")
.setDirectory(git)
.call()
.close();
wlgb.stop();
.call();
assertTrue(FileUtil.gitDirectoriesAreEqual(getResource("/canPullAModifiedTexFile/base/testproj"), git.toPath()));
server.setState(states.get("canPullAModifiedTexFile").get("withModifiedTexFile"));
base.pull().call();
base.close();
wlgb.stop();
assertTrue(FileUtil.gitDirectoriesAreEqual(getResource("/canPullAModifiedTexFile/withModifiedTexFile/testproj"), git.toPath()));
}
private String makeConfigFile(int port, int apiPort) throws IOException {