You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by hw...@apache.org on 2010/03/08 17:20:53 UTC

svn commit: r920383 - /subversion/trunk/subversion/bindings/javahl/tests/org/apache/subversion/javahl/BasicTests.java

Author: hwright
Date: Mon Mar  8 16:20:53 2010
New Revision: 920383

URL: http://svn.apache.org/viewvc?rev=920383&view=rev
Log:
JavaHL: Fix test failures caused by r920366 by introducing a inner LogMessage
class for test usage.

* subversion/bindings/javahl/tests/org/apache/subversion/javahl/BasicTests.java
  (LogMessage): New.

Modified:
    subversion/trunk/subversion/bindings/javahl/tests/org/apache/subversion/javahl/BasicTests.java

Modified: subversion/trunk/subversion/bindings/javahl/tests/org/apache/subversion/javahl/BasicTests.java
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/bindings/javahl/tests/org/apache/subversion/javahl/BasicTests.java?rev=920383&r1=920382&r2=920383&view=diff
==============================================================================
--- subversion/trunk/subversion/bindings/javahl/tests/org/apache/subversion/javahl/BasicTests.java (original)
+++ subversion/trunk/subversion/bindings/javahl/tests/org/apache/subversion/javahl/BasicTests.java Mon Mar  8 16:20:53 2010
@@ -3829,6 +3829,67 @@
         return sb.toString().getBytes();
     }
 
+    protected class LogMessage
+    {
+        private String message;
+
+        private long timeMicros;
+
+        private Date date;
+
+        private long revision;
+
+        private String author;
+
+        private Set<ChangePath> changedPaths;
+
+        LogMessage(Set<ChangePath> cp, long r, String a, long t, String m)
+        {
+            changedPaths = cp;
+            revision = r;
+            author = a;
+            timeMicros = t;
+            date = null;
+            message = m;
+        }
+
+        public String getMessage()
+        {
+            return message;
+        }
+
+        public long getTimeMicros()
+        {
+            return timeMicros;
+        }
+
+        public long getTimeMillis()
+        {
+            return timeMicros / 1000;
+        }
+
+        public Date getDate()
+        {
+            if (date == null)
+               date = new Date(timeMicros / 1000);
+            return date;
+        }
+
+        public long getRevisionNumber()
+        {
+            return revision;
+        }
+
+        public String getAuthor()
+        {
+            return author;
+        }
+
+        public Set<ChangePath> getChangedPaths()
+        {
+            return changedPaths;
+        }
+    }
 
     /* A blame callback implementation. */
     protected class BlameCallbackImpl implements BlameCallback