Revision: 1436
http://gatewiki.svn.sourceforge.net/gatewiki/?rev=1436&view=revAuthor: ian_roberts
Date: 2009-07-02 11:09:57 +0000 (Thu, 02 Jul 2009)
Log Message:
-----------
Fixed the SvnServiceTests by registering the test wiki sandbox with the global
sandboxManager, so it can be found by the SvnService.
Modified Paths:
--------------
trunk/cow/test/integration/SvnServiceTests.groovy
Modified: trunk/cow/test/integration/SvnServiceTests.groovy
===================================================================
--- trunk/cow/test/integration/SvnServiceTests.groovy 2009-07-02 10:25:31 UTC (rev 1435)
+++ trunk/cow/test/integration/SvnServiceTests.groovy 2009-07-02 11:09:57 UTC (rev 1436)
@@ -21,6 +21,9 @@
/** The SVN service, against which we will run tests */
def svnService
+ /** The sandbox manager, which our test wiki must be registered with */
+ def sandboxManager
+
/**
* Name of a temporary directory to contain all repositories and working
* copies
@@ -87,8 +90,7 @@
repositoryDir = new File(tempDir, repositoryDirName)
repositoryDir.delete()
repositoryDir.mkdir()
- SandboxManager sbManager = new SandboxManager()
- SVNURL reposURL = sbManager.createLocalRepository(repositoryDir)
+ SVNURL reposURL = sandboxManager.createLocalRepository(repositoryDir)
// Create two working copy directories and checkout the repository in to
// them
@@ -126,6 +128,8 @@
log.error("SVN update test wiki has errors: ${testWiki.properties}")
}
+ // register the test wiki with the sandbox manager
+ sandboxManager.addSandbox(new File(testWiki.path), new WikiAuthenticationManager(testWiki.id))
}
/**
@@ -165,6 +169,8 @@
/** Remove the test data */
void tearDown() {
+ // unregister from the sandboxManager
+ sandboxManager.forgetSandbox(new File(testWiki.path))
// Delete test wiki. NB Quartz isn't running, so we needn't worry about
// the test wiki dependencies having been serialized.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
------------------------------------------------------------------------------
_______________________________________________
gatewiki-commits mailing list
gatewiki-commits@...
https://lists.sourceforge.net/lists/listinfo/gatewiki-commits