Author: echatellier Date: 2012-06-07 14:26:38 +0200 (Thu, 07 Jun 2012) New Revision: 3704 Url: http://forge.codelutin.com/repositories/revision/isis-fish/3704 Log: refs #654 : Test faux, commit d'une liste vide de fichier Modified: branches/4.0.1/src/test/java/fr/ifremer/isisfish/vcs/VCSSVNTest.java Modified: branches/4.0.1/src/test/java/fr/ifremer/isisfish/vcs/VCSSVNTest.java =================================================================== --- branches/4.0.1/src/test/java/fr/ifremer/isisfish/vcs/VCSSVNTest.java 2012-06-07 09:52:22 UTC (rev 3703) +++ branches/4.0.1/src/test/java/fr/ifremer/isisfish/vcs/VCSSVNTest.java 2012-06-07 12:26:38 UTC (rev 3704) @@ -379,23 +379,28 @@ /** * Test of add method, of class VCSSVN. - * @throws VCSException + * + * @throws Exception */ @Test - public void testAdd() throws VCSException { + public void testAdd() throws Exception { // log if (log.isInfoEnabled()) { log.info("testAdd()"); } - List<File> files = new ArrayList<File>(); - String msg = ""; - // checkout a TAG - vcs.checkout(new Version(3, 1, 0), false); + vcs.checkout(null, true); - vcs.add(files, msg); + // now, make a modification, on LOCAL repo + File firstFile = new File(vcs.getLocalRepository() + File.separator + + "scripts" + File.separator + "version.txt"); + FileUtil.writeString(firstFile, "Version 3.2.1"); + + List<File> files = Collections.singletonList(firstFile); + + vcs.add(files, "test commit"); } /**
participants (1)
-
echatellier@users.forge.codelutin.com