Return-Path: Delivered-To: apmail-incubator-jackrabbit-commits-archive@www.apache.org Received: (qmail 3248 invoked from network); 6 Apr 2005 14:51:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Apr 2005 14:51:20 -0000 Received: (qmail 23881 invoked by uid 500); 6 Apr 2005 14:51:19 -0000 Mailing-List: contact jackrabbit-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jackrabbit-dev@incubator.apache.org Delivered-To: mailing list jackrabbit-commits@incubator.apache.org Received: (qmail 23860 invoked by uid 500); 6 Apr 2005 14:51:19 -0000 Delivered-To: apmail-incubator-jackrabbit-cvs@incubator.apache.org Received: (qmail 23857 invoked by uid 99); 6 Apr 2005 14:51:19 -0000 X-ASF-Spam-Status: No, hits=-9.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from minotaur.apache.org (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Wed, 06 Apr 2005 07:51:17 -0700 Received: (qmail 3208 invoked by uid 65534); 6 Apr 2005 14:51:16 -0000 Message-ID: <20050406145116.3206.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Mailer: svnmailer-1.0.0-dev Date: Wed, 06 Apr 2005 14:51:16 -0000 Subject: svn commit: r160300 - incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/nodetype/CanSetPropertyNameTest.java incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/nodetype/CanSetPropertyPathTest.java To: jackrabbit-cvs@incubator.apache.org From: stefan@apache.org X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: stefan Date: Wed Apr 6 07:51:15 2005 New Revision: 160300 URL: http://svn.apache.org/viewcvs?view=3Drev&rev=3D160300 Log: fixed incorrect assertions in testcases Modified: incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/node= type/CanSetPropertyNameTest.java incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/node= type/CanSetPropertyPathTest.java Modified: incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/ap= i/nodetype/CanSetPropertyNameTest.java URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/src/test/org/= apache/jackrabbit/test/api/nodetype/CanSetPropertyNameTest.java?view=3Ddiff= &r1=3D160299&r2=3D160300 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/node= type/CanSetPropertyNameTest.java (original) +++ incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/node= type/CanSetPropertyNameTest.java Wed Apr 6 07:51:15 2005 @@ -130,8 +130,8 @@ nodeType.canSetProperty(propDef.getName(), booleanValue)); =20 Value nameValue =3D NodeTypeUtil.getValueOfType(PropertyType.NAME); - assertFalse("canSetProperty(String propertyName, Value value) must= return " + - "false if the property is of type Name and value is a Name= Value", + assertTrue("canSetProperty(String propertyName, Value value) must = return " + + "true if the property is of type Name and value is a NameV= alue", nodeType.canSetProperty(propDef.getName(), nameValue)); =20 Value namePathValue =3D PathValue.valueOf("abc"); @@ -215,13 +215,13 @@ =20 Value booleanValue =3D NodeTypeUtil.getValueOfType(PropertyType.BO= OLEAN); Value booleanValues[] =3D {booleanValue}; - assertTrue("canSetProperty(String propertyName, Value[] values) mu= st return " + - "true if the property is of type Name and values are of ty= pe BooleanValue", + assertFalse("canSetProperty(String propertyName, Value[] values) m= ust return " + + "false if the property is of type Name and values are of t= ype BooleanValue", nodeType.canSetProperty(propDef.getName(), booleanValues)); =20 Value nameValues[] =3D {nameValue}; - assertFalse("canSetProperty(String propertyName, Value[] values) m= ust return " + - "false if the property is of type Name and values are of t= ype NameValue", + assertTrue("canSetProperty(String propertyName, Value[] values) mu= st return " + + "true if the property is of type Name and values are of ty= pe NameValue", nodeType.canSetProperty(propDef.getName(), nameValues)); =20 Value namePathValue =3D PathValue.valueOf("abc"); Modified: incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/ap= i/nodetype/CanSetPropertyPathTest.java URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/src/test/org/= apache/jackrabbit/test/api/nodetype/CanSetPropertyPathTest.java?view=3Ddiff= &r1=3D160299&r2=3D160300 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/node= type/CanSetPropertyPathTest.java (original) +++ incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/node= type/CanSetPropertyPathTest.java Wed Apr 6 07:51:15 2005 @@ -130,21 +130,19 @@ nodeType.canSetProperty(propDef.getName(), booleanValue)); =20 Value pathValue =3D NodeTypeUtil.getValueOfType(PropertyType.NAME); - assertFalse("canSetProperty(String propertyName, Value value) must= return " + - "false if the property is of type Path and value is a Name= Value", + assertTrue("canSetProperty(String propertyName, Value value) must = return " + + "true if the property is of type Path and value is a NameV= alue", nodeType.canSetProperty(propDef.getName(), pathValue)); =20 - Value pathPathValue =3D PathValue.valueOf("abc"); + Value relPathValue =3D PathValue.valueOf("abc"); + assertTrue("canSetProperty(String propertyName, Value value) must = return " + + "true if the property is of type Path and value is a PathV= alue", + nodeType.canSetProperty(propDef.getName(), relPathValue)); + + Value absPathValue =3D PathValue.valueOf("/abc"); assertTrue("canSetProperty(String propertyName, Value value) must = return " + - "true if the property is of type Path and value is a PathV= alue " + - "if Path is relative, is one element long and has no index= ", - nodeType.canSetProperty(propDef.getName(), pathPathValue)); - - Value noPathPathValue =3D PathValue.valueOf("/abc"); - assertFalse("canSetProperty(String propertyName, Value value) must= return " + - "false if the property is of type Path and value is a Path= Value " + - "if Path is not relative, is more than one element long or= has an index", - nodeType.canSetProperty(propDef.getName(), noPathPathValue= )); + "true if the property is of type Path and value is a PathV= alue", + nodeType.canSetProperty(propDef.getName(), absPathValue)); } =20 /** @@ -215,8 +213,8 @@ =20 Value booleanValue =3D NodeTypeUtil.getValueOfType(PropertyType.BO= OLEAN); Value booleanValues[] =3D {booleanValue}; - assertTrue("canSetProperty(String propertyName, Value[] values) mu= st return " + - "true if the property is of type Path and values are of ty= pe BooleanValue", + assertFalse("canSetProperty(String propertyName, Value[] values) m= ust return " + + "false if the property is of type Path and values are of t= ype BooleanValue", nodeType.canSetProperty(propDef.getName(), booleanValues)); =20 Value nameValue =3D NodeTypeUtil.getValueOfType(PropertyType.NAME); @@ -226,8 +224,8 @@ nodeType.canSetProperty(propDef.getName(), nameValues)); =20 Value pathValues[] =3D {pathValue, pathValue}; - assertFalse("canSetProperty(String propertyName, Value[] values) m= ust return " + - "false if the property is of type Path and values are of t= ype NameValue", + assertTrue("canSetProperty(String propertyName, Value[] values) mu= st return " + + "true if the property is of type Path and values are of ty= pe PathValue", nodeType.canSetProperty(propDef.getName(), pathValues)); } =20