You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by jd...@apache.org on 2007/10/05 02:17:42 UTC

svn commit: r582041 - in /geronimo/sandbox/gshell/trunk/gshell-core/src/test/java/org/apache/geronimo/gshell/descriptor: ./ CommandSetDescriptorTest.java

Author: jdillon
Date: Thu Oct  4 17:17:41 2007
New Revision: 582041

URL: http://svn.apache.org/viewvc?rev=582041&view=rev
Log:
Tests for new descriptor

Added:
    geronimo/sandbox/gshell/trunk/gshell-core/src/test/java/org/apache/geronimo/gshell/descriptor/
    geronimo/sandbox/gshell/trunk/gshell-core/src/test/java/org/apache/geronimo/gshell/descriptor/CommandSetDescriptorTest.java   (with props)

Added: geronimo/sandbox/gshell/trunk/gshell-core/src/test/java/org/apache/geronimo/gshell/descriptor/CommandSetDescriptorTest.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/gshell/trunk/gshell-core/src/test/java/org/apache/geronimo/gshell/descriptor/CommandSetDescriptorTest.java?rev=582041&view=auto
==============================================================================
--- geronimo/sandbox/gshell/trunk/gshell-core/src/test/java/org/apache/geronimo/gshell/descriptor/CommandSetDescriptorTest.java (added)
+++ geronimo/sandbox/gshell/trunk/gshell-core/src/test/java/org/apache/geronimo/gshell/descriptor/CommandSetDescriptorTest.java Thu Oct  4 17:17:41 2007
@@ -0,0 +1,45 @@
+/*
+ * 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.geronimo.gshell.descriptor;
+
+import junit.framework.TestCase;
+
+/**
+ * Tests for the {@link CommandSetDescriptor} class.
+ *
+ * @version $Rev$ $Date$
+ */
+public class CommandSetDescriptorTest
+    extends TestCase
+{
+    public void testToXml() throws Exception {
+        CommandSetDescriptor commands = new CommandSetDescriptor("testing");
+
+        CommandDescriptor command = new CommandDescriptor();
+        command.setId("foo");
+        command.setImplementation("bar");
+
+        commands.addCommand(command);
+
+        String xml = CommandSetDescriptor.toXML(commands);
+
+        System.err.println("XML:\n" + xml);
+    }
+}

Propchange: geronimo/sandbox/gshell/trunk/gshell-core/src/test/java/org/apache/geronimo/gshell/descriptor/CommandSetDescriptorTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/sandbox/gshell/trunk/gshell-core/src/test/java/org/apache/geronimo/gshell/descriptor/CommandSetDescriptorTest.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: geronimo/sandbox/gshell/trunk/gshell-core/src/test/java/org/apache/geronimo/gshell/descriptor/CommandSetDescriptorTest.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain