geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r582041 - in /geronimo/sandbox/gshell/trunk/gshell-core/src/test/java/org/apache/geronimo/gshell/descriptor: ./ CommandSetDescriptorTest.java
Date Fri, 05 Oct 2007 00:17:42 GMT
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



Mime
View raw message