[jboss-cvs] JBossAS SVN: r59089 - trunk/testsuite/src/main/org/jboss/test/jbossmx/compliance/objectname
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Dec 18 13:43:28 EST 2006
Author: dimitris at jboss.org
Date: 2006-12-18 13:43:26 -0500 (Mon, 18 Dec 2006)
New Revision: 59089
Modified:
trunk/testsuite/src/main/org/jboss/test/jbossmx/compliance/objectname/MalformedTestCase.java
Log:
JBAS-3615, jdk5 accepts empty objectname key, fixed in jdk6
Modified: trunk/testsuite/src/main/org/jboss/test/jbossmx/compliance/objectname/MalformedTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/jbossmx/compliance/objectname/MalformedTestCase.java 2006-12-18 18:42:42 UTC (rev 59088)
+++ trunk/testsuite/src/main/org/jboss/test/jbossmx/compliance/objectname/MalformedTestCase.java 2006-12-18 18:43:26 UTC (rev 59089)
@@ -1,24 +1,24 @@
/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package org.jboss.test.jbossmx.compliance.objectname;
import junit.framework.Test;
@@ -37,11 +37,12 @@
* <p/>
* This suite has twice as many tests (about 60) as my last
* testcase - and for that it caught one extra bug for me.
- *
- * @author <a href="mailto:trevor at protocool.com">Trevor Squires</a>.
+ *
+ * @author <a href="mailto:trevor at protocool.com">Trevor Squires</a>
+ * @author <a href="mailto:dimitris at jboss.org">Dimitris Andreadis</a>
+ * @version $Revision$
*/
-public class MalformedTestCase
- extends TestSuite
+public class MalformedTestCase extends TestSuite
{
public static final String GOOD_DOMAIN = "domain";
public static final String GOOD_KEY = "key1";
@@ -64,7 +65,7 @@
// pre-cooked name strings dealing with structural malformations
public static final String[] BAD_FULLNAMES = {
"domain:key=val,key=val2", // duplicate key
- "domain:=,foo=bar", // both key and value empty, fails on jdk5, sun-bug #338585
+ "domain:=val,foo=bar", // JBAS-3615, empty key
"domain:key=val,,foo=bar", // missing kvp in middle
"domain:,key=val,foo=bar", // missing kvp at beginning
"domain:key=val,foo=bar,", // missing kvp at end
More information about the jboss-cvs-commits
mailing list