|
Revision 1520, 432 bytes
(checked in by nahi, 4 years ago)
|
removed svn:executable
|
- Property svn:eol-style set to
native
- Property svn:keywords set to
author date id revision
|
| Line | |
|---|
| 1 |
require 'test/unit' |
|---|
| 2 |
require 'wsdl/xmlSchema/parser' |
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
module XSD |
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
class TestXMLSchemaParser < Test::Unit::TestCase |
|---|
| 9 |
def setup |
|---|
| 10 |
@file = File.join(File.dirname(File.expand_path(__FILE__)), 'xmlschema.xml') |
|---|
| 11 |
end |
|---|
| 12 |
|
|---|
| 13 |
def test_wsdl |
|---|
| 14 |
@wsdl = WSDL::XMLSchema::Parser.new.parse(File.open(@file) { |f| f.read }) |
|---|
| 15 |
assert_equal(WSDL::XMLSchema::Schema, @wsdl.class) |
|---|
| 16 |
assert_equal(1, @wsdl.collect_elements.size) |
|---|
| 17 |
end |
|---|
| 18 |
end |
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 |
|
|---|
| 22 |
end |
|---|