PageRenderTime 24ms CodeModel.GetById 12ms app.highlight 9ms RepoModel.GetById 1ms app.codeStats 0ms

/bundles/plugins-trunk/RubyPlugin/src/org/jedit/ruby/test/TestYamlParser.java

#
Java | 155 lines | 128 code | 5 blank | 22 comment | 0 complexity | 47a4b536d4e2d8367d94152575a95e06 MD5 | raw file
  1/*
  2 * TestYamlParser.java -
  3 *
  4 * Copyright 2005 Robert McKinnon
  5 *
  6 * This program is free software; you can redistribute it and/or
  7 * modify it under the terms of the GNU General Public License
  8 * as published by the Free Software Foundation; either version 2
  9 * of the License, or any later version.
 10 *
 11 * This program is distributed in the hope that it will be useful,
 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 14 * GNU General Public License for more details.
 15 *
 16 * You should have received a copy of the GNU General Public License
 17 * along with this program; if not, write to the Free Software
 18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 19 */
 20package org.jedit.ruby.test;
 21
 22import junit.framework.TestCase;
 23
 24import java.io.FileInputStream;
 25import java.io.IOException;
 26import java.util.jar.JarInputStream;
 27import java.util.jar.JarEntry;
 28import java.net.URL;
 29
 30/**
 31 * @author robmckinnon at users.sourceforge.net
 32 */
 33public final class TestYamlParser extends TestCase {
 34
 35    public final void testClassParsing() {
 36        assertTrue(true);
 37    }
 38
 39    private static final String objectClass = "--- !ruby/object:RI::ClassDescription \n" +
 40            "attributes: []\n" +
 41            "class_methods: \n" +
 42            "  - !ruby/object:RI::MethodDescription \n" +
 43            "    name: new\n" +
 44            "comment: \n" +
 45            "  - !ruby/struct:SM::Flow::P \n" +
 46            "    body: \"<tt>Object</tt> is the parent class of all classes in Ruby. Its methods are\n" +
 47            "      therefore available to all objects unless explicitly overridden.\"\n" +
 48            "  - !ruby/struct:SM::Flow::P \n" +
 49            "    body: \"<tt>Object</tt> mixes in the <tt>Kernel</tt> module, making the built-in kernel\n" +
 50            "      functions globally accessible. Although the instance methods of <tt>Object</tt>\n" +
 51            "      are defined by the <tt>Kernel</tt> module, we have chosen to document them here\n" +
 52            "      for clarity.\"\n" +
 53            "  - !ruby/struct:SM::Flow::P \n" +
 54            "    body: \"In the descriptions of Object's methods, the parameter <em>symbol</em> refers to\n" +
 55            "      a symbol, which is either a quoted string or a <tt>Symbol</tt> (such as\n" +
 56            "      <tt>:name</tt>).\"\n" +
 57            "constants: []\n" +
 58            "full_name: Object\n" +
 59            "includes: \n" +
 60            "  - !ruby/object:RI::IncludedModule \n" +
 61            "    name: Kernel\n" +
 62            "instance_methods: \n" +
 63            "  - !ruby/object:RI::MethodDescription \n" +
 64            "    name: \"==\"\n" +
 65            "  - !ruby/object:RI::MethodDescription \n" +
 66            "    name: \"===\"\n" +
 67            "  - !ruby/object:RI::MethodDescription \n" +
 68            "    name: \"=~\"\n" +
 69            "  - !ruby/object:RI::MethodDescription \n" +
 70            "    name: \"__id__\"\n" +
 71            "  - !ruby/object:RI::MethodDescription \n" +
 72            "    name: \"__send__\"\n" +
 73            "  - !ruby/object:RI::MethodDescription \n" +
 74            "    name: class\n" +
 75            "  - !ruby/object:RI::MethodDescription \n" +
 76            "    name: clone\n" +
 77            "  - !ruby/object:RI::MethodDescription \n" +
 78            "    name: display\n" +
 79            "  - !ruby/object:RI::MethodDescription \n" +
 80            "    name: dup\n" +
 81            "  - !ruby/object:RI::MethodDescription \n" +
 82            "    name: \"eql?\"\n" +
 83            "  - !ruby/object:RI::MethodDescription \n" +
 84            "    name: \"equal?\"\n" +
 85            "  - !ruby/object:RI::MethodDescription \n" +
 86            "    name: extend\n" +
 87            "  - !ruby/object:RI::MethodDescription \n" +
 88            "    name: freeze\n" +
 89            "  - !ruby/object:RI::MethodDescription \n" +
 90            "    name: \"frozen?\"\n" +
 91            "  - !ruby/object:RI::MethodDescription \n" +
 92            "    name: hash\n" +
 93            "  - !ruby/object:RI::MethodDescription \n" +
 94            "    name: id\n" +
 95            "  - !ruby/object:RI::MethodDescription \n" +
 96            "    name: initialize_copy\n" +
 97            "  - !ruby/object:RI::MethodDescription \n" +
 98            "    name: inspect\n" +
 99            "  - !ruby/object:RI::MethodDescription \n" +
100            "    name: instance_eval\n" +
101            "  - !ruby/object:RI::MethodDescription \n" +
102            "    name: \"instance_of?\"\n" +
103            "  - !ruby/object:RI::MethodDescription \n" +
104            "    name: instance_variable_get\n" +
105            "  - !ruby/object:RI::MethodDescription \n" +
106            "    name: instance_variable_set\n" +
107            "  - !ruby/object:RI::MethodDescription \n" +
108            "    name: instance_variables\n" +
109            "  - !ruby/object:RI::MethodDescription \n" +
110            "    name: \"is_a?\"\n" +
111            "  - !ruby/object:RI::MethodDescription \n" +
112            "    name: \"kind_of?\"\n" +
113            "  - !ruby/object:RI::MethodDescription \n" +
114            "    name: method\n" +
115            "  - !ruby/object:RI::MethodDescription \n" +
116            "    name: methods\n" +
117            "  - !ruby/object:RI::MethodDescription \n" +
118            "    name: \"nil?\"\n" +
119            "  - !ruby/object:RI::MethodDescription \n" +
120            "    name: object_id\n" +
121            "  - !ruby/object:RI::MethodDescription \n" +
122            "    name: private_methods\n" +
123            "  - !ruby/object:RI::MethodDescription \n" +
124            "    name: protected_methods\n" +
125            "  - !ruby/object:RI::MethodDescription \n" +
126            "    name: public_methods\n" +
127            "  - !ruby/object:RI::MethodDescription \n" +
128            "    name: remove_instance_variable\n" +
129            "  - !ruby/object:RI::MethodDescription \n" +
130            "    name: \"respond_to?\"\n" +
131            "  - !ruby/object:RI::MethodDescription \n" +
132            "    name: send\n" +
133            "  - !ruby/object:RI::MethodDescription \n" +
134            "    name: singleton_method_added\n" +
135            "  - !ruby/object:RI::MethodDescription \n" +
136            "    name: singleton_method_removed\n" +
137            "  - !ruby/object:RI::MethodDescription \n" +
138            "    name: singleton_method_undefined\n" +
139            "  - !ruby/object:RI::MethodDescription \n" +
140            "    name: singleton_methods\n" +
141            "  - !ruby/object:RI::MethodDescription \n" +
142            "    name: taint\n" +
143            "  - !ruby/object:RI::MethodDescription \n" +
144            "    name: \"tainted?\"\n" +
145            "  - !ruby/object:RI::MethodDescription \n" +
146            "    name: to_a\n" +
147            "  - !ruby/object:RI::MethodDescription \n" +
148            "    name: to_s\n" +
149            "  - !ruby/object:RI::MethodDescription \n" +
150            "    name: type\n" +
151            "  - !ruby/object:RI::MethodDescription \n" +
152            "    name: untaint\n" +
153            "name: Object\n" +
154            "superclass: ";
155}