[jboss-svn-commits] JBL Code SVN: r9442 - labs/jbossrules/trunk/drools-repository/src/test/java/org/drools/scm/svn.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Sun Feb 11 20:58:39 EST 2007
Author: michael.neale at jboss.com
Date: 2007-02-11 20:58:39 -0500 (Sun, 11 Feb 2007)
New Revision: 9442
Modified:
labs/jbossrules/trunk/drools-repository/src/test/java/org/drools/scm/svn/SvnActionFactoryTest.java
Log:
XXX'ed out a failling (and future) test
Modified: labs/jbossrules/trunk/drools-repository/src/test/java/org/drools/scm/svn/SvnActionFactoryTest.java
===================================================================
--- labs/jbossrules/trunk/drools-repository/src/test/java/org/drools/scm/svn/SvnActionFactoryTest.java 2007-02-12 01:57:18 UTC (rev 9441)
+++ labs/jbossrules/trunk/drools-repository/src/test/java/org/drools/scm/svn/SvnActionFactoryTest.java 2007-02-12 01:58:39 UTC (rev 9442)
@@ -616,45 +616,45 @@
assertTrue( list.contains( "folder2" ) );
}
-// public void testHistory() throws Exception {
-// SvnActionFactory svn = new SvnActionFactory( svnUrl,
-// "mrtrout",
-// "drools" );
-//
-// CompositeSvnAction actions = new CompositeSvnAction();
-//
-// ScmAction addFolder = new AddDirectory( "",
-// "folder1" );
-// actions.addScmAction( addFolder );
-// byte[] content = new byte[]{1, 1, 1, 1};
-// ScmAction addFile = new AddFile( "folder1",
-// "file1.dat",
-// content );
-// actions.addScmAction( addFile );
-// svn.execute( actions,
-// "test message" );
-//
-// actions = new CompositeSvnAction();
-// MoveDirectory moveDirectory = new MoveDirectory( "folder1",
-// "folder2",
-// svn.getLatestRevision() );
-// actions.addScmAction( moveDirectory );
-// svn.execute( actions,
-// "test message" );
-//
-// Collection collection = svn.log( new String[] { "" }, 0, -1 );
-// for ( Iterator it = collection.iterator(); it.hasNext(); ) {
-// SVNLogEntry logEntry = ( SVNLogEntry ) it.next();
-// Map map = logEntry.getChangedPaths();
-// Set changePathSet = map.keySet();
-// for ( Iterator it2 = changePathSet.iterator(); it2.hasNext(); ) {
-// SVNLogEntryPath entryPath = ( SVNLogEntryPath ) map.get( it2.next() );
-// System.out.println( entryPath );
-// }
-// }
-//
-// }
+ public void XXXtestHistory() throws Exception {
+ SvnActionFactory svn = new SvnActionFactory( svnUrl,
+ "mrtrout",
+ "drools" );
+ CompositeSvnAction actions = new CompositeSvnAction();
+
+ ScmAction addFolder = new AddDirectory( "",
+ "folder1" );
+ actions.addScmAction( addFolder );
+ byte[] content = new byte[]{1, 1, 1, 1};
+ ScmAction addFile = new AddFile( "folder1",
+ "file1.dat",
+ content );
+ actions.addScmAction( addFile );
+ svn.execute( actions,
+ "test message" );
+
+ actions = new CompositeSvnAction();
+ MoveDirectory moveDirectory = new MoveDirectory( "folder1",
+ "folder2",
+ svn.getLatestRevision() );
+ actions.addScmAction( moveDirectory );
+ svn.execute( actions,
+ "test message" );
+
+ Collection collection = svn.log( new String[] { "" }, 0, -1 );
+ for ( Iterator it = collection.iterator(); it.hasNext(); ) {
+ SVNLogEntry logEntry = ( SVNLogEntry ) it.next();
+ Map map = logEntry.getChangedPaths();
+ Set changePathSet = map.keySet();
+ for ( Iterator it2 = changePathSet.iterator(); it2.hasNext(); ) {
+ SVNLogEntryPath entryPath = ( SVNLogEntryPath ) map.get( it2.next() );
+ System.out.println( entryPath );
+ }
+ }
+
+ }
+
public static void copy(File src,
File dest) throws IOException {
if ( src.isDirectory() ) {
More information about the jboss-svn-commits
mailing list