/** * Test the basic SVNAdmin.create functionality * @throws SubversionException */ public void testCreate() throws SubversionException, IOException { OneTest thisTest = new OneTest(false); assertTrue("repository exists", thisTest.getRepository().exists()); }
/** * Test the basic SVNAdmin.create functionality * @throws SubversionException */ public void testCreate() throws SubversionException, IOException { OneTest thisTest = new OneTest(false); assertTrue("repository exists", thisTest.getRepository().exists()); }
String repoUrl = makeReposUrl(thisTest.getRepository()); final Info2[] infoHolder = new Info2[1]; InfoCallback mycallback = new InfoCallback()
public void testSetRevProp() throws SubversionException, IOException { OneTest thisTest = new OneTest(false); final String MSG = "Initial repository creation"; admin.setRevProp(thisTest.getRepositoryPath(), Revision.getInstance(0), "svn:log", MSG, false, false); PropertyData[] pdata = client.revProperties( makeReposUrl(thisTest.getRepository()), Revision.getInstance(0)); assertNotNull("expect non null rev props"); String logMessage = null; for (int i = 0; i < pdata.length; i++) { if ("svn:log".equals(pdata[i].getName())) { logMessage = pdata[i].getValue(); break; } } assertEquals("expect rev prop change to take effect", MSG, logMessage); } public void testLoadRepo()
/** * constructor for create a copy * @param orig original test * @param append append this to the directory name of the original * test * @throws Exception */ private OneTest(OneTest orig, String append) throws SubversionException, IOException { this.testName = testBaseName + testCounter + append; repository = orig.getRepository(); url = orig.getUrl(); wc = orig.wc.copy(); workingCopy = createInitialWorkingCopy(repository); }
/** * constructor for create a copy * @param orig original test * @param append append this to the directory name of the original * test * @throws Exception */ private OneTest(OneTest orig, String append) throws SubversionException, IOException { this.testName = testBaseName + testCounter + append; repository = orig.getRepository(); url = orig.getUrl(); wc = orig.wc.copy(); workingCopy = createInitialWorkingCopy(repository); }