Author: brane
Date: Wed Nov 27 11:13:29 2013
New Revision: 1545995
URL: http://svn.apache.org/r1545995
Log:
[in subversion/bindings/javahl]
* tests/org/apache/subversion/javahl/SVNRemoteTests.java
(SVNRemoteTests.testEditorSetDirProps): Add a prop with a binary value.
Modified:
subversion/trunk/subversion/bindings/javahl/tests/org/apache/subversion/javahl/SVNRemoteTests.java
Modified:
subversion/trunk/subversion/bindings/javahl/tests/org/apache/subversion/javahl/SVNRemoteTests.java
URL:
http://svn.apache.org/viewvc/subversion/trunk/subversion/bindings/javahl/tests/org/apache/subversion/javahl/SVNRemoteTests.java?rev=1545995&r1=1545994&r2=1545995&view=diff
==============================================================================
---
subversion/trunk/subversion/bindings/javahl/tests/org/apache/subversion/javahl/SVNRemoteTests.java
(original)
+++
subversion/trunk/subversion/bindings/javahl/tests/org/apache/subversion/javahl/SVNRemoteTests.java
Wed Nov 27 11:13:29 2013
@@ -670,14 +670,17 @@ public class SVNRemoteTests extends SVNT
ISVNRemote session = getSession();
byte[] ignoreval = "*.pyc\n.gitignore\n".getBytes(UTF8);
+ byte[] binaryval = new byte[]{(byte)0, (byte)13, (byte)255, (byte)8,
+ (byte)127, (byte)128, (byte)129};
HashMap<String, byte[]> props = new HashMap<String, byte[]>();
props.put("svn:ignore", ignoreval);
+ props.put("binaryprop", binaryval);
CommitContext cc =
(cb != null
- ? new CommitContext(session, "Add svn:ignore",
+ ? new CommitContext(session, "Add svn:ignore and binaryprop",
cb.getBase, cb.getProps, cb.getKind)
- : new CommitContext(session, "Add svn:ignore"));
+ : new CommitContext(session, "Add svn:ignore and binaryprop"));
try {
cc.editor.alterDirectory("", 1, null, props);
cc.editor.complete();
@@ -692,6 +695,11 @@ public class SVNRemoteTests extends SVNT
"svn:ignore",
Revision.HEAD,
Revision.HEAD)));
+ assertTrue(Arrays.equals(binaryval,
+ client.propertyGet(session.getSessionUrl(),
+ "binaryprop",
+ Revision.HEAD,
+ Revision.HEAD)));
}
public void testEditorSetDirProps() throws Exception