ws-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chamik...@apache.org
Subject svn commit: r349924 [8/22] - in /webservices/site/trunk/targets/sandesha: ./ sandesha2/ sandesha2/images/ sandesha2/images/logos/ sandesha2/style/ sandesha2/xref-test/ sandesha2/xref-test/org/ sandesha2/xref-test/org/apache/ sandesha2/xref-test/org/apa...
Date Wed, 30 Nov 2005 11:17:58 GMT
Added: webservices/site/trunk/targets/sandesha/sandesha2/xref-test/org/apache/sandesha2/storage/RetransmitterBeanMgrTest.html
URL: http://svn.apache.org/viewcvs/webservices/site/trunk/targets/sandesha/sandesha2/xref-test/org/apache/sandesha2/storage/RetransmitterBeanMgrTest.html?rev=349924&view=auto
==============================================================================
--- webservices/site/trunk/targets/sandesha/sandesha2/xref-test/org/apache/sandesha2/storage/RetransmitterBeanMgrTest.html (added)
+++ webservices/site/trunk/targets/sandesha/sandesha2/xref-test/org/apache/sandesha2/storage/RetransmitterBeanMgrTest.html Wed Nov 30 03:11:01 2005
@@ -0,0 +1,136 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>RetransmitterBeanMgrTest xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<pre>
+
+<a name="1" href="#1">1</a>   <strong>package</strong> <a href="../../../../org/apache/sandesha2/storage/package-summary.html">org.apache.sandesha2.storage</a>;
+<a name="2" href="#2">2</a>   
+<a name="3" href="#3">3</a>   <strong>import</strong> org.apache.sandesha2.SandeshaException;
+<a name="4" href="#4">4</a>   <strong>import</strong> org.apache.sandesha2.SandeshaTestCase;
+<a name="5" href="#5">5</a>   <strong>import</strong> org.apache.sandesha2.storage.beanmanagers.SenderBeanMgr;
+<a name="6" href="#6">6</a>   <strong>import</strong> org.apache.sandesha2.storage.beans.SenderBean;
+<a name="7" href="#7">7</a>   <strong>import</strong> org.apache.sandesha2.util.SandeshaUtil;
+<a name="8" href="#8">8</a>   <strong>import</strong> org.apache.axis2.engine.AxisConfiguration;
+<a name="9" href="#9">9</a>   <strong>import</strong> org.apache.axis2.engine.AxisConfigurationImpl;
+<a name="10" href="#10">10</a>  <strong>import</strong> org.apache.axis2.context.ConfigurationContext;
+<a name="11" href="#11">11</a>  
+<a name="12" href="#12">12</a>  <strong>import</strong> java.util.Iterator;
+<a name="13" href="#13">13</a>  <em class="comment">/*</em>
+<a name="14" href="#14">14</a>  <em class="comment"> * Copyright 2004,2005 The Apache Software Foundation.</em>
+<a name="15" href="#15">15</a>  <em class="comment"> *</em>
+<a name="16" href="#16">16</a>  <em class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</em>
+<a name="17" href="#17">17</a>  <em class="comment"> * you may not use this file except in compliance with the License.</em>
+<a name="18" href="#18">18</a>  <em class="comment"> * You may obtain a copy of the License at</em>
+<a name="19" href="#19">19</a>  <em class="comment"> *</em>
+<a name="20" href="#20">20</a>  <em class="comment"> *      <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
+<a name="21" href="#21">21</a>  <em class="comment"> *</em>
+<a name="22" href="#22">22</a>  <em class="comment"> * Unless required by applicable law or agreed to in writing, software</em>
+<a name="23" href="#23">23</a>  <em class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a name="24" href="#24">24</a>  <em class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a name="25" href="#25">25</a>  <em class="comment"> * See the License for the specific language governing permissions and</em>
+<a name="26" href="#26">26</a>  <em class="comment"> * limitations under the License.</em>
+<a name="27" href="#27">27</a>  <em class="comment"> */</em>
+<a name="28" href="#28">28</a>  
+<a name="29" href="#29">29</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../org/apache/sandesha2/storage/RetransmitterBeanMgrTest.html">RetransmitterBeanMgrTest</a> <strong>extends</strong> <a href="../../../../org/apache/sandesha2/SandeshaTestCase.html">SandeshaTestCase</a> {
+<a name="30" href="#30">30</a>      <strong>private</strong> SenderBeanMgr mgr;
+<a name="31" href="#31">31</a>  
+<a name="32" href="#32">32</a>      <strong>public</strong> <a href="../../../../org/apache/sandesha2/storage/RetransmitterBeanMgrTest.html">RetransmitterBeanMgrTest</a>() {
+<a name="33" href="#33">33</a>          <strong>super</strong>(<span class="string">"RetransmitterBeanMgrTest"</span>);
+<a name="34" href="#34">34</a>      }
+<a name="35" href="#35">35</a>  
+<a name="36" href="#36">36</a>      <strong>public</strong> <strong>void</strong> setUp() throws Exception {
+<a name="37" href="#37">37</a>          AxisConfiguration axisConfig = <strong>new</strong> AxisConfigurationImpl();
+<a name="38" href="#38">38</a>          ConfigurationContext configCtx = <strong>new</strong> ConfigurationContext(axisConfig);
+<a name="39" href="#39">39</a>          StorageManager storageManager = SandeshaUtil.getSandeshaStorageManager(configCtx);
+<a name="40" href="#40">40</a>          mgr = storageManager.getRetransmitterBeanMgr();
+<a name="41" href="#41">41</a>      }
+<a name="42" href="#42">42</a>  
+<a name="43" href="#43">43</a>      <strong>public</strong> <strong>void</strong> testDelete() {
+<a name="44" href="#44">44</a>          assertNull(mgr.retrieve(<span class="string">""</span>));
+<a name="45" href="#45">45</a>          <strong>try</strong> {
+<a name="46" href="#46">46</a>              mgr.insert(<strong>new</strong> SenderBean(<span class="string">"MsgId1"</span>, <span class="string">"Key1"</span>, false , 1001 , <span class="string">"TmpSeqId1"</span>, 1001));
+<a name="47" href="#47">47</a>          } <strong>catch</strong> (Exception ex) {
+<a name="48" href="#48">48</a>              fail(<span class="string">"should not throw an exception"</span>);
+<a name="49" href="#49">49</a>          }
+<a name="50" href="#50">50</a>          assertNotNull(mgr.retrieve(<span class="string">"MsgId1"</span>));
+<a name="51" href="#51">51</a>      }
+<a name="52" href="#52">52</a>  
+<a name="53" href="#53">53</a>      <strong>public</strong> <strong>void</strong> testFind() {
+<a name="54" href="#54">54</a>          <strong>try</strong> {
+<a name="55" href="#55">55</a>              mgr.insert(<strong>new</strong> SenderBean(<span class="string">"MsgId2"</span>, <span class="string">"Key2"</span>, false , 1001 , <span class="string">"TmpSeqId2"</span>, 1002));
+<a name="56" href="#56">56</a>              mgr.insert(<strong>new</strong> SenderBean(<span class="string">"MsgId3"</span>, <span class="string">"Key3"</span>, false , 1001 , <span class="string">"TmpSeqId2"</span>, 1003));
+<a name="57" href="#57">57</a>  
+<a name="58" href="#58">58</a>              SenderBean target = <strong>new</strong> SenderBean();
+<a name="59" href="#59">59</a>              target.setInternalSequenceId(<span class="string">"TmpSeqId2"</span>);
+<a name="60" href="#60">60</a>  
+<a name="61" href="#61">61</a>              Iterator iterator = mgr.find(target).iterator();
+<a name="62" href="#62">62</a>              SenderBean tmp = (SenderBean) iterator.next();
+<a name="63" href="#63">63</a>  
+<a name="64" href="#64">64</a>              <strong>if</strong> (tmp.getMessageId().equals(<span class="string">"MsgId2"</span>)) {
+<a name="65" href="#65">65</a>                  tmp = (SenderBean) iterator.next();
+<a name="66" href="#66">66</a>                  assertTrue(tmp.getMessageId().equals(<span class="string">"MsgId3"</span>));
+<a name="67" href="#67">67</a>              } <strong>else</strong> {
+<a name="68" href="#68">68</a>                  tmp = (SenderBean) iterator.next();
+<a name="69" href="#69">69</a>                  assertTrue(tmp.getMessageId().equals(<span class="string">"MsgId2"</span>));
+<a name="70" href="#70">70</a>              }
+<a name="71" href="#71">71</a>  
+<a name="72" href="#72">72</a>  
+<a name="73" href="#73">73</a>          } <strong>catch</strong> (SandeshaException e) {
+<a name="74" href="#74">74</a>              fail(<span class="string">"should not throw an exception"</span>);
+<a name="75" href="#75">75</a>          }
+<a name="76" href="#76">76</a>  
+<a name="77" href="#77">77</a>  
+<a name="78" href="#78">78</a>      }
+<a name="79" href="#79">79</a>  
+<a name="80" href="#80">80</a>      <strong>public</strong> <strong>void</strong> testInsert() {
+<a name="81" href="#81">81</a>          <strong>try</strong> {
+<a name="82" href="#82">82</a>              mgr.insert(<strong>new</strong> SenderBean());
+<a name="83" href="#83">83</a>              fail(<span class="string">"should throw an exception"</span>);
+<a name="84" href="#84">84</a>  
+<a name="85" href="#85">85</a>          } <strong>catch</strong> (SandeshaException ex) {
+<a name="86" href="#86">86</a>          }
+<a name="87" href="#87">87</a>  
+<a name="88" href="#88">88</a>          <strong>try</strong> {
+<a name="89" href="#89">89</a>              mgr.insert(<strong>new</strong> SenderBean(<span class="string">"MsgId4"</span>,<span class="string">"Key4"</span>, false , 1001 , <span class="string">"TmpSeqId4"</span>, 1004));
+<a name="90" href="#90">90</a>              SenderBean tmp = mgr.retrieve(<span class="string">"MsgId4"</span>);
+<a name="91" href="#91">91</a>              assertTrue(tmp.getKey().equals(<span class="string">"Key4"</span>));
+<a name="92" href="#92">92</a>  
+<a name="93" href="#93">93</a>  
+<a name="94" href="#94">94</a>          } <strong>catch</strong> (SandeshaException e) {
+<a name="95" href="#95">95</a>              fail(<span class="string">"should not throw an exception"</span>);
+<a name="96" href="#96">96</a>          }
+<a name="97" href="#97">97</a>  
+<a name="98" href="#98">98</a>      }
+<a name="99" href="#99">99</a>  
+<a name="100" href="#100">100</a>     <strong>public</strong> <strong>void</strong> testRetrieve() {
+<a name="101" href="#101">101</a>         assertNull(mgr.retrieve(<span class="string">"MsgId5"</span>));
+<a name="102" href="#102">102</a>         <strong>try</strong> {
+<a name="103" href="#103">103</a>             mgr.insert(<strong>new</strong> SenderBean(<span class="string">"MsgId5"</span>, <span class="string">"Key5"</span>, false , 1001 , <span class="string">"TmpSeqId5"</span>, 1005));
+<a name="104" href="#104">104</a>         } <strong>catch</strong> (SandeshaException e) {
+<a name="105" href="#105">105</a>             fail(<span class="string">"this should not throw an exception"</span>);
+<a name="106" href="#106">106</a>         }
+<a name="107" href="#107">107</a>         assertNotNull(mgr.retrieve(<span class="string">"MsgId5"</span>));
+<a name="108" href="#108">108</a>     }
+<a name="109" href="#109">109</a> 
+<a name="110" href="#110">110</a>     <strong>public</strong> <strong>void</strong> testUpdate() {
+<a name="111" href="#111">111</a>         SenderBean bean = <strong>new</strong> SenderBean(<span class="string">"MsgId6"</span>, <span class="string">"Key6"</span>, false , 1001 , <span class="string">"TmpSeqId6"</span>, 1006);
+<a name="112" href="#112">112</a>         <strong>try</strong> {
+<a name="113" href="#113">113</a>             mgr.insert(bean);
+<a name="114" href="#114">114</a>         } <strong>catch</strong> (SandeshaException e) {
+<a name="115" href="#115">115</a>             fail(<span class="string">"should not throw an exception"</span>);
+<a name="116" href="#116">116</a>         }
+<a name="117" href="#117">117</a>         bean.setSend(<strong>true</strong>);
+<a name="118" href="#118">118</a>         mgr.update(bean);
+<a name="119" href="#119">119</a> 
+<a name="120" href="#120">120</a>         SenderBean tmp = mgr.retrieve(<span class="string">"MsgId6"</span>);
+<a name="121" href="#121">121</a>         assertTrue(tmp.isSend());
+<a name="122" href="#122">122</a>     }
+<a name="123" href="#123">123</a> }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Added: webservices/site/trunk/targets/sandesha/sandesha2/xref-test/org/apache/sandesha2/storage/SequencePropertyBeanMgrTest.html
URL: http://svn.apache.org/viewcvs/webservices/site/trunk/targets/sandesha/sandesha2/xref-test/org/apache/sandesha2/storage/SequencePropertyBeanMgrTest.html?rev=349924&view=auto
==============================================================================
--- webservices/site/trunk/targets/sandesha/sandesha2/xref-test/org/apache/sandesha2/storage/SequencePropertyBeanMgrTest.html (added)
+++ webservices/site/trunk/targets/sandesha/sandesha2/xref-test/org/apache/sandesha2/storage/SequencePropertyBeanMgrTest.html Wed Nov 30 03:11:01 2005
@@ -0,0 +1,101 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>SequencePropertyBeanMgrTest xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<pre>
+
+<a name="1" href="#1">1</a>   <strong>package</strong> <a href="../../../../org/apache/sandesha2/storage/package-summary.html">org.apache.sandesha2.storage</a>;
+<a name="2" href="#2">2</a>   
+<a name="3" href="#3">3</a>   <strong>import</strong> org.apache.sandesha2.storage.beanmanagers.SequencePropertyBeanMgr;
+<a name="4" href="#4">4</a>   <strong>import</strong> org.apache.sandesha2.storage.beans.SequencePropertyBean;
+<a name="5" href="#5">5</a>   <strong>import</strong> org.apache.sandesha2.util.SandeshaUtil;
+<a name="6" href="#6">6</a>   <strong>import</strong> org.apache.sandesha2.SandeshaTestCase;
+<a name="7" href="#7">7</a>   <strong>import</strong> org.apache.axis2.engine.AxisConfiguration;
+<a name="8" href="#8">8</a>   <strong>import</strong> org.apache.axis2.engine.AxisConfigurationImpl;
+<a name="9" href="#9">9</a>   <strong>import</strong> org.apache.axis2.context.ConfigurationContext;
+<a name="10" href="#10">10</a>  
+<a name="11" href="#11">11</a>  <strong>import</strong> java.util.Iterator;
+<a name="12" href="#12">12</a>  <em class="comment">/*</em>
+<a name="13" href="#13">13</a>  <em class="comment"> * Copyright 2004,2005 The Apache Software Foundation.</em>
+<a name="14" href="#14">14</a>  <em class="comment"> *</em>
+<a name="15" href="#15">15</a>  <em class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</em>
+<a name="16" href="#16">16</a>  <em class="comment"> * you may not use this file except in compliance with the License.</em>
+<a name="17" href="#17">17</a>  <em class="comment"> * You may obtain a copy of the License at</em>
+<a name="18" href="#18">18</a>  <em class="comment"> *</em>
+<a name="19" href="#19">19</a>  <em class="comment"> *      <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
+<a name="20" href="#20">20</a>  <em class="comment"> *</em>
+<a name="21" href="#21">21</a>  <em class="comment"> * Unless required by applicable law or agreed to in writing, software</em>
+<a name="22" href="#22">22</a>  <em class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a name="23" href="#23">23</a>  <em class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a name="24" href="#24">24</a>  <em class="comment"> * See the License for the specific language governing permissions and</em>
+<a name="25" href="#25">25</a>  <em class="comment"> * limitations under the License.</em>
+<a name="26" href="#26">26</a>  <em class="comment"> */</em>
+<a name="27" href="#27">27</a>  
+<a name="28" href="#28">28</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../org/apache/sandesha2/storage/SequencePropertyBeanMgrTest.html">SequencePropertyBeanMgrTest</a> <strong>extends</strong> <a href="../../../../org/apache/sandesha2/SandeshaTestCase.html">SandeshaTestCase</a> {
+<a name="29" href="#29">29</a>      SequencePropertyBeanMgr mgr;
+<a name="30" href="#30">30</a>  
+<a name="31" href="#31">31</a>      <strong>public</strong> <a href="../../../../org/apache/sandesha2/storage/SequencePropertyBeanMgrTest.html">SequencePropertyBeanMgrTest</a>() {
+<a name="32" href="#32">32</a>          <strong>super</strong>(<span class="string">"SequencePropertyBeanMgrTest"</span>);
+<a name="33" href="#33">33</a>      }
+<a name="34" href="#34">34</a>  
+<a name="35" href="#35">35</a>      <strong>public</strong> <strong>void</strong> setUp() throws Exception {
+<a name="36" href="#36">36</a>          AxisConfiguration axisConfig = <strong>new</strong> AxisConfigurationImpl();
+<a name="37" href="#37">37</a>          ConfigurationContext configCtx = <strong>new</strong> ConfigurationContext(axisConfig);
+<a name="38" href="#38">38</a>          StorageManager storageManager = SandeshaUtil.getSandeshaStorageManager(configCtx);;
+<a name="39" href="#39">39</a>          mgr = storageManager.getSequencePropretyBeanMgr();
+<a name="40" href="#40">40</a>  
+<a name="41" href="#41">41</a>      }
+<a name="42" href="#42">42</a>  
+<a name="43" href="#43">43</a>      <strong>public</strong> <strong>void</strong> testDelete() {
+<a name="44" href="#44">44</a>          mgr.insert(<strong>new</strong> SequencePropertyBean(<span class="string">"SeqId1"</span>, <span class="string">"Name1"</span>, <span class="string">"Value1"</span>));
+<a name="45" href="#45">45</a>          mgr.delete(<span class="string">"SeqId1"</span>, <span class="string">"Name1"</span>);
+<a name="46" href="#46">46</a>          assertNull(mgr.retrieve(<span class="string">"SeqId1"</span>, <span class="string">"Name1"</span>));
+<a name="47" href="#47">47</a>      }
+<a name="48" href="#48">48</a>  
+<a name="49" href="#49">49</a>      <strong>public</strong> <strong>void</strong> testFind() {
+<a name="50" href="#50">50</a>          mgr.insert(<strong>new</strong> SequencePropertyBean(<span class="string">"SeqId2"</span>, <span class="string">"Name2"</span>, <span class="string">"Value2"</span>));
+<a name="51" href="#51">51</a>          mgr.insert(<strong>new</strong> SequencePropertyBean(<span class="string">"SeqId3"</span>, <span class="string">"Name3"</span>, <span class="string">"Value2"</span>));
+<a name="52" href="#52">52</a>  
+<a name="53" href="#53">53</a>          SequencePropertyBean bean = <strong>new</strong> SequencePropertyBean();
+<a name="54" href="#54">54</a>          bean.setValue(<span class="string">"Value2"</span>);
+<a name="55" href="#55">55</a>          Iterator iter = mgr.find(bean).iterator();
+<a name="56" href="#56">56</a>          SequencePropertyBean tmp = (SequencePropertyBean) iter.next();
+<a name="57" href="#57">57</a>          <strong>if</strong> (tmp.getSequenceId().equals(<span class="string">"SeqId2"</span>)) {
+<a name="58" href="#58">58</a>              tmp = (SequencePropertyBean) iter.next();
+<a name="59" href="#59">59</a>              assertTrue(tmp.getSequenceId().equals(<span class="string">"SeqId3"</span>));
+<a name="60" href="#60">60</a>          } <strong>else</strong> {
+<a name="61" href="#61">61</a>              tmp = (SequencePropertyBean) iter.next();
+<a name="62" href="#62">62</a>              assertTrue(tmp.getSequenceId().equals(<span class="string">"SeqId2"</span>));
+<a name="63" href="#63">63</a>          }
+<a name="64" href="#64">64</a>      }
+<a name="65" href="#65">65</a>  
+<a name="66" href="#66">66</a>      <strong>public</strong> <strong>void</strong> testInsert() {
+<a name="67" href="#67">67</a>          mgr.insert(<strong>new</strong> SequencePropertyBean(<span class="string">"SeqId4"</span>, <span class="string">"Name4"</span>, <span class="string">"Value4"</span>));
+<a name="68" href="#68">68</a>          SequencePropertyBean tmp = mgr.retrieve(<span class="string">"SeqId4"</span>, <span class="string">"Name4"</span>);
+<a name="69" href="#69">69</a>          assertTrue(tmp.getValue().equals(<span class="string">"Value4"</span>));
+<a name="70" href="#70">70</a>  
+<a name="71" href="#71">71</a>      }
+<a name="72" href="#72">72</a>  
+<a name="73" href="#73">73</a>      <strong>public</strong> <strong>void</strong> testRetrieve() {
+<a name="74" href="#74">74</a>          assertNull(mgr.retrieve(<span class="string">"SeqId5"</span>, <span class="string">"Name5"</span>));
+<a name="75" href="#75">75</a>          mgr.insert(<strong>new</strong> SequencePropertyBean(<span class="string">"SeqId5"</span>, <span class="string">"Name5"</span>, <span class="string">"Value5"</span>));
+<a name="76" href="#76">76</a>          assertNotNull(mgr.retrieve(<span class="string">"SeqId5"</span>, <span class="string">"Name5"</span>));
+<a name="77" href="#77">77</a>      }
+<a name="78" href="#78">78</a>  
+<a name="79" href="#79">79</a>  
+<a name="80" href="#80">80</a>      <strong>public</strong> <strong>void</strong> testUpdate() {
+<a name="81" href="#81">81</a>          SequencePropertyBean bean = <strong>new</strong> SequencePropertyBean(<span class="string">"SeqId6"</span>, <span class="string">"Name6"</span>, <span class="string">"Value6"</span>);
+<a name="82" href="#82">82</a>          mgr.insert(bean);
+<a name="83" href="#83">83</a>          bean.setValue(<span class="string">"Value7"</span>);
+<a name="84" href="#84">84</a>          mgr.update(bean);
+<a name="85" href="#85">85</a>          SequencePropertyBean tmp = mgr.retrieve(<span class="string">"SeqId6"</span>, <span class="string">"Name6"</span>);
+<a name="86" href="#86">86</a>          assertTrue(tmp.getValue().equals(<span class="string">"Value7"</span>));
+<a name="87" href="#87">87</a>      }
+<a name="88" href="#88">88</a>  }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Added: webservices/site/trunk/targets/sandesha/sandesha2/xref-test/org/apache/sandesha2/storage/StorageMapBeanMgrTest.html
URL: http://svn.apache.org/viewcvs/webservices/site/trunk/targets/sandesha/sandesha2/xref-test/org/apache/sandesha2/storage/StorageMapBeanMgrTest.html?rev=349924&view=auto
==============================================================================
--- webservices/site/trunk/targets/sandesha/sandesha2/xref-test/org/apache/sandesha2/storage/StorageMapBeanMgrTest.html (added)
+++ webservices/site/trunk/targets/sandesha/sandesha2/xref-test/org/apache/sandesha2/storage/StorageMapBeanMgrTest.html Wed Nov 30 03:11:01 2005
@@ -0,0 +1,101 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>StorageMapBeanMgrTest xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<pre>
+
+<a name="1" href="#1">1</a>   <strong>package</strong> <a href="../../../../org/apache/sandesha2/storage/package-summary.html">org.apache.sandesha2.storage</a>;
+<a name="2" href="#2">2</a>   
+<a name="3" href="#3">3</a>   <strong>import</strong> org.apache.sandesha2.storage.beanmanagers.InvokerBeanMgr;
+<a name="4" href="#4">4</a>   <strong>import</strong> org.apache.sandesha2.storage.beans.InvokerBean;
+<a name="5" href="#5">5</a>   <strong>import</strong> org.apache.sandesha2.util.SandeshaUtil;
+<a name="6" href="#6">6</a>   <strong>import</strong> org.apache.sandesha2.SandeshaTestCase;
+<a name="7" href="#7">7</a>   <strong>import</strong> org.apache.axis2.engine.AxisConfiguration;
+<a name="8" href="#8">8</a>   <strong>import</strong> org.apache.axis2.engine.AxisConfigurationImpl;
+<a name="9" href="#9">9</a>   <strong>import</strong> org.apache.axis2.context.ConfigurationContext;
+<a name="10" href="#10">10</a>  
+<a name="11" href="#11">11</a>  <strong>import</strong> java.util.Iterator;
+<a name="12" href="#12">12</a>  <em class="comment">/*</em>
+<a name="13" href="#13">13</a>  <em class="comment"> * Copyright 2004,2005 The Apache Software Foundation.</em>
+<a name="14" href="#14">14</a>  <em class="comment"> *</em>
+<a name="15" href="#15">15</a>  <em class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</em>
+<a name="16" href="#16">16</a>  <em class="comment"> * you may not use this file except in compliance with the License.</em>
+<a name="17" href="#17">17</a>  <em class="comment"> * You may obtain a copy of the License at</em>
+<a name="18" href="#18">18</a>  <em class="comment"> *</em>
+<a name="19" href="#19">19</a>  <em class="comment"> *      <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
+<a name="20" href="#20">20</a>  <em class="comment"> *</em>
+<a name="21" href="#21">21</a>  <em class="comment"> * Unless required by applicable law or agreed to in writing, software</em>
+<a name="22" href="#22">22</a>  <em class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a name="23" href="#23">23</a>  <em class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a name="24" href="#24">24</a>  <em class="comment"> * See the License for the specific language governing permissions and</em>
+<a name="25" href="#25">25</a>  <em class="comment"> * limitations under the License.</em>
+<a name="26" href="#26">26</a>  <em class="comment"> */</em>
+<a name="27" href="#27">27</a>  
+<a name="28" href="#28">28</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../org/apache/sandesha2/storage/StorageMapBeanMgrTest.html">StorageMapBeanMgrTest</a> <strong>extends</strong> <a href="../../../../org/apache/sandesha2/SandeshaTestCase.html">SandeshaTestCase</a> {
+<a name="29" href="#29">29</a>  
+<a name="30" href="#30">30</a>      InvokerBeanMgr mgr;
+<a name="31" href="#31">31</a>  
+<a name="32" href="#32">32</a>      <strong>public</strong> <a href="../../../../org/apache/sandesha2/storage/StorageMapBeanMgrTest.html">StorageMapBeanMgrTest</a>() {
+<a name="33" href="#33">33</a>          <strong>super</strong> (<span class="string">"StorageMapBeanMgrTest"</span>);
+<a name="34" href="#34">34</a>      }
+<a name="35" href="#35">35</a>  
+<a name="36" href="#36">36</a>      <strong>public</strong> <strong>void</strong> setUp() throws Exception {
+<a name="37" href="#37">37</a>          AxisConfiguration axisConfig = <strong>new</strong> AxisConfigurationImpl();
+<a name="38" href="#38">38</a>          ConfigurationContext configCtx = <strong>new</strong> ConfigurationContext(axisConfig);
+<a name="39" href="#39">39</a>          StorageManager storageManager = SandeshaUtil.getSandeshaStorageManager(configCtx);
+<a name="40" href="#40">40</a>          mgr = storageManager.getStorageMapBeanMgr();
+<a name="41" href="#41">41</a>      }
+<a name="42" href="#42">42</a>  
+<a name="43" href="#43">43</a>      <strong>public</strong> <strong>void</strong> testDelete() {
+<a name="44" href="#44">44</a>          mgr.insert(<strong>new</strong> InvokerBean(<span class="string">"Key1"</span>, 1001, <span class="string">"SeqId1"</span>));
+<a name="45" href="#45">45</a>          mgr.delete(<span class="string">"Key1"</span>);
+<a name="46" href="#46">46</a>          assertNull(mgr.retrieve(<span class="string">"Key1"</span>));
+<a name="47" href="#47">47</a>      }
+<a name="48" href="#48">48</a>  
+<a name="49" href="#49">49</a>      <strong>public</strong> <strong>void</strong> testFind() {
+<a name="50" href="#50">50</a>          mgr.insert(<strong>new</strong> InvokerBean(<span class="string">"Key2"</span>, 1002, <span class="string">"SeqId2"</span>));
+<a name="51" href="#51">51</a>          mgr.insert(<strong>new</strong> InvokerBean(<span class="string">"Key3"</span>, 1003, <span class="string">"SeqId2"</span>));
+<a name="52" href="#52">52</a>  
+<a name="53" href="#53">53</a>          InvokerBean bean = <strong>new</strong> InvokerBean();
+<a name="54" href="#54">54</a>          bean.setSequenceId(<span class="string">"SeqId2"</span>);
+<a name="55" href="#55">55</a>  
+<a name="56" href="#56">56</a>          Iterator iter = mgr.find(bean).iterator();
+<a name="57" href="#57">57</a>          InvokerBean tmp = (InvokerBean) iter.next();
+<a name="58" href="#58">58</a>  
+<a name="59" href="#59">59</a>          <strong>if</strong> (tmp.getKey().equals(<span class="string">"Key2"</span>)) {
+<a name="60" href="#60">60</a>              tmp = (InvokerBean) iter.next();
+<a name="61" href="#61">61</a>              assertTrue(tmp.getKey().equals(<span class="string">"Key3"</span>));
+<a name="62" href="#62">62</a>          } <strong>else</strong> {
+<a name="63" href="#63">63</a>              tmp = (InvokerBean) iter.next();
+<a name="64" href="#64">64</a>              assertTrue(tmp.getKey().equals(<span class="string">"Key2"</span>));
+<a name="65" href="#65">65</a>  
+<a name="66" href="#66">66</a>          }
+<a name="67" href="#67">67</a>      }
+<a name="68" href="#68">68</a>  
+<a name="69" href="#69">69</a>      <strong>public</strong> <strong>void</strong> testInsert() {
+<a name="70" href="#70">70</a>          mgr.insert(<strong>new</strong> InvokerBean(<span class="string">"Key4"</span>, 1004, <span class="string">"SeqId4"</span>));
+<a name="71" href="#71">71</a>          InvokerBean tmp = mgr.retrieve(<span class="string">"Key4"</span>);
+<a name="72" href="#72">72</a>          assertTrue(tmp.getKey().equals(<span class="string">"Key4"</span>));
+<a name="73" href="#73">73</a>      }
+<a name="74" href="#74">74</a>  
+<a name="75" href="#75">75</a>      <strong>public</strong> <strong>void</strong> testRetrieve() {
+<a name="76" href="#76">76</a>          assertNull(mgr.retrieve(<span class="string">"Key5"</span>));
+<a name="77" href="#77">77</a>          mgr.insert(<strong>new</strong> InvokerBean(<span class="string">"Key5"</span>, 1004, <span class="string">"SeqId5"</span>));
+<a name="78" href="#78">78</a>          assertNotNull(mgr.retrieve(<span class="string">"Key5"</span>));
+<a name="79" href="#79">79</a>      }
+<a name="80" href="#80">80</a>  
+<a name="81" href="#81">81</a>      <strong>public</strong> <strong>void</strong> testUpdate() {
+<a name="82" href="#82">82</a>          InvokerBean bean = <strong>new</strong> InvokerBean(<span class="string">"Key6"</span>, 1006, <span class="string">"SeqId6"</span>);
+<a name="83" href="#83">83</a>          mgr.insert(bean);
+<a name="84" href="#84">84</a>          bean.setMsgNo(1007);
+<a name="85" href="#85">85</a>          InvokerBean tmp = mgr.retrieve(<span class="string">"Key6"</span>);
+<a name="86" href="#86">86</a>          assertTrue(tmp.getMsgNo() == 1007);
+<a name="87" href="#87">87</a>      }
+<a name="88" href="#88">88</a>  }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Added: webservices/site/trunk/targets/sandesha/sandesha2/xref-test/org/apache/sandesha2/storage/package-frame.html
URL: http://svn.apache.org/viewcvs/webservices/site/trunk/targets/sandesha/sandesha2/xref-test/org/apache/sandesha2/storage/package-frame.html?rev=349924&view=auto
==============================================================================
--- webservices/site/trunk/targets/sandesha/sandesha2/xref-test/org/apache/sandesha2/storage/package-frame.html (added)
+++ webservices/site/trunk/targets/sandesha/sandesha2/xref-test/org/apache/sandesha2/storage/package-frame.html Wed Nov 30 03:11:01 2005
@@ -0,0 +1,43 @@
+
+
+  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+  <html lang="en">
+    <head>
+      <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"></meta>
+      <title>Apache Sandesha2 0.9 Reference Package org.apache.sandesha2.storage</title>
+      <link rel="stylesheet" href="../../../../stylesheet.css" type="text/css" title="style"></link>
+    </head>
+    <body>
+
+      <h3>
+        <a href="package-summary.html" target="classFrame">org.apache.sandesha2.storage</a>
+      </h3>
+
+      <h3>Classes</h3>
+
+      <ul>
+        
+          <li>
+            <a href="CreateSeqBeanMgrTest.html" target="classFrame">CreateSeqBeanMgrTest</a>
+          </li>
+        
+          <li>
+            <a href="NextMsgBeanMgrTest.html" target="classFrame">NextMsgBeanMgrTest</a>
+          </li>
+        
+          <li>
+            <a href="RetransmitterBeanMgrTest.html" target="classFrame">RetransmitterBeanMgrTest</a>
+          </li>
+        
+          <li>
+            <a href="SequencePropertyBeanMgrTest.html" target="classFrame">SequencePropertyBeanMgrTest</a>
+          </li>
+        
+          <li>
+            <a href="StorageMapBeanMgrTest.html" target="classFrame">StorageMapBeanMgrTest</a>
+          </li>
+        
+      </ul>
+
+    </body>
+  </html>

Added: webservices/site/trunk/targets/sandesha/sandesha2/xref-test/org/apache/sandesha2/storage/package-summary.html
URL: http://svn.apache.org/viewcvs/webservices/site/trunk/targets/sandesha/sandesha2/xref-test/org/apache/sandesha2/storage/package-summary.html?rev=349924&view=auto
==============================================================================
--- webservices/site/trunk/targets/sandesha/sandesha2/xref-test/org/apache/sandesha2/storage/package-summary.html (added)
+++ webservices/site/trunk/targets/sandesha/sandesha2/xref-test/org/apache/sandesha2/storage/package-summary.html Wed Nov 30 03:11:01 2005
@@ -0,0 +1,126 @@
+
+
+  
+
+  
+    
+
+    
+
+    
+
+  
+      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+      <html lang="en">
+        <head>
+          <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"></meta>
+          <title>Apache Sandesha2 0.9 Reference Package </title>
+          <link rel="stylesheet" href="../../../../stylesheet.css" type="text/css" title="style"></link>
+        </head>
+        <body>
+
+          
+      
+      
+
+      <div class="overview">
+        <ul>
+          <li>
+            <a href="../../../../overview-summary.html">Overview</a>
+          </li>
+          <li class="selected">Package</li>
+        </ul>
+      </div>
+      <div class="framenoframe">
+        <ul>
+          <li>
+            <a href="../../../../index.html" target="_top">FRAMES</a>
+          </li>
+          <li>
+            <a href="package-summary.html" target="_top">NO FRAMES</a>
+          </li>
+        </ul>
+      </div>
+
+      
+
+    
+      
+      <h2>Package org.apache.sandesha2.storage</h2>
+
+      <table class="summary">
+        <thead>
+          <tr>
+            <th>Class Summary</th>
+          </tr>
+        </thead>
+
+        <tbody>
+          
+            <tr>
+              <td>
+                <a href="CreateSeqBeanMgrTest.html" target="classFrame">CreateSeqBeanMgrTest</a>
+              </td>
+            </tr>
+          
+            <tr>
+              <td>
+                <a href="NextMsgBeanMgrTest.html" target="classFrame">NextMsgBeanMgrTest</a>
+              </td>
+            </tr>
+          
+            <tr>
+              <td>
+                <a href="RetransmitterBeanMgrTest.html" target="classFrame">RetransmitterBeanMgrTest</a>
+              </td>
+            </tr>
+          
+            <tr>
+              <td>
+                <a href="SequencePropertyBeanMgrTest.html" target="classFrame">SequencePropertyBeanMgrTest</a>
+              </td>
+            </tr>
+          
+            <tr>
+              <td>
+                <a href="StorageMapBeanMgrTest.html" target="classFrame">StorageMapBeanMgrTest</a>
+              </td>
+            </tr>
+          
+        </tbody>
+      </table>
+
+    
+      
+      
+
+      <div class="overview">
+        <ul>
+          <li>
+            <a href="../../../../overview-summary.html">Overview</a>
+          </li>
+          <li class="selected">Package</li>
+        </ul>
+      </div>
+      <div class="framenoframe">
+        <ul>
+          <li>
+            <a href="../../../../index.html" target="_top">FRAMES</a>
+          </li>
+          <li>
+            <a href="package-summary.html" target="_top">NO FRAMES</a>
+          </li>
+        </ul>
+      </div>
+
+      
+
+    
+    
+
+          <hr></hr>
+
+          Copyright &copy; 2005 Apache Web Services. All Rights Reserved.
+        </body>
+      </html>
+    

Added: webservices/site/trunk/targets/sandesha/sandesha2/xref-test/org/apache/sandesha2/wsrm/CreateSequenceResponseTest.html
URL: http://svn.apache.org/viewcvs/webservices/site/trunk/targets/sandesha/sandesha2/xref-test/org/apache/sandesha2/wsrm/CreateSequenceResponseTest.html?rev=349924&view=auto
==============================================================================
--- webservices/site/trunk/targets/sandesha/sandesha2/xref-test/org/apache/sandesha2/wsrm/CreateSequenceResponseTest.html (added)
+++ webservices/site/trunk/targets/sandesha/sandesha2/xref-test/org/apache/sandesha2/wsrm/CreateSequenceResponseTest.html Wed Nov 30 03:11:01 2005
@@ -0,0 +1,89 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>CreateSequenceResponseTest xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<pre>
+
+<a name="1" href="#1">1</a>   <strong>package</strong> <a href="../../../../org/apache/sandesha2/wsrm/package-summary.html">org.apache.sandesha2.wsrm</a>;
+<a name="2" href="#2">2</a>   
+<a name="3" href="#3">3</a>   <strong>import</strong> org.apache.sandesha2.SandeshaTestCase;
+<a name="4" href="#4">4</a>   <strong>import</strong> org.apache.sandesha2.Sandesha2Constants;
+<a name="5" href="#5">5</a>   <strong>import</strong> org.apache.axis2.soap.SOAPEnvelope;
+<a name="6" href="#6">6</a>   <strong>import</strong> org.apache.axis2.soap.SOAPFactory;
+<a name="7" href="#7">7</a>   <strong>import</strong> org.apache.axis2.addressing.EndpointReference;
+<a name="8" href="#8">8</a>   <strong>import</strong> org.apache.axis2.om.OMAbstractFactory;
+<a name="9" href="#9">9</a>   <strong>import</strong> org.apache.axis2.om.OMElement;
+<a name="10" href="#10">10</a>  
+<a name="11" href="#11">11</a>  <strong>import</strong> javax.xml.namespace.QName;
+<a name="12" href="#12">12</a>  
+<a name="13" href="#13">13</a>  <em>/**<em>*</em></em>
+<a name="14" href="#14">14</a>  <em> * Created by IntelliJ IDEA.</em>
+<a name="15" href="#15">15</a>  <em> * User: sanka</em>
+<a name="16" href="#16">16</a>  <em> * Date: Oct 7, 2005</em>
+<a name="17" href="#17">17</a>  <em> * Time: 2:43:50 AM</em>
+<a name="18" href="#18">18</a>  <em> * To change this template use File | Settings | File Templates.</em>
+<a name="19" href="#19">19</a>  <em> */</em>
+<a name="20" href="#20">20</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../org/apache/sandesha2/wsrm/CreateSequenceResponseTest.html">CreateSequenceResponseTest</a> <strong>extends</strong> <a href="../../../../org/apache/sandesha2/SandeshaTestCase.html">SandeshaTestCase</a> {
+<a name="21" href="#21">21</a>  
+<a name="22" href="#22">22</a>  	SOAPFactory factory = OMAbstractFactory.getSOAP11Factory();
+<a name="23" href="#23">23</a>  	
+<a name="24" href="#24">24</a>      <strong>public</strong> <a href="../../../../org/apache/sandesha2/wsrm/CreateSequenceResponseTest.html">CreateSequenceResponseTest</a>() {
+<a name="25" href="#25">25</a>          <strong>super</strong>(<span class="string">"CreateSequenceResponseTest"</span>);
+<a name="26" href="#26">26</a>  
+<a name="27" href="#27">27</a>      }
+<a name="28" href="#28">28</a>  
+<a name="29" href="#29">29</a>      <strong>public</strong> <strong>void</strong> testFromOMElement() {
+<a name="30" href="#30">30</a>          CreateSequenceResponse res = <strong>new</strong> CreateSequenceResponse(factory);
+<a name="31" href="#31">31</a>          SOAPEnvelope env = getSOAPEnvelope(<span class="string">""</span>, <span class="string">"CreateSequenceResponse.xml"</span>);
+<a name="32" href="#32">32</a>          res.fromOMElement(env.getBody());
+<a name="33" href="#33">33</a>  
+<a name="34" href="#34">34</a>          Identifier identifier = res.getIdentifier();
+<a name="35" href="#35">35</a>          assertEquals(<span class="string">"uuid:88754b00-161a-11da-b6d6-8198de3c47c5"</span>, identifier.getIdentifier());
+<a name="36" href="#36">36</a>  
+<a name="37" href="#37">37</a>          Accept accept = res.getAccept();
+<a name="38" href="#38">38</a>          AcksTo  acksTo = accept.getAcksTo();
+<a name="39" href="#39">39</a>          Address address = acksTo.getAddress();
+<a name="40" href="#40">40</a>          assertEquals(<span class="string">"http://localhost:8070/axis/services/TestService"</span>, address.getEpr().getAddress());
+<a name="41" href="#41">41</a>  
+<a name="42" href="#42">42</a>      }
+<a name="43" href="#43">43</a>  
+<a name="44" href="#44">44</a>      <strong>public</strong> <strong>void</strong> testToSOAPEnvelope() {
+<a name="45" href="#45">45</a>          CreateSequenceResponse res = <strong>new</strong> CreateSequenceResponse(factory);
+<a name="46" href="#46">46</a>  
+<a name="47" href="#47">47</a>          Identifier identifier = <strong>new</strong> Identifier(factory);
+<a name="48" href="#48">48</a>          identifier.setIndentifer(<span class="string">"uuid:88754b00-161a-11da-b6d6-8198de3c47c5"</span>);
+<a name="49" href="#49">49</a>          res.setIdentifier(identifier);
+<a name="50" href="#50">50</a>  
+<a name="51" href="#51">51</a>          Accept accept = <strong>new</strong> Accept(factory);
+<a name="52" href="#52">52</a>          AcksTo acksTo = <strong>new</strong> AcksTo(factory);
+<a name="53" href="#53">53</a>          Address address = <strong>new</strong> Address(factory);
+<a name="54" href="#54">54</a>          address.setEpr(<strong>new</strong> EndpointReference(<span class="string">"http://localhost:8070/axis/services/TestService"</span>));
+<a name="55" href="#55">55</a>          acksTo.setAddress(address);
+<a name="56" href="#56">56</a>          accept.setAcksTo(acksTo);
+<a name="57" href="#57">57</a>          res.setAccept(accept);
+<a name="58" href="#58">58</a>  
+<a name="59" href="#59">59</a>          SOAPEnvelope env = getEmptySOAPEnvelope();
+<a name="60" href="#60">60</a>          res.toSOAPEnvelope(env);
+<a name="61" href="#61">61</a>  
+<a name="62" href="#62">62</a>          OMElement createSeqResponsePart = env.getBody().getFirstChildWithName(
+<a name="63" href="#63">63</a>                  <strong>new</strong> QName(Sandesha2Constants.WSRM.NS_URI_RM, Sandesha2Constants.WSRM.CREATE_SEQUENCE_RESPONSE));
+<a name="64" href="#64">64</a>          OMElement identifierPart = createSeqResponsePart.getFirstChildWithName(
+<a name="65" href="#65">65</a>                  <strong>new</strong> QName(Sandesha2Constants.WSRM.NS_URI_RM, Sandesha2Constants.WSRM.IDENTIFIER));
+<a name="66" href="#66">66</a>          assertEquals(<span class="string">"uuid:88754b00-161a-11da-b6d6-8198de3c47c5"</span>, identifierPart.getText());
+<a name="67" href="#67">67</a>  
+<a name="68" href="#68">68</a>          OMElement acceptPart = createSeqResponsePart.getFirstChildWithName(
+<a name="69" href="#69">69</a>                  <strong>new</strong> QName(Sandesha2Constants.WSRM.NS_URI_RM, Sandesha2Constants.WSRM.ACCEPT));
+<a name="70" href="#70">70</a>          OMElement acksToPart = acceptPart.getFirstChildWithName(
+<a name="71" href="#71">71</a>                  <strong>new</strong> QName(Sandesha2Constants.WSRM.NS_URI_RM, Sandesha2Constants.WSRM.ACKS_TO));
+<a name="72" href="#72">72</a>          OMElement addressPart = acksToPart.getFirstChildWithName(<strong>new</strong> QName(
+<a name="73" href="#73">73</a>  				Sandesha2Constants.WSA.NS_URI_ADDRESSING, Sandesha2Constants.WSA.ADDRESS));
+<a name="74" href="#74">74</a>          assertEquals(<span class="string">"http://localhost:8070/axis/services/TestService"</span>, addressPart.getText());
+<a name="75" href="#75">75</a>      }
+<a name="76" href="#76">76</a>  }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Added: webservices/site/trunk/targets/sandesha/sandesha2/xref-test/org/apache/sandesha2/wsrm/CreateSequenceTest.html
URL: http://svn.apache.org/viewcvs/webservices/site/trunk/targets/sandesha/sandesha2/xref-test/org/apache/sandesha2/wsrm/CreateSequenceTest.html?rev=349924&view=auto
==============================================================================
--- webservices/site/trunk/targets/sandesha/sandesha2/xref-test/org/apache/sandesha2/wsrm/CreateSequenceTest.html (added)
+++ webservices/site/trunk/targets/sandesha/sandesha2/xref-test/org/apache/sandesha2/wsrm/CreateSequenceTest.html Wed Nov 30 03:11:01 2005
@@ -0,0 +1,88 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>CreateSequenceTest xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<pre>
+
+<a name="1" href="#1">1</a>   <strong>package</strong> <a href="../../../../org/apache/sandesha2/wsrm/package-summary.html">org.apache.sandesha2.wsrm</a>;
+<a name="2" href="#2">2</a>   
+<a name="3" href="#3">3</a>   <strong>import</strong> org.apache.sandesha2.SandeshaTestCase;
+<a name="4" href="#4">4</a>   <strong>import</strong> org.apache.sandesha2.Sandesha2Constants;
+<a name="5" href="#5">5</a>   <strong>import</strong> <a href="../../../../org/apache/sandesha2/wsrm/package-summary.html">org.apache.sandesha2.wsrm</a>.*;
+<a name="6" href="#6">6</a>   <strong>import</strong> org.apache.axis2.soap.SOAPEnvelope;
+<a name="7" href="#7">7</a>   <strong>import</strong> org.apache.axis2.soap.SOAPFactory;
+<a name="8" href="#8">8</a>   <strong>import</strong> org.apache.axis2.addressing.EndpointReference;
+<a name="9" href="#9">9</a>   <strong>import</strong> org.apache.axis2.om.OMAbstractFactory;
+<a name="10" href="#10">10</a>  <strong>import</strong> org.apache.axis2.om.OMElement;
+<a name="11" href="#11">11</a>  
+<a name="12" href="#12">12</a>  <strong>import</strong> javax.xml.namespace.QName;
+<a name="13" href="#13">13</a>  
+<a name="14" href="#14">14</a>  <em>/**<em>*</em></em>
+<a name="15" href="#15">15</a>  <em> * Created by IntelliJ IDEA.</em>
+<a name="16" href="#16">16</a>  <em> * User: sanka</em>
+<a name="17" href="#17">17</a>  <em> * Date: Oct 6, 2005</em>
+<a name="18" href="#18">18</a>  <em> * Time: 10:39:03 PM</em>
+<a name="19" href="#19">19</a>  <em> * To change this template use File | Settings | File Templates.</em>
+<a name="20" href="#20">20</a>  <em> */</em>
+<a name="21" href="#21">21</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../org/apache/sandesha2/wsrm/CreateSequenceTest.html">CreateSequenceTest</a> <strong>extends</strong> <a href="../../../../org/apache/sandesha2/SandeshaTestCase.html">SandeshaTestCase</a> {
+<a name="22" href="#22">22</a>  
+<a name="23" href="#23">23</a>  	SOAPFactory factory = OMAbstractFactory.getSOAP11Factory();
+<a name="24" href="#24">24</a>  	
+<a name="25" href="#25">25</a>      <strong>public</strong> <a href="../../../../org/apache/sandesha2/wsrm/CreateSequenceTest.html">CreateSequenceTest</a>() {
+<a name="26" href="#26">26</a>          <strong>super</strong>(<span class="string">"CreateSequenceTest"</span>);
+<a name="27" href="#27">27</a>      }
+<a name="28" href="#28">28</a>  
+<a name="29" href="#29">29</a>      <strong>public</strong> <strong>void</strong> testfromOMElement() {
+<a name="30" href="#30">30</a>          CreateSequence createSequence = <strong>new</strong> CreateSequence(factory);
+<a name="31" href="#31">31</a>          createSequence.fromOMElement(getSOAPEnvelope(<span class="string">""</span>, <span class="string">"CreateSequence.xml"</span>).getBody());
+<a name="32" href="#32">32</a>  
+<a name="33" href="#33">33</a>          AcksTo acksTo = createSequence.getAcksTo();
+<a name="34" href="#34">34</a>          Address address = acksTo.getAddress();
+<a name="35" href="#35">35</a>          assertEquals(<span class="string">"http://127.0.0.1:9090/axis/services/RMService"</span>, address.getEpr().getAddress());
+<a name="36" href="#36">36</a>  
+<a name="37" href="#37">37</a>          SequenceOffer offer = createSequence.getSequenceOffer();
+<a name="38" href="#38">38</a>          Identifier identifier = offer.getIdentifer();
+<a name="39" href="#39">39</a>          assertEquals(<span class="string">"uuid:c3671020-15e0-11da-9b3b-f0439d4867bd"</span>, identifier.getIdentifier());
+<a name="40" href="#40">40</a>  
+<a name="41" href="#41">41</a>      }
+<a name="42" href="#42">42</a>  
+<a name="43" href="#43">43</a>      <strong>public</strong> <strong>void</strong> testToSOAPEnvelope() {
+<a name="44" href="#44">44</a>          CreateSequence createSequence = <strong>new</strong> CreateSequence(factory);
+<a name="45" href="#45">45</a>  
+<a name="46" href="#46">46</a>          AcksTo acksTo = <strong>new</strong> AcksTo(factory);
+<a name="47" href="#47">47</a>          Address address = <strong>new</strong> Address(factory);
+<a name="48" href="#48">48</a>          address.setEpr(<strong>new</strong> EndpointReference(<span class="string">"http://127.0.0.1:9090/axis/services/RMService"</span>));
+<a name="49" href="#49">49</a>          acksTo.setAddress(address);
+<a name="50" href="#50">50</a>          createSequence.setAcksTo(acksTo);
+<a name="51" href="#51">51</a>  
+<a name="52" href="#52">52</a>          SequenceOffer sequenceOffer = <strong>new</strong> SequenceOffer(factory);
+<a name="53" href="#53">53</a>          Identifier identifier = <strong>new</strong> Identifier(factory);
+<a name="54" href="#54">54</a>          identifier.setIndentifer(<span class="string">"uuid:c3671020-15e0-11da-9b3b-f0439d4867bd"</span>);
+<a name="55" href="#55">55</a>          sequenceOffer.setIdentifier(identifier);
+<a name="56" href="#56">56</a>          createSequence.setSequenceOffer(sequenceOffer);
+<a name="57" href="#57">57</a>  
+<a name="58" href="#58">58</a>          SOAPEnvelope envelope = getEmptySOAPEnvelope();
+<a name="59" href="#59">59</a>          createSequence.toSOAPEnvelope(envelope);
+<a name="60" href="#60">60</a>  
+<a name="61" href="#61">61</a>          OMElement createSequencePart = envelope.getBody().getFirstChildWithName(<strong>new</strong> QName(Sandesha2Constants.WSRM.NS_URI_RM,
+<a name="62" href="#62">62</a>                          Sandesha2Constants.WSRM.CREATE_SEQUENCE));
+<a name="63" href="#63">63</a>          OMElement acksToPart = createSequencePart.getFirstChildWithName(<strong>new</strong> QName(
+<a name="64" href="#64">64</a>  				Sandesha2Constants.WSRM.NS_URI_RM, Sandesha2Constants.WSRM.ACKS_TO));
+<a name="65" href="#65">65</a>  		OMElement addressPart = acksToPart.getFirstChildWithName(<strong>new</strong> QName(
+<a name="66" href="#66">66</a>                  Sandesha2Constants.WSA.NS_URI_ADDRESSING, Sandesha2Constants.WSA.ADDRESS));
+<a name="67" href="#67">67</a>          assertEquals(<span class="string">"http://127.0.0.1:9090/axis/services/RMService"</span>, addressPart.getText());
+<a name="68" href="#68">68</a>  
+<a name="69" href="#69">69</a>          OMElement offerPart = createSequencePart.getFirstChildWithName(
+<a name="70" href="#70">70</a>                  <strong>new</strong> QName(Sandesha2Constants.WSRM.NS_URI_RM, Sandesha2Constants.WSRM.SEQUENCE_OFFER));
+<a name="71" href="#71">71</a>          OMElement identifierPart = offerPart.getFirstChildWithName(
+<a name="72" href="#72">72</a>                  <strong>new</strong> QName(Sandesha2Constants.WSRM.NS_URI_RM, Sandesha2Constants.WSRM.IDENTIFIER));
+<a name="73" href="#73">73</a>          assertEquals(<span class="string">"uuid:c3671020-15e0-11da-9b3b-f0439d4867bd"</span>, identifierPart.getText());
+<a name="74" href="#74">74</a>      }
+<a name="75" href="#75">75</a>  }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Added: webservices/site/trunk/targets/sandesha/sandesha2/xref-test/org/apache/sandesha2/wsrm/SequenceAcknowledgementTest.html
URL: http://svn.apache.org/viewcvs/webservices/site/trunk/targets/sandesha/sandesha2/xref-test/org/apache/sandesha2/wsrm/SequenceAcknowledgementTest.html?rev=349924&view=auto
==============================================================================
--- webservices/site/trunk/targets/sandesha/sandesha2/xref-test/org/apache/sandesha2/wsrm/SequenceAcknowledgementTest.html (added)
+++ webservices/site/trunk/targets/sandesha/sandesha2/xref-test/org/apache/sandesha2/wsrm/SequenceAcknowledgementTest.html Wed Nov 30 03:11:01 2005
@@ -0,0 +1,97 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>SequenceAcknowledgementTest xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<pre>
+
+<a name="1" href="#1">1</a>   <strong>package</strong> <a href="../../../../org/apache/sandesha2/wsrm/package-summary.html">org.apache.sandesha2.wsrm</a>;
+<a name="2" href="#2">2</a>   
+<a name="3" href="#3">3</a>   <strong>import</strong> org.apache.sandesha2.SandeshaTestCase;
+<a name="4" href="#4">4</a>   <strong>import</strong> org.apache.sandesha2.Sandesha2Constants;
+<a name="5" href="#5">5</a>   <strong>import</strong> org.apache.axis2.soap.SOAPEnvelope;
+<a name="6" href="#6">6</a>   <strong>import</strong> org.apache.axis2.soap.SOAPFactory;
+<a name="7" href="#7">7</a>   <strong>import</strong> org.apache.axis2.om.OMAbstractFactory;
+<a name="8" href="#8">8</a>   <strong>import</strong> org.apache.axis2.om.OMElement;
+<a name="9" href="#9">9</a>   
+<a name="10" href="#10">10</a>  <strong>import</strong> javax.xml.namespace.QName;
+<a name="11" href="#11">11</a>  <strong>import</strong> java.util.Iterator;
+<a name="12" href="#12">12</a>  
+<a name="13" href="#13">13</a>  <em>/**<em>*</em></em>
+<a name="14" href="#14">14</a>  <em> * Created by IntelliJ IDEA.</em>
+<a name="15" href="#15">15</a>  <em> * User: sanka</em>
+<a name="16" href="#16">16</a>  <em> * Date: Oct 7, 2005</em>
+<a name="17" href="#17">17</a>  <em> * Time: 3:52:12 AM</em>
+<a name="18" href="#18">18</a>  <em> * To change this template use File | Settings | File Templates.</em>
+<a name="19" href="#19">19</a>  <em> */</em>
+<a name="20" href="#20">20</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../org/apache/sandesha2/wsrm/SequenceAcknowledgementTest.html">SequenceAcknowledgementTest</a> <strong>extends</strong> <a href="../../../../org/apache/sandesha2/SandeshaTestCase.html">SandeshaTestCase</a> {
+<a name="21" href="#21">21</a>  
+<a name="22" href="#22">22</a>  	SOAPFactory factory = OMAbstractFactory.getSOAP11Factory();
+<a name="23" href="#23">23</a>  	
+<a name="24" href="#24">24</a>      <strong>public</strong> <a href="../../../../org/apache/sandesha2/wsrm/SequenceAcknowledgementTest.html">SequenceAcknowledgementTest</a>() {
+<a name="25" href="#25">25</a>          <strong>super</strong>(<span class="string">"SequenceAcknowledgementTest"</span>);
+<a name="26" href="#26">26</a>      }
+<a name="27" href="#27">27</a>  
+<a name="28" href="#28">28</a>      <strong>public</strong> <strong>void</strong> testFromOMElement() {
+<a name="29" href="#29">29</a>          SequenceAcknowledgement sequenceAck = <strong>new</strong> SequenceAcknowledgement(factory);
+<a name="30" href="#30">30</a>          SOAPEnvelope env = getSOAPEnvelope(<span class="string">""</span>, <span class="string">"SequenceAcknowledgement.xml"</span>);
+<a name="31" href="#31">31</a>          sequenceAck.fromOMElement(env.getHeader());
+<a name="32" href="#32">32</a>  
+<a name="33" href="#33">33</a>          Identifier identifier = sequenceAck.getIdentifier();
+<a name="34" href="#34">34</a>          assertEquals(<span class="string">"uuid:897ee740-1624-11da-a28e-b3b9c4e71445"</span>, identifier.getIdentifier());
+<a name="35" href="#35">35</a>  
+<a name="36" href="#36">36</a>          Iterator iterator = sequenceAck.getAcknowledgementRanges().iterator();
+<a name="37" href="#37">37</a>          <strong>while</strong> (iterator.hasNext()) {
+<a name="38" href="#38">38</a>              AcknowledgementRange ackRange = (AcknowledgementRange) iterator.next();
+<a name="39" href="#39">39</a>              <strong>if</strong> (ackRange.getLowerValue() == 1){
+<a name="40" href="#40">40</a>                  assertEquals(2, ackRange.getUpperValue());
+<a name="41" href="#41">41</a>  
+<a name="42" href="#42">42</a>              } <strong>else</strong> <strong>if</strong> (ackRange.getLowerValue() == 4) {
+<a name="43" href="#43">43</a>                  assertEquals(6, ackRange.getUpperValue());
+<a name="44" href="#44">44</a>  
+<a name="45" href="#45">45</a>              } <strong>else</strong> <strong>if</strong> (ackRange.getLowerValue() == 8) {
+<a name="46" href="#46">46</a>                  assertEquals(10, ackRange.getUpperValue());
+<a name="47" href="#47">47</a>              }
+<a name="48" href="#48">48</a>          }
+<a name="49" href="#49">49</a>  
+<a name="50" href="#50">50</a>          iterator = sequenceAck.getNackList().iterator();
+<a name="51" href="#51">51</a>          <strong>while</strong> (iterator.hasNext()) {
+<a name="52" href="#52">52</a>              Nack nack = (Nack) iterator.next();
+<a name="53" href="#53">53</a>              <strong>if</strong> (nack.getNackNumber() == 3) {
+<a name="54" href="#54">54</a>  
+<a name="55" href="#55">55</a>              } <strong>else</strong> <strong>if</strong> (nack.getNackNumber() == 7) {
+<a name="56" href="#56">56</a>  
+<a name="57" href="#57">57</a>              } <strong>else</strong> {
+<a name="58" href="#58">58</a>                  fail(<span class="string">"invalid nack : "</span> +  nack.getNackNumber());
+<a name="59" href="#59">59</a>              }
+<a name="60" href="#60">60</a>          }
+<a name="61" href="#61">61</a>  
+<a name="62" href="#62">62</a>  
+<a name="63" href="#63">63</a>      }
+<a name="64" href="#64">64</a>  
+<a name="65" href="#65">65</a>      <strong>public</strong> <strong>void</strong> testToOMElement() {
+<a name="66" href="#66">66</a>          SequenceAcknowledgement seqAck = <strong>new</strong> SequenceAcknowledgement(factory);
+<a name="67" href="#67">67</a>          Identifier identifier = <strong>new</strong> Identifier(factory);
+<a name="68" href="#68">68</a>          identifier.setIndentifer(<span class="string">"uuid:897ee740-1624-11da-a28e-b3b9c4e71445"</span>);
+<a name="69" href="#69">69</a>          seqAck.setIdentifier(identifier);
+<a name="70" href="#70">70</a>  
+<a name="71" href="#71">71</a>          SOAPEnvelope env = getEmptySOAPEnvelope();
+<a name="72" href="#72">72</a>          seqAck.toSOAPEnvelope(env);
+<a name="73" href="#73">73</a>  
+<a name="74" href="#74">74</a>          OMElement sequenceAckPart = env.getHeader().getFirstChildWithName(
+<a name="75" href="#75">75</a>                  <strong>new</strong> QName(Sandesha2Constants.WSRM.NS_URI_RM, Sandesha2Constants.WSRM.SEQUENCE_ACK));
+<a name="76" href="#76">76</a>          OMElement identifierPart = sequenceAckPart.getFirstChildWithName(
+<a name="77" href="#77">77</a>                  <strong>new</strong> QName(Sandesha2Constants.WSRM.NS_URI_RM, Sandesha2Constants.WSRM.IDENTIFIER));
+<a name="78" href="#78">78</a>          assertEquals(<span class="string">"uuid:897ee740-1624-11da-a28e-b3b9c4e71445"</span>, identifierPart.getText());
+<a name="79" href="#79">79</a>  
+<a name="80" href="#80">80</a>  
+<a name="81" href="#81">81</a>  
+<a name="82" href="#82">82</a>  
+<a name="83" href="#83">83</a>      }
+<a name="84" href="#84">84</a>  }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Added: webservices/site/trunk/targets/sandesha/sandesha2/xref-test/org/apache/sandesha2/wsrm/SequenceTest.html
URL: http://svn.apache.org/viewcvs/webservices/site/trunk/targets/sandesha/sandesha2/xref-test/org/apache/sandesha2/wsrm/SequenceTest.html?rev=349924&view=auto
==============================================================================
--- webservices/site/trunk/targets/sandesha/sandesha2/xref-test/org/apache/sandesha2/wsrm/SequenceTest.html (added)
+++ webservices/site/trunk/targets/sandesha/sandesha2/xref-test/org/apache/sandesha2/wsrm/SequenceTest.html Wed Nov 30 03:11:01 2005
@@ -0,0 +1,77 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>SequenceTest xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<pre>
+
+<a name="1" href="#1">1</a>   <strong>package</strong> <a href="../../../../org/apache/sandesha2/wsrm/package-summary.html">org.apache.sandesha2.wsrm</a>;
+<a name="2" href="#2">2</a>   
+<a name="3" href="#3">3</a>   <strong>import</strong> org.apache.sandesha2.SandeshaTestCase;
+<a name="4" href="#4">4</a>   <strong>import</strong> org.apache.sandesha2.Sandesha2Constants;
+<a name="5" href="#5">5</a>   <strong>import</strong> org.apache.axis2.soap.SOAPEnvelope;
+<a name="6" href="#6">6</a>   <strong>import</strong> org.apache.axis2.soap.SOAPFactory;
+<a name="7" href="#7">7</a>   <strong>import</strong> org.apache.axis2.om.OMAbstractFactory;
+<a name="8" href="#8">8</a>   <strong>import</strong> org.apache.axis2.om.OMElement;
+<a name="9" href="#9">9</a>   
+<a name="10" href="#10">10</a>  <strong>import</strong> javax.xml.namespace.QName;
+<a name="11" href="#11">11</a>  
+<a name="12" href="#12">12</a>  <em>/**<em>*</em></em>
+<a name="13" href="#13">13</a>  <em> * Created by IntelliJ IDEA.</em>
+<a name="14" href="#14">14</a>  <em> * User: sanka</em>
+<a name="15" href="#15">15</a>  <em> * Date: Oct 7, 2005</em>
+<a name="16" href="#16">16</a>  <em> * Time: 4:31:54 AM</em>
+<a name="17" href="#17">17</a>  <em> * To change this template use File | Settings | File Templates.</em>
+<a name="18" href="#18">18</a>  <em> */</em>
+<a name="19" href="#19">19</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../org/apache/sandesha2/wsrm/SequenceTest.html">SequenceTest</a> <strong>extends</strong> <a href="../../../../org/apache/sandesha2/SandeshaTestCase.html">SandeshaTestCase</a> {
+<a name="20" href="#20">20</a>  
+<a name="21" href="#21">21</a>  	SOAPFactory factory = OMAbstractFactory.getSOAP11Factory();
+<a name="22" href="#22">22</a>  	
+<a name="23" href="#23">23</a>      <strong>public</strong> <a href="../../../../org/apache/sandesha2/wsrm/SequenceTest.html">SequenceTest</a>() {
+<a name="24" href="#24">24</a>          <strong>super</strong>(<span class="string">"SequenceTest"</span>);
+<a name="25" href="#25">25</a>  
+<a name="26" href="#26">26</a>      }
+<a name="27" href="#27">27</a>  
+<a name="28" href="#28">28</a>      <strong>public</strong> <strong>void</strong> testFromOMElement() {
+<a name="29" href="#29">29</a>          SOAPEnvelope env = getSOAPEnvelope(<span class="string">""</span>, <span class="string">"Sequence.xml"</span>);
+<a name="30" href="#30">30</a>          Sequence sequence = <strong>new</strong> Sequence(factory);
+<a name="31" href="#31">31</a>          sequence.fromOMElement(env.getHeader());
+<a name="32" href="#32">32</a>  
+<a name="33" href="#33">33</a>          Identifier identifier = sequence.getIdentifier();
+<a name="34" href="#34">34</a>          assertEquals(<span class="string">"uuid:879da420-1624-11da-bed9-84d13db13902"</span>, identifier.getIdentifier());
+<a name="35" href="#35">35</a>  
+<a name="36" href="#36">36</a>          MessageNumber msgNo = sequence.getMessageNumber();
+<a name="37" href="#37">37</a>          assertEquals(1, msgNo.getMessageNumber());
+<a name="38" href="#38">38</a>      }
+<a name="39" href="#39">39</a>  
+<a name="40" href="#40">40</a>      <strong>public</strong> <strong>void</strong> testToSOAPEnvelope() {
+<a name="41" href="#41">41</a>          Sequence sequence = <strong>new</strong> Sequence(factory);
+<a name="42" href="#42">42</a>  
+<a name="43" href="#43">43</a>          Identifier identifier = <strong>new</strong> Identifier(factory);
+<a name="44" href="#44">44</a>          identifier.setIndentifer(<span class="string">"uuid:879da420-1624-11da-bed9-84d13db13902"</span>);
+<a name="45" href="#45">45</a>          sequence.setIdentifier(identifier);
+<a name="46" href="#46">46</a>  
+<a name="47" href="#47">47</a>          MessageNumber msgNo = <strong>new</strong> MessageNumber(factory);
+<a name="48" href="#48">48</a>          msgNo.setMessageNumber(1);
+<a name="49" href="#49">49</a>          sequence.setMessageNumber(msgNo);
+<a name="50" href="#50">50</a>  
+<a name="51" href="#51">51</a>          SOAPEnvelope envelope = getEmptySOAPEnvelope();
+<a name="52" href="#52">52</a>          sequence.toSOAPEnvelope(envelope);
+<a name="53" href="#53">53</a>  
+<a name="54" href="#54">54</a>          OMElement sequencePart = envelope.getHeader().getFirstChildWithName(
+<a name="55" href="#55">55</a>                  <strong>new</strong> QName(Sandesha2Constants.WSRM.NS_URI_RM, Sandesha2Constants.WSRM.SEQUENCE));
+<a name="56" href="#56">56</a>          OMElement identifierPart = sequencePart.getFirstChildWithName(
+<a name="57" href="#57">57</a>                  <strong>new</strong> QName(Sandesha2Constants.WSRM.NS_URI_RM, Sandesha2Constants.WSRM.IDENTIFIER));
+<a name="58" href="#58">58</a>          assertEquals(<span class="string">"uuid:879da420-1624-11da-bed9-84d13db13902"</span>, identifierPart.getText());
+<a name="59" href="#59">59</a>  
+<a name="60" href="#60">60</a>          OMElement msgNumberPart = sequencePart.getFirstChildWithName(
+<a name="61" href="#61">61</a>  				<strong>new</strong> QName (Sandesha2Constants.WSRM.NS_URI_RM,Sandesha2Constants.WSRM.MSG_NUMBER));
+<a name="62" href="#62">62</a>          assertEquals(1, Long.parseLong(msgNumberPart.getText()));
+<a name="63" href="#63">63</a>      }
+<a name="64" href="#64">64</a>  }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Added: webservices/site/trunk/targets/sandesha/sandesha2/xref-test/org/apache/sandesha2/wsrm/TerminateSequenceTest.html
URL: http://svn.apache.org/viewcvs/webservices/site/trunk/targets/sandesha/sandesha2/xref-test/org/apache/sandesha2/wsrm/TerminateSequenceTest.html?rev=349924&view=auto
==============================================================================
--- webservices/site/trunk/targets/sandesha/sandesha2/xref-test/org/apache/sandesha2/wsrm/TerminateSequenceTest.html (added)
+++ webservices/site/trunk/targets/sandesha/sandesha2/xref-test/org/apache/sandesha2/wsrm/TerminateSequenceTest.html Wed Nov 30 03:11:01 2005
@@ -0,0 +1,64 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>TerminateSequenceTest xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<pre>
+
+<a name="1" href="#1">1</a>   <strong>package</strong> <a href="../../../../org/apache/sandesha2/wsrm/package-summary.html">org.apache.sandesha2.wsrm</a>;
+<a name="2" href="#2">2</a>   
+<a name="3" href="#3">3</a>   <strong>import</strong> org.apache.sandesha2.SandeshaTestCase;
+<a name="4" href="#4">4</a>   <strong>import</strong> org.apache.sandesha2.Sandesha2Constants;
+<a name="5" href="#5">5</a>   <strong>import</strong> org.apache.axis2.soap.SOAPEnvelope;
+<a name="6" href="#6">6</a>   <strong>import</strong> org.apache.axis2.soap.SOAPFactory;
+<a name="7" href="#7">7</a>   <strong>import</strong> org.apache.axis2.om.OMAbstractFactory;
+<a name="8" href="#8">8</a>   <strong>import</strong> org.apache.axis2.om.OMElement;
+<a name="9" href="#9">9</a>   
+<a name="10" href="#10">10</a>  <strong>import</strong> javax.xml.namespace.QName;
+<a name="11" href="#11">11</a>  
+<a name="12" href="#12">12</a>  <em>/**<em>*</em></em>
+<a name="13" href="#13">13</a>  <em> * Created by IntelliJ IDEA.</em>
+<a name="14" href="#14">14</a>  <em> * User: sanka</em>
+<a name="15" href="#15">15</a>  <em> * Date: Oct 7, 2005</em>
+<a name="16" href="#16">16</a>  <em> * Time: 3:36:59 AM</em>
+<a name="17" href="#17">17</a>  <em> * To change this template use File | Settings | File Templates.</em>
+<a name="18" href="#18">18</a>  <em> */</em>
+<a name="19" href="#19">19</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../org/apache/sandesha2/wsrm/TerminateSequenceTest.html">TerminateSequenceTest</a> <strong>extends</strong> <a href="../../../../org/apache/sandesha2/SandeshaTestCase.html">SandeshaTestCase</a> {
+<a name="20" href="#20">20</a>  
+<a name="21" href="#21">21</a>  	SOAPFactory factory = OMAbstractFactory.getSOAP11Factory();
+<a name="22" href="#22">22</a>  	
+<a name="23" href="#23">23</a>      <strong>public</strong> <a href="../../../../org/apache/sandesha2/wsrm/TerminateSequenceTest.html">TerminateSequenceTest</a>() {
+<a name="24" href="#24">24</a>          <strong>super</strong>(<span class="string">"TerminateSequenceTest"</span>);
+<a name="25" href="#25">25</a>      }
+<a name="26" href="#26">26</a>  
+<a name="27" href="#27">27</a>      <strong>public</strong> <strong>void</strong> testFromOMElement() {
+<a name="28" href="#28">28</a>          TerminateSequence terminateSequence =  <strong>new</strong> TerminateSequence(factory);
+<a name="29" href="#29">29</a>          SOAPEnvelope env = getSOAPEnvelope(<span class="string">""</span>, <span class="string">"TerminateSequence.xml"</span>);
+<a name="30" href="#30">30</a>          terminateSequence.fromOMElement(env.getBody());
+<a name="31" href="#31">31</a>  
+<a name="32" href="#32">32</a>          Identifier identifier = terminateSequence.getIdentifier();
+<a name="33" href="#33">33</a>          assertEquals(<span class="string">"uuid:59b0c910-1625-11da-bdfc-b09ed76a1f06"</span>, identifier.getIdentifier());
+<a name="34" href="#34">34</a>      }
+<a name="35" href="#35">35</a>  
+<a name="36" href="#36">36</a>      <strong>public</strong> <strong>void</strong> testToSOAPEnvelope() {
+<a name="37" href="#37">37</a>          TerminateSequence terminateSequence = <strong>new</strong> TerminateSequence(factory);
+<a name="38" href="#38">38</a>          Identifier identifier = <strong>new</strong> Identifier(factory);
+<a name="39" href="#39">39</a>          identifier.setIndentifer(<span class="string">"uuid:59b0c910-1625-11da-bdfc-b09ed76a1f06"</span>);
+<a name="40" href="#40">40</a>          terminateSequence.setIdentifier(identifier);
+<a name="41" href="#41">41</a>  
+<a name="42" href="#42">42</a>          SOAPEnvelope env = getEmptySOAPEnvelope();
+<a name="43" href="#43">43</a>          terminateSequence.toSOAPEnvelope(env);
+<a name="44" href="#44">44</a>  
+<a name="45" href="#45">45</a>          OMElement terminateSeqPart = env.getBody().getFirstChildWithName(
+<a name="46" href="#46">46</a>                  <strong>new</strong> QName(Sandesha2Constants.WSRM.NS_URI_RM, Sandesha2Constants.WSRM.TERMINATE_SEQUENCE));
+<a name="47" href="#47">47</a>          OMElement identifierPart = terminateSeqPart.getFirstChildWithName(
+<a name="48" href="#48">48</a>                  <strong>new</strong> QName(Sandesha2Constants.WSRM.NS_URI_RM, Sandesha2Constants.WSRM.IDENTIFIER));
+<a name="49" href="#49">49</a>          assertEquals(<span class="string">"uuid:59b0c910-1625-11da-bdfc-b09ed76a1f06"</span>, identifierPart.getText());
+<a name="50" href="#50">50</a>      }
+<a name="51" href="#51">51</a>  }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Added: webservices/site/trunk/targets/sandesha/sandesha2/xref-test/org/apache/sandesha2/wsrm/package-frame.html
URL: http://svn.apache.org/viewcvs/webservices/site/trunk/targets/sandesha/sandesha2/xref-test/org/apache/sandesha2/wsrm/package-frame.html?rev=349924&view=auto
==============================================================================
--- webservices/site/trunk/targets/sandesha/sandesha2/xref-test/org/apache/sandesha2/wsrm/package-frame.html (added)
+++ webservices/site/trunk/targets/sandesha/sandesha2/xref-test/org/apache/sandesha2/wsrm/package-frame.html Wed Nov 30 03:11:01 2005
@@ -0,0 +1,43 @@
+
+
+  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+  <html lang="en">
+    <head>
+      <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"></meta>
+      <title>Apache Sandesha2 0.9 Reference Package org.apache.sandesha2.wsrm</title>
+      <link rel="stylesheet" href="../../../../stylesheet.css" type="text/css" title="style"></link>
+    </head>
+    <body>
+
+      <h3>
+        <a href="package-summary.html" target="classFrame">org.apache.sandesha2.wsrm</a>
+      </h3>
+
+      <h3>Classes</h3>
+
+      <ul>
+        
+          <li>
+            <a href="CreateSequenceResponseTest.html" target="classFrame">CreateSequenceResponseTest</a>
+          </li>
+        
+          <li>
+            <a href="CreateSequenceTest.html" target="classFrame">CreateSequenceTest</a>
+          </li>
+        
+          <li>
+            <a href="SequenceAcknowledgementTest.html" target="classFrame">SequenceAcknowledgementTest</a>
+          </li>
+        
+          <li>
+            <a href="SequenceTest.html" target="classFrame">SequenceTest</a>
+          </li>
+        
+          <li>
+            <a href="TerminateSequenceTest.html" target="classFrame">TerminateSequenceTest</a>
+          </li>
+        
+      </ul>
+
+    </body>
+  </html>

Added: webservices/site/trunk/targets/sandesha/sandesha2/xref-test/org/apache/sandesha2/wsrm/package-summary.html
URL: http://svn.apache.org/viewcvs/webservices/site/trunk/targets/sandesha/sandesha2/xref-test/org/apache/sandesha2/wsrm/package-summary.html?rev=349924&view=auto
==============================================================================
--- webservices/site/trunk/targets/sandesha/sandesha2/xref-test/org/apache/sandesha2/wsrm/package-summary.html (added)
+++ webservices/site/trunk/targets/sandesha/sandesha2/xref-test/org/apache/sandesha2/wsrm/package-summary.html Wed Nov 30 03:11:01 2005
@@ -0,0 +1,126 @@
+
+
+  
+
+  
+    
+
+    
+
+    
+
+  
+      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+      <html lang="en">
+        <head>
+          <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"></meta>
+          <title>Apache Sandesha2 0.9 Reference Package </title>
+          <link rel="stylesheet" href="../../../../stylesheet.css" type="text/css" title="style"></link>
+        </head>
+        <body>
+
+          
+      
+      
+
+      <div class="overview">
+        <ul>
+          <li>
+            <a href="../../../../overview-summary.html">Overview</a>
+          </li>
+          <li class="selected">Package</li>
+        </ul>
+      </div>
+      <div class="framenoframe">
+        <ul>
+          <li>
+            <a href="../../../../index.html" target="_top">FRAMES</a>
+          </li>
+          <li>
+            <a href="package-summary.html" target="_top">NO FRAMES</a>
+          </li>
+        </ul>
+      </div>
+
+      
+
+    
+      
+      <h2>Package org.apache.sandesha2.wsrm</h2>
+
+      <table class="summary">
+        <thead>
+          <tr>
+            <th>Class Summary</th>
+          </tr>
+        </thead>
+
+        <tbody>
+          
+            <tr>
+              <td>
+                <a href="CreateSequenceResponseTest.html" target="classFrame">CreateSequenceResponseTest</a>
+              </td>
+            </tr>
+          
+            <tr>
+              <td>
+                <a href="CreateSequenceTest.html" target="classFrame">CreateSequenceTest</a>
+              </td>
+            </tr>
+          
+            <tr>
+              <td>
+                <a href="SequenceAcknowledgementTest.html" target="classFrame">SequenceAcknowledgementTest</a>
+              </td>
+            </tr>
+          
+            <tr>
+              <td>
+                <a href="SequenceTest.html" target="classFrame">SequenceTest</a>
+              </td>
+            </tr>
+          
+            <tr>
+              <td>
+                <a href="TerminateSequenceTest.html" target="classFrame">TerminateSequenceTest</a>
+              </td>
+            </tr>
+          
+        </tbody>
+      </table>
+
+    
+      
+      
+
+      <div class="overview">
+        <ul>
+          <li>
+            <a href="../../../../overview-summary.html">Overview</a>
+          </li>
+          <li class="selected">Package</li>
+        </ul>
+      </div>
+      <div class="framenoframe">
+        <ul>
+          <li>
+            <a href="../../../../index.html" target="_top">FRAMES</a>
+          </li>
+          <li>
+            <a href="package-summary.html" target="_top">NO FRAMES</a>
+          </li>
+        </ul>
+      </div>
+
+      
+
+    
+    
+
+          <hr></hr>
+
+          Copyright &copy; 2005 Apache Web Services. All Rights Reserved.
+        </body>
+      </html>
+    

Added: webservices/site/trunk/targets/sandesha/sandesha2/xref-test/overview-frame.html
URL: http://svn.apache.org/viewcvs/webservices/site/trunk/targets/sandesha/sandesha2/xref-test/overview-frame.html?rev=349924&view=auto
==============================================================================
--- webservices/site/trunk/targets/sandesha/sandesha2/xref-test/overview-frame.html (added)
+++ webservices/site/trunk/targets/sandesha/sandesha2/xref-test/overview-frame.html Wed Nov 30 03:11:01 2005
@@ -0,0 +1,35 @@
+
+
+  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+  <html lang="en">
+    <head>
+      <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"></meta>
+      <title>Apache Sandesha2 0.9 Reference</title>
+      <link rel="stylesheet" href="stylesheet.css" type="text/css" title="style"></link>
+    </head>
+    <body>
+
+      <h3>
+        <a href="allclasses-frame.html" target="packageFrame">All Classes</a>
+      </h3>
+
+      <h3>Packages</h3>
+
+      <ul>
+        
+          <li>
+            <a href="org/apache/sandesha2/package-frame.html" target="packageFrame">org.apache.sandesha2</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/storage/package-frame.html" target="packageFrame">org.apache.sandesha2.storage</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/wsrm/package-frame.html" target="packageFrame">org.apache.sandesha2.wsrm</a>
+          </li>
+        
+      </ul>
+
+    </body>
+  </html>

Added: webservices/site/trunk/targets/sandesha/sandesha2/xref-test/overview-summary.html
URL: http://svn.apache.org/viewcvs/webservices/site/trunk/targets/sandesha/sandesha2/xref-test/overview-summary.html?rev=349924&view=auto
==============================================================================
--- webservices/site/trunk/targets/sandesha/sandesha2/xref-test/overview-summary.html (added)
+++ webservices/site/trunk/targets/sandesha/sandesha2/xref-test/overview-summary.html Wed Nov 30 03:11:01 2005
@@ -0,0 +1,106 @@
+
+
+  
+
+  
+    
+
+    
+
+    
+  
+      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+      <html lang="en">
+        <head>
+          <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"></meta>
+          <title>Apache Sandesha2 0.9 Reference</title>
+          <link rel="stylesheet" href="stylesheet.css" type="text/css" title="style"></link>
+        </head>
+        <body>
+
+          
+      
+      
+
+      <div class="overview">
+        <ul>
+          <li class="selected">Overview</li>
+          <li>Package</li>
+        </ul>
+      </div>
+      <div class="framenoframe">
+        <ul>
+          <li>
+            <a href="index.html" target="_top">FRAMES</a>
+          </li>
+          <li>
+            <a href="overview-summary.html" target="_top">NO FRAMES</a>
+          </li>
+        </ul>
+      </div>
+
+      
+    
+      
+
+      <h2>Apache Sandesha2 0.9 Reference</h2>
+
+      <table class="summary">
+        <thead>
+          <tr>
+            <th>Packages</th>
+          </tr>
+        </thead>
+
+        <tbody>
+          
+            <tr>
+              <td>
+                <a href="org/apache/sandesha2/package-summary.html">org.apache.sandesha2</a>
+              </td>
+            </tr>
+          
+            <tr>
+              <td>
+                <a href="org/apache/sandesha2/storage/package-summary.html">org.apache.sandesha2.storage</a>
+              </td>
+            </tr>
+          
+            <tr>
+              <td>
+                <a href="org/apache/sandesha2/wsrm/package-summary.html">org.apache.sandesha2.wsrm</a>
+              </td>
+            </tr>
+          
+        </tbody>
+      </table>
+
+    
+      
+      
+
+      <div class="overview">
+        <ul>
+          <li class="selected">Overview</li>
+          <li>Package</li>
+        </ul>
+      </div>
+      <div class="framenoframe">
+        <ul>
+          <li>
+            <a href="index.html" target="_top">FRAMES</a>
+          </li>
+          <li>
+            <a href="overview-summary.html" target="_top">NO FRAMES</a>
+          </li>
+        </ul>
+      </div>
+
+      
+    
+    
+          <hr></hr>
+          Copyright &copy; 2005 Apache Web Services. All Rights Reserved.
+        </body>
+      </html>
+    

Added: webservices/site/trunk/targets/sandesha/sandesha2/xref-test/stylesheet.css
URL: http://svn.apache.org/viewcvs/webservices/site/trunk/targets/sandesha/sandesha2/xref-test/stylesheet.css?rev=349924&view=auto
==============================================================================
--- webservices/site/trunk/targets/sandesha/sandesha2/xref-test/stylesheet.css (added)
+++ webservices/site/trunk/targets/sandesha/sandesha2/xref-test/stylesheet.css Wed Nov 30 03:11:01 2005
@@ -0,0 +1,96 @@
+/* Javadoc style sheet */
+/* Define colors, fonts and other style attributes here to override the defaults  */
+body { 
+	background-color: #fff;
+	font-family: Arial, Helvetica, sans-serif;
+}
+
+a:link {
+ color: #00f;
+}
+a:visited {
+ color: #00a;
+}
+
+a:active, a:hover {
+ color: #f30 !important;
+}
+
+ul, li	{
+	list-style-type:none ;
+	margin:0;
+	padding:0;
+}
+
+table td{
+	padding: 3px;
+	border: 1px solid #000;
+}
+table{
+	width:100%;
+	border: 1px solid #000;
+	border-collapse: collapse;
+}
+
+div.overview {
+	background-color:#ddd;
+	padding: 4px 4px 4px 0;
+}
+div.overview li, div.framenoframe li {
+	display: inline;
+}
+div.framenoframe {
+	text-align: center;
+	font-size: x-small;
+}
+div.framenoframe li {
+	margin: 0 3px 0 3px;
+}
+div.overview li {
+	margin:3px 3px 0 3px;
+	padding: 4px;
+}
+li.selected {
+	background-color:#888;
+	color: #fff;
+	font-weight: bold;
+}
+
+table.summary {
+	margin-bottom: 20px;
+}
+table.summary td, table.summary th {
+	font-weight: bold;
+	text-align: left;
+	padding: 3px;
+}
+table.summary th{
+	background-color:#036;
+	color: #fff;
+}
+table.summary td{
+	background-color:#eee;
+	border: 1px solid black;
+}
+
+em {
+	color: #A00;
+}
+em.comment {
+	color: #390;
+}
+.string {
+	color: #009;
+}
+div#footer {
+	text-align:center;
+}
+#overview {
+	padding:2px;
+}
+            
+            
+hr {
+	height: 1px;
+	color: #000;
+}
\ No newline at end of file



Mime
View raw message