001: /*
002: * BEGIN_HEADER - DO NOT EDIT
003: *
004: * The contents of this file are subject to the terms
005: * of the Common Development and Distribution License
006: * (the "License"). You may not use this file except
007: * in compliance with the License.
008: *
009: * You can obtain a copy of the license at
010: * https://open-esb.dev.java.net/public/CDDLv1.0.html.
011: * See the License for the specific language governing
012: * permissions and limitations under the License.
013: *
014: * When distributing Covered Code, include this CDDL
015: * HEADER in each file and include the License file at
016: * https://open-esb.dev.java.net/public/CDDLv1.0.html.
017: * If applicable add the following below this CDDL HEADER,
018: * with the fields enclosed by brackets "[]" replaced with
019: * your own identifying information: Portions Copyright
020: * [year] [name of copyright owner]
021: */
022:
023: /*
024: * @(#)TestWSDLFileReader.java
025: * Copyright 2004-2007 Sun Microsystems, Inc. All Rights Reserved.
026: *
027: * END_HEADER - DO NOT EDIT
028: */
029: package com.sun.jbi.binding.file.util;
030:
031: import com.sun.jbi.binding.file.FileBindingResolver;
032:
033: import junit.framework.Test;
034: import junit.framework.TestCase;
035: import junit.framework.TestSuite;
036:
037: /**
038: * DOCUMENT ME!
039: *
040: * @author Sun Microsystems, Inc.
041: */
042: public class TestWSDLFileReader extends TestCase {
043: /**
044: * DOCUMENT ME!
045: */
046: private WSDLFileReader mWSDLFileReader;
047:
048: /**
049: * DOCUMENT ME!
050: */
051: private WSDLFileValidator mValidator;
052:
053: /**
054: * Creates a new TestWSDLFileReader object.
055: *
056: * @param testName
057: */
058: public TestWSDLFileReader(java.lang.String testName) {
059: super (testName);
060: }
061:
062: /**
063: *
064: *
065: * @return NOT YET DOCUMENTED
066: */
067: public static Test suite() {
068: TestSuite suite = new TestSuite(TestWSDLFileReader.class);
069:
070: return suite;
071: }
072:
073: /**
074: * Sets up tests.
075: */
076: public void setUp() {
077: /*
078: mWSDLFileReader = new WSDLFileReader(new FileBindingResolver());
079: System.out.println("testInit");
080:
081: String srcroot = System.getProperty("junit.srcroot");
082:
083: try
084: {
085: mValidator =
086: new WSDLFileValidator(srcroot
087: + "/binding/file/config/endpoints.wsdl");
088: mValidator.validate();
089: mWSDLFileReader.init(mValidator.getDocument());
090: }
091: catch (Exception jbiException)
092: {
093: jbiException.printStackTrace();
094: fail("Cannot Init Config Reader");
095: }
096: */
097: }
098:
099: /**
100: * Test of getBean method, of class
101: * com.sun.jbi.binding.file.util.WSDLFileReader.
102: */
103: public void testGetBean() {
104: // TODO add your test code below by replacing the default call to fail.
105: }
106:
107: /**
108: * Test of getEndpoint method, of class
109: * com.sun.jbi.binding.file.util.WSDLFileReader.
110: */
111: public void testGetEndpoint() {
112: // TODO add your test code below by replacing the default call to fail.
113: }
114:
115: /**
116: * Test of getEndpointCount method, of class
117: * com.sun.jbi.binding.file.util.WSDLFileReader.
118: */
119: public void testGetEndpointCount() {
120: // TODO add your test code below by replacing the default call to fail.
121: }
122:
123: /**
124: * Test of getError method, of class
125: * com.sun.jbi.binding.file.util.WSDLFileReader.
126: */
127: public void testGetError() {
128: // TODO add your test code below by replacing the default call to fail.
129: }
130:
131: /**
132: * Test of getException method, of class
133: * com.sun.jbi.binding.file.util.WSDLFileReader.
134: */
135: public void testGetException() {
136: // TODO add your test code below by replacing the default call to fail.
137: }
138:
139: /**
140: * Test of getWarning method, of class
141: * com.sun.jbi.binding.file.util.WSDLFileReader.
142: */
143: public void testGetWarning() {
144: // TODO add your test code below by replacing the default call to fail.
145: }
146:
147: /**
148: * Test of init method, of class
149: * com.sun.jbi.binding.file.util.WSDLFileReader.
150: */
151: public void testInit() {
152: // TODO add your test code below by replacing the default call to fail.
153: }
154:
155: /**
156: * Test of isValid method, of class
157: * com.sun.jbi.binding.file.util.WSDLFileReader.
158: */
159: public void testIsValid() {
160: // TODO add your test code below by replacing the default call to fail.
161: }
162:
163: // TODO add test methods here, they have to start with 'test' name.
164: // for example:
165: // public void testHello() {}
166: }
|