Source Code Cross Referenced for AddressingConstantsImplTest.java in  » ESB » celtix-1.0 » org » objectweb » celtix » bus » ws » addressing » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » ESB » celtix 1.0 » org.objectweb.celtix.bus.ws.addressing 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        package org.objectweb.celtix.bus.ws.addressing;
002:
003:        import javax.xml.namespace.QName;
004:
005:        import junit.framework.TestCase;
006:
007:        import org.objectweb.celtix.ws.addressing.AddressingConstants;
008:
009:        public class AddressingConstantsImplTest extends TestCase {
010:            private AddressingConstants constants;
011:
012:            public void setUp() {
013:                constants = new AddressingConstantsImpl();
014:            }
015:
016:            public void testGetNamespaceURI() throws Exception {
017:                assertEquals("unexpected constant",
018:                        "http://www.w3.org/2005/08/addressing", constants
019:                                .getNamespaceURI());
020:            }
021:
022:            public void testGetNamespacePrefix() throws Exception {
023:                assertEquals("unexpected constant", "wsa", constants
024:                        .getNamespacePrefix());
025:            }
026:
027:            public void testGetWSDLNamespaceURI() throws Exception {
028:                assertEquals("unexpected constant",
029:                        "http://www.w3.org/2005/08/addressing/wsdl", constants
030:                                .getWSDLNamespaceURI());
031:            }
032:
033:            public void testGetWSDLNamespacePrefix() throws Exception {
034:                assertEquals("unexpected constant", "wsaw", constants
035:                        .getWSDLNamespacePrefix());
036:            }
037:
038:            public void testGetWSDLExtensibility() throws Exception {
039:                assertEquals("unexpected constant", new QName(
040:                        "http://www.w3.org/2005/08/addressing/wsdl",
041:                        "UsingAddressing"), constants
042:                        .getWSDLExtensibilityQName());
043:            }
044:
045:            public void testGetWSDLActionQName() throws Exception {
046:                assertEquals("unexpected constant", new QName(
047:                        "http://www.w3.org/2005/08/addressing/wsdl", "Action"),
048:                        constants.getWSDLActionQName());
049:            }
050:
051:            public void testGetAnonymousURI() throws Exception {
052:                assertEquals("unexpected constant",
053:                        "http://www.w3.org/2005/08/addressing/anonymous",
054:                        constants.getAnonymousURI());
055:            }
056:
057:            public void testGetNoneURI() throws Exception {
058:                assertEquals("unexpected constant",
059:                        "http://www.w3.org/2005/08/addressing/none", constants
060:                                .getNoneURI());
061:            }
062:
063:            public void testGetFromQName() throws Exception {
064:                assertEquals("unexpected constant", new QName(
065:                        "http://www.w3.org/2005/08/addressing", "From"),
066:                        constants.getFromQName());
067:            }
068:
069:            public void testGetToQName() throws Exception {
070:                assertEquals("unexpected constant", new QName(
071:                        "http://www.w3.org/2005/08/addressing", "To"),
072:                        constants.getToQName());
073:            }
074:
075:            public void testGetReplyToQName() throws Exception {
076:                assertEquals("unexpected constant", new QName(
077:                        "http://www.w3.org/2005/08/addressing", "ReplyTo"),
078:                        constants.getReplyToQName());
079:            }
080:
081:            public void testGetFaultToQName() throws Exception {
082:                assertEquals("unexpected constant", new QName(
083:                        "http://www.w3.org/2005/08/addressing", "FaultTo"),
084:                        constants.getFaultToQName());
085:            }
086:
087:            public void testGetActionQName() throws Exception {
088:                assertEquals("unexpected constant", new QName(
089:                        "http://www.w3.org/2005/08/addressing", "Action"),
090:                        constants.getActionQName());
091:            }
092:
093:            public void testGetMessageIDQName() throws Exception {
094:                assertEquals("unexpected constant", new QName(
095:                        "http://www.w3.org/2005/08/addressing", "MessageID"),
096:                        constants.getMessageIDQName());
097:            }
098:
099:            public void testGetRelationshipReply() throws Exception {
100:                assertEquals("unexpected constant",
101:                        "http://www.w3.org/2005/08/addressing/reply", constants
102:                                .getRelationshipReply());
103:            }
104:
105:            public void testGetRelatesToQName() throws Exception {
106:                assertEquals("unexpected constant", new QName(
107:                        "http://www.w3.org/2005/08/addressing", "RelatesTo"),
108:                        constants.getRelatesToQName());
109:            }
110:
111:            public void testGetRelationshipTypeQName() throws Exception {
112:                assertEquals("unexpected constant", new QName(
113:                        "http://www.w3.org/2005/08/addressing",
114:                        "RelationshipType"), constants
115:                        .getRelationshipTypeQName());
116:            }
117:
118:            public void testGetMetadataQName() throws Exception {
119:                assertEquals("unexpected constant", new QName(
120:                        "http://www.w3.org/2005/08/addressing", "Metadata"),
121:                        constants.getMetadataQName());
122:            }
123:
124:            public void testGetAddressQName() throws Exception {
125:                assertEquals("unexpected constant", new QName(
126:                        "http://www.w3.org/2005/08/addressing", "Address"),
127:                        constants.getAddressQName());
128:            }
129:
130:            public void testGetPackageName() throws Exception {
131:                assertEquals("unexpected constant",
132:                        "org.objectweb.celtix.bus.ws.addressing", constants
133:                                .getPackageName());
134:            }
135:
136:            public void testGetIsReferenceParameterQName() throws Exception {
137:                assertEquals("unexpected constant", new QName(
138:                        "http://www.w3.org/2005/08/addressing",
139:                        "IsReferenceParameter"), constants
140:                        .getIsReferenceParameterQName());
141:            }
142:
143:            public void testGetInvalidMapQName() throws Exception {
144:                assertEquals("unexpected constant", new QName(
145:                        "http://www.w3.org/2005/08/addressing",
146:                        "InvalidMessageAddressingProperty"), constants
147:                        .getInvalidMapQName());
148:            }
149:
150:            public void testMapRequiredQName() throws Exception {
151:                assertEquals("unexpected constant", new QName(
152:                        "http://www.w3.org/2005/08/addressing",
153:                        "MessageAddressingPropertyRequired"), constants
154:                        .getMapRequiredQName());
155:            }
156:
157:            public void testDestinationUnreachableQName() throws Exception {
158:                assertEquals("unexpected constant", new QName(
159:                        "http://www.w3.org/2005/08/addressing",
160:                        "DestinationUnreachable"), constants
161:                        .getDestinationUnreachableQName());
162:            }
163:
164:            public void testActionNotSupportedQName() throws Exception {
165:                assertEquals("unexpected constant", new QName(
166:                        "http://www.w3.org/2005/08/addressing",
167:                        "ActionNotSupported"), constants
168:                        .getActionNotSupportedQName());
169:            }
170:
171:            public void testEndpointUnavailableQName() throws Exception {
172:                assertEquals("unexpected constant", new QName(
173:                        "http://www.w3.org/2005/08/addressing",
174:                        "EndpointUnavailable"), constants
175:                        .getEndpointUnavailableQName());
176:            }
177:
178:            public void testDefaultFaultAction() throws Exception {
179:                assertEquals("unexpected constant",
180:                        "http://www.w3.org/2005/08/addressing/fault", constants
181:                                .getDefaultFaultAction());
182:            }
183:
184:            public void testActionNotSupportedText() throws Exception {
185:                assertEquals("unexpected constant", "Action {0} not supported",
186:                        constants.getActionNotSupportedText());
187:            }
188:
189:            public void testDestinationUnreachableText() throws Exception {
190:                assertEquals("unexpected constant",
191:                        "Destination {0} unreachable", constants
192:                                .getDestinationUnreachableText());
193:            }
194:
195:            public void testEndpointUnavailableText() throws Exception {
196:                assertEquals("unexpected constant", "Endpoint {0} unavailable",
197:                        constants.getEndpointUnavailableText());
198:            }
199:
200:            public void testGetInvalidMapText() throws Exception {
201:                assertEquals("unexpected constant",
202:                        "Invalid Message Addressing Property {0}", constants
203:                                .getInvalidMapText());
204:            }
205:
206:            public void testMapRequiredText() throws Exception {
207:                assertEquals("unexpected constant",
208:                        "Message Addressing Property {0} required", constants
209:                                .getMapRequiredText());
210:            }
211:
212:            public void testDuplicateMessageIDText() throws Exception {
213:                assertEquals("unexpected constant", "Duplicate Message ID {0}",
214:                        constants.getDuplicateMessageIDText());
215:            }
216:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.