You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ws.apache.org by dk...@apache.org on 2014/01/21 19:14:32 UTC

svn commit: r1560124 - in /webservices/xmlschema/trunk/xmlschema-core/src/test/java/org/apache/ws/commons/schema/utils: ./ NamespaceMapTest.java

Author: dkulp
Date: Tue Jan 21 18:14:32 2014
New Revision: 1560124

URL: http://svn.apache.org/r1560124
Log:
[XMLSCHEMA-26] Forgot the testcase
Patch from Dmitry Repchevsky

Added:
    webservices/xmlschema/trunk/xmlschema-core/src/test/java/org/apache/ws/commons/schema/utils/
    webservices/xmlschema/trunk/xmlschema-core/src/test/java/org/apache/ws/commons/schema/utils/NamespaceMapTest.java   (with props)

Added: webservices/xmlschema/trunk/xmlschema-core/src/test/java/org/apache/ws/commons/schema/utils/NamespaceMapTest.java
URL: http://svn.apache.org/viewvc/webservices/xmlschema/trunk/xmlschema-core/src/test/java/org/apache/ws/commons/schema/utils/NamespaceMapTest.java?rev=1560124&view=auto
==============================================================================
--- webservices/xmlschema/trunk/xmlschema-core/src/test/java/org/apache/ws/commons/schema/utils/NamespaceMapTest.java (added)
+++ webservices/xmlschema/trunk/xmlschema-core/src/test/java/org/apache/ws/commons/schema/utils/NamespaceMapTest.java Tue Jan 21 18:14:32 2014
@@ -0,0 +1,37 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.ws.commons.schema.utils;
+
+import org.apache.ws.commons.schema.XmlSchemaSerializer;
+
+import org.junit.Assert;
+import org.junit.Test;
+
+/**
+ * 
+ */
+public class NamespaceMapTest {
+    @Test
+    public void noPrefixNPEtest() throws XmlSchemaSerializer.XmlSchemaSerializerException {
+        NamespaceMap ctx = new NamespaceMap();
+        String namespace = ctx.getNamespaceURI("abc");
+        Assert.assertNotNull("NamespaceMap must not return null, but Constants.NULL_NS_URI", namespace);
+    }
+}

Propchange: webservices/xmlschema/trunk/xmlschema-core/src/test/java/org/apache/ws/commons/schema/utils/NamespaceMapTest.java
------------------------------------------------------------------------------
    svn:eol-style = native