commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r899679 [12/23] - in /websites/production/commons/content/proper/commons-scxml: ./ 0.5/ 0.6/ 0.7/ 0.8/ 0.9/ apidocs/ apidocs/org/apache/commons/scxml2/ apidocs/org/apache/commons/scxml2/class-use/ apidocs/org/apache/commons/scxml2/env/ apid...
Date Sun, 02 Mar 2014 02:25:51 GMT
Modified: websites/production/commons/content/proper/commons-scxml/testapidocs/src-html/org/apache/commons/scxml2/io/SCXMLReaderTest.MyAction.html
==============================================================================
--- websites/production/commons/content/proper/commons-scxml/testapidocs/src-html/org/apache/commons/scxml2/io/SCXMLReaderTest.MyAction.html (original)
+++ websites/production/commons/content/proper/commons-scxml/testapidocs/src-html/org/apache/commons/scxml2/io/SCXMLReaderTest.MyAction.html Sun Mar  2 02:25:48 2014
@@ -73,7 +73,7 @@
 <span class="sourceLineNo">065</span>    private static String oldLogFactoryProperty;<a name="line.65"></a>
 <span class="sourceLineNo">066</span><a name="line.66"></a>
 <span class="sourceLineNo">067</span>    // Test data<a name="line.67"></a>
-<span class="sourceLineNo">068</span>    private URL microwave01, microwave02, transitions01, prefix01, send01,<a name="line.68"></a>
+<span class="sourceLineNo">068</span>    private URL transitions01, prefix01, send01,<a name="line.68"></a>
 <span class="sourceLineNo">069</span>        microwave03, microwave04, scxmlinitialattr, action01,<a name="line.69"></a>
 <span class="sourceLineNo">070</span>        scxmlWithInvalidElems, groovyClosure;<a name="line.70"></a>
 <span class="sourceLineNo">071</span>    private SCXML scxml;<a name="line.71"></a>
@@ -101,341 +101,321 @@
 <span class="sourceLineNo">093</span>     */<a name="line.93"></a>
 <span class="sourceLineNo">094</span>    @Before<a name="line.94"></a>
 <span class="sourceLineNo">095</span>    public void before() {<a name="line.95"></a>
-<span class="sourceLineNo">096</span>        microwave01 = this.getClass().getClassLoader().<a name="line.96"></a>
-<span class="sourceLineNo">097</span>            getResource("org/apache/commons/scxml2/env/jsp/microwave-01.xml");<a name="line.97"></a>
-<span class="sourceLineNo">098</span>        microwave02 = this.getClass().getClassLoader().<a name="line.98"></a>
-<span class="sourceLineNo">099</span>            getResource("org/apache/commons/scxml2/env/jsp/microwave-02.xml");<a name="line.99"></a>
-<span class="sourceLineNo">100</span>        microwave03 = this.getClass().getClassLoader().<a name="line.100"></a>
-<span class="sourceLineNo">101</span>            getResource("org/apache/commons/scxml2/env/jexl/microwave-03.xml");<a name="line.101"></a>
-<span class="sourceLineNo">102</span>        microwave04 = this.getClass().getClassLoader().<a name="line.102"></a>
-<span class="sourceLineNo">103</span>            getResource("org/apache/commons/scxml2/env/jexl/microwave-04.xml");<a name="line.103"></a>
-<span class="sourceLineNo">104</span>        transitions01 = this.getClass().getClassLoader().<a name="line.104"></a>
-<span class="sourceLineNo">105</span>            getResource("org/apache/commons/scxml2/transitions-01.xml");<a name="line.105"></a>
-<span class="sourceLineNo">106</span>        send01 = this.getClass().getClassLoader().<a name="line.106"></a>
-<span class="sourceLineNo">107</span>            getResource("org/apache/commons/scxml2/send-01.xml");<a name="line.107"></a>
-<span class="sourceLineNo">108</span>        prefix01 = this.getClass().getClassLoader().<a name="line.108"></a>
-<span class="sourceLineNo">109</span>            getResource("org/apache/commons/scxml2/prefix-01.xml");<a name="line.109"></a>
-<span class="sourceLineNo">110</span>        scxmlinitialattr = this.getClass().getClassLoader().<a name="line.110"></a>
-<span class="sourceLineNo">111</span>            getResource("org/apache/commons/scxml2/io/scxml-initial-attr.xml");<a name="line.111"></a>
-<span class="sourceLineNo">112</span>        action01 = this.getClass().getClassLoader().<a name="line.112"></a>
-<span class="sourceLineNo">113</span>            getResource("org/apache/commons/scxml2/io/custom-action-body-test-1.xml");<a name="line.113"></a>
-<span class="sourceLineNo">114</span>        scxmlWithInvalidElems = this.getClass().getClassLoader().<a name="line.114"></a>
-<span class="sourceLineNo">115</span>            getResource("org/apache/commons/scxml2/io/scxml-with-invalid-elems.xml");<a name="line.115"></a>
-<span class="sourceLineNo">116</span>        groovyClosure = this.getClass().getClassLoader().<a name="line.116"></a>
-<span class="sourceLineNo">117</span>                getResource("org/apache/commons/scxml2/env/groovy/groovy-closure.xml");<a name="line.117"></a>
+<span class="sourceLineNo">096</span>        microwave03 = this.getClass().getClassLoader().<a name="line.96"></a>
+<span class="sourceLineNo">097</span>            getResource("org/apache/commons/scxml2/env/jexl/microwave-03.xml");<a name="line.97"></a>
+<span class="sourceLineNo">098</span>        microwave04 = this.getClass().getClassLoader().<a name="line.98"></a>
+<span class="sourceLineNo">099</span>            getResource("org/apache/commons/scxml2/env/jexl/microwave-04.xml");<a name="line.99"></a>
+<span class="sourceLineNo">100</span>        transitions01 = this.getClass().getClassLoader().<a name="line.100"></a>
+<span class="sourceLineNo">101</span>            getResource("org/apache/commons/scxml2/transitions-01.xml");<a name="line.101"></a>
+<span class="sourceLineNo">102</span>        send01 = this.getClass().getClassLoader().<a name="line.102"></a>
+<span class="sourceLineNo">103</span>            getResource("org/apache/commons/scxml2/send-01.xml");<a name="line.103"></a>
+<span class="sourceLineNo">104</span>        prefix01 = this.getClass().getClassLoader().<a name="line.104"></a>
+<span class="sourceLineNo">105</span>            getResource("org/apache/commons/scxml2/prefix-01.xml");<a name="line.105"></a>
+<span class="sourceLineNo">106</span>        scxmlinitialattr = this.getClass().getClassLoader().<a name="line.106"></a>
+<span class="sourceLineNo">107</span>            getResource("org/apache/commons/scxml2/io/scxml-initial-attr.xml");<a name="line.107"></a>
+<span class="sourceLineNo">108</span>        action01 = this.getClass().getClassLoader().<a name="line.108"></a>
+<span class="sourceLineNo">109</span>            getResource("org/apache/commons/scxml2/io/custom-action-body-test-1.xml");<a name="line.109"></a>
+<span class="sourceLineNo">110</span>        scxmlWithInvalidElems = this.getClass().getClassLoader().<a name="line.110"></a>
+<span class="sourceLineNo">111</span>            getResource("org/apache/commons/scxml2/io/scxml-with-invalid-elems.xml");<a name="line.111"></a>
+<span class="sourceLineNo">112</span>        groovyClosure = this.getClass().getClassLoader().<a name="line.112"></a>
+<span class="sourceLineNo">113</span>                getResource("org/apache/commons/scxml2/env/groovy/groovy-closure.xml");<a name="line.113"></a>
+<span class="sourceLineNo">114</span><a name="line.114"></a>
+<span class="sourceLineNo">115</span>        scxmlReaderLog = LogFactory.getLog(SCXMLReader.class);<a name="line.115"></a>
+<span class="sourceLineNo">116</span>        clearRecordedLogMessages();<a name="line.116"></a>
+<span class="sourceLineNo">117</span>    }<a name="line.117"></a>
 <span class="sourceLineNo">118</span><a name="line.118"></a>
-<span class="sourceLineNo">119</span>        scxmlReaderLog = LogFactory.getLog(SCXMLReader.class);<a name="line.119"></a>
-<span class="sourceLineNo">120</span>        clearRecordedLogMessages();<a name="line.120"></a>
-<span class="sourceLineNo">121</span>    }<a name="line.121"></a>
-<span class="sourceLineNo">122</span><a name="line.122"></a>
-<span class="sourceLineNo">123</span>    /**<a name="line.123"></a>
-<span class="sourceLineNo">124</span>     * Tear down instance variables required by this test case.<a name="line.124"></a>
-<span class="sourceLineNo">125</span>     */<a name="line.125"></a>
-<span class="sourceLineNo">126</span>    @After<a name="line.126"></a>
-<span class="sourceLineNo">127</span>    public void after() {<a name="line.127"></a>
-<span class="sourceLineNo">128</span>        microwave01 = microwave02 = microwave03 = microwave04 = transitions01 = prefix01 = send01 = action01 = <a name="line.128"></a>
-<span class="sourceLineNo">129</span>                scxmlinitialattr = scxmlWithInvalidElems = groovyClosure = null;<a name="line.129"></a>
-<span class="sourceLineNo">130</span>        scxml = null;<a name="line.130"></a>
-<span class="sourceLineNo">131</span>        scxmlAsString = null;<a name="line.131"></a>
-<span class="sourceLineNo">132</span>    }<a name="line.132"></a>
-<span class="sourceLineNo">133</span><a name="line.133"></a>
-<span class="sourceLineNo">134</span>    /**<a name="line.134"></a>
-<span class="sourceLineNo">135</span>     * Test the implementation<a name="line.135"></a>
-<span class="sourceLineNo">136</span>     */    <a name="line.136"></a>
-<span class="sourceLineNo">137</span>    @Test<a name="line.137"></a>
-<span class="sourceLineNo">138</span>    public void testSCXMLReaderMicrowave01Sample() throws Exception {<a name="line.138"></a>
-<span class="sourceLineNo">139</span>        scxml = SCXMLTestHelper.parse(microwave01);<a name="line.139"></a>
-<span class="sourceLineNo">140</span>        Assert.assertNotNull(scxml);<a name="line.140"></a>
-<span class="sourceLineNo">141</span>        scxmlAsString = serialize(scxml);<a name="line.141"></a>
-<span class="sourceLineNo">142</span>        Assert.assertNotNull(scxmlAsString);<a name="line.142"></a>
-<span class="sourceLineNo">143</span>    }<a name="line.143"></a>
-<span class="sourceLineNo">144</span>    <a name="line.144"></a>
-<span class="sourceLineNo">145</span>    @Test<a name="line.145"></a>
-<span class="sourceLineNo">146</span>    public void testSCXMLReaderMicrowave02Sample() throws Exception {<a name="line.146"></a>
-<span class="sourceLineNo">147</span>        scxml = SCXMLTestHelper.parse(microwave02);<a name="line.147"></a>
-<span class="sourceLineNo">148</span>        Assert.assertNotNull(scxml);<a name="line.148"></a>
-<span class="sourceLineNo">149</span>        scxmlAsString = serialize(scxml);<a name="line.149"></a>
-<span class="sourceLineNo">150</span>        Assert.assertNotNull(scxmlAsString);<a name="line.150"></a>
-<span class="sourceLineNo">151</span>    }<a name="line.151"></a>
-<span class="sourceLineNo">152</span>    <a name="line.152"></a>
-<span class="sourceLineNo">153</span>    @Test<a name="line.153"></a>
-<span class="sourceLineNo">154</span>    public void testSCXMLReaderMicrowave03Sample() throws Exception {<a name="line.154"></a>
-<span class="sourceLineNo">155</span>        scxml = SCXMLTestHelper.parse(microwave03);<a name="line.155"></a>
-<span class="sourceLineNo">156</span>        Assert.assertNotNull(scxml);<a name="line.156"></a>
-<span class="sourceLineNo">157</span>        scxmlAsString = serialize(scxml);<a name="line.157"></a>
-<span class="sourceLineNo">158</span>        Assert.assertNotNull(scxmlAsString);<a name="line.158"></a>
-<span class="sourceLineNo">159</span>    }<a name="line.159"></a>
-<span class="sourceLineNo">160</span>    <a name="line.160"></a>
-<span class="sourceLineNo">161</span>    @Test<a name="line.161"></a>
-<span class="sourceLineNo">162</span>    public void testSCXMLReaderMicrowave04Sample() throws Exception {<a name="line.162"></a>
-<span class="sourceLineNo">163</span>        scxml = SCXMLTestHelper.parse(microwave04);<a name="line.163"></a>
-<span class="sourceLineNo">164</span>        Assert.assertNotNull(scxml);<a name="line.164"></a>
-<span class="sourceLineNo">165</span>        scxmlAsString = serialize(scxml);<a name="line.165"></a>
-<span class="sourceLineNo">166</span>        Assert.assertNotNull(scxmlAsString);<a name="line.166"></a>
-<span class="sourceLineNo">167</span>    }<a name="line.167"></a>
-<span class="sourceLineNo">168</span>    <a name="line.168"></a>
-<span class="sourceLineNo">169</span>    @Test<a name="line.169"></a>
-<span class="sourceLineNo">170</span>    public void testSCXMLReaderTransitions01Sample() throws Exception {<a name="line.170"></a>
-<span class="sourceLineNo">171</span>        scxml = SCXMLTestHelper.parse(transitions01);<a name="line.171"></a>
-<span class="sourceLineNo">172</span>        Assert.assertNotNull(scxml);<a name="line.172"></a>
-<span class="sourceLineNo">173</span>        scxmlAsString = serialize(scxml);<a name="line.173"></a>
-<span class="sourceLineNo">174</span>        Assert.assertNotNull(scxmlAsString);<a name="line.174"></a>
-<span class="sourceLineNo">175</span>    }<a name="line.175"></a>
-<span class="sourceLineNo">176</span>    <a name="line.176"></a>
-<span class="sourceLineNo">177</span>    @Test<a name="line.177"></a>
-<span class="sourceLineNo">178</span>    public void testSCXMLReaderPrefix01Sample() throws Exception {<a name="line.178"></a>
-<span class="sourceLineNo">179</span>        scxml = SCXMLTestHelper.parse(prefix01);<a name="line.179"></a>
-<span class="sourceLineNo">180</span>        Assert.assertNotNull(scxml);<a name="line.180"></a>
-<span class="sourceLineNo">181</span>        scxmlAsString = serialize(scxml);<a name="line.181"></a>
-<span class="sourceLineNo">182</span>        Assert.assertNotNull(scxmlAsString);<a name="line.182"></a>
-<span class="sourceLineNo">183</span>    }<a name="line.183"></a>
-<span class="sourceLineNo">184</span>    <a name="line.184"></a>
-<span class="sourceLineNo">185</span>    @Test<a name="line.185"></a>
-<span class="sourceLineNo">186</span>    public void testSCXMLReaderSend01Sample() throws Exception {<a name="line.186"></a>
-<span class="sourceLineNo">187</span>        // Digest<a name="line.187"></a>
-<span class="sourceLineNo">188</span>        scxml = SCXMLTestHelper.parse(send01);<a name="line.188"></a>
-<span class="sourceLineNo">189</span>        State ten = (State) scxml.getInitialTarget();<a name="line.189"></a>
-<span class="sourceLineNo">190</span>        Assert.assertEquals("ten", ten.getId());<a name="line.190"></a>
-<span class="sourceLineNo">191</span>        List&lt;Transition&gt; ten_done = ten.getTransitionsList("ten.done");<a name="line.191"></a>
-<span class="sourceLineNo">192</span>        Assert.assertEquals(1, ten_done.size());<a name="line.192"></a>
-<span class="sourceLineNo">193</span>        Transition ten2twenty = ten_done.get(0);<a name="line.193"></a>
-<span class="sourceLineNo">194</span>        List&lt;Action&gt; actions = ten2twenty.getActions();<a name="line.194"></a>
-<span class="sourceLineNo">195</span>        Assert.assertEquals(1, actions.size());<a name="line.195"></a>
-<span class="sourceLineNo">196</span>        Send send = (Send) actions.get(0);<a name="line.196"></a>
-<span class="sourceLineNo">197</span>        Assert.assertEquals("send1", send.getSendid());<a name="line.197"></a>
-<span class="sourceLineNo">198</span>        /* Serialize<a name="line.198"></a>
-<span class="sourceLineNo">199</span>        scxmlAsString = serialize(scxml);<a name="line.199"></a>
-<span class="sourceLineNo">200</span>        Assert.assertNotNull(scxmlAsString);<a name="line.200"></a>
-<span class="sourceLineNo">201</span>        String expectedFoo2Serialization =<a name="line.201"></a>
-<span class="sourceLineNo">202</span>            "&lt;foo xmlns=\"http://my.test.namespace\" id=\"foo2\"&gt;"<a name="line.202"></a>
-<span class="sourceLineNo">203</span>            + "&lt;prompt xmlns=\"http://foo.bar.com/vxml3\"&gt;This is just"<a name="line.203"></a>
-<span class="sourceLineNo">204</span>            + " an example.&lt;/prompt&gt;&lt;/foo&gt;";<a name="line.204"></a>
-<span class="sourceLineNo">205</span>        Assert.assertFalse(scxmlAsString.indexOf(expectedFoo2Serialization) == -1);<a name="line.205"></a>
-<span class="sourceLineNo">206</span>        */<a name="line.206"></a>
-<span class="sourceLineNo">207</span>    }<a name="line.207"></a>
-<span class="sourceLineNo">208</span>    <a name="line.208"></a>
-<span class="sourceLineNo">209</span>    @Test<a name="line.209"></a>
-<span class="sourceLineNo">210</span>    public void testSCXMLReaderInitialAttr() throws Exception {<a name="line.210"></a>
-<span class="sourceLineNo">211</span>        scxml = SCXMLTestHelper.parse(scxmlinitialattr);<a name="line.211"></a>
-<span class="sourceLineNo">212</span>        Assert.assertNotNull(scxml);<a name="line.212"></a>
-<span class="sourceLineNo">213</span>        scxmlAsString = serialize(scxml);<a name="line.213"></a>
-<span class="sourceLineNo">214</span>        Assert.assertNotNull(scxmlAsString);<a name="line.214"></a>
-<span class="sourceLineNo">215</span>        Final foo = (Final) scxml.getInitialTarget();<a name="line.215"></a>
-<span class="sourceLineNo">216</span>        Assert.assertEquals("foo", foo.getId());<a name="line.216"></a>
-<span class="sourceLineNo">217</span>    }<a name="line.217"></a>
-<span class="sourceLineNo">218</span>    <a name="line.218"></a>
-<span class="sourceLineNo">219</span>    @Test<a name="line.219"></a>
-<span class="sourceLineNo">220</span>    public void testSCXMLReaderCustomActionWithBodyTextSample() throws Exception {<a name="line.220"></a>
-<span class="sourceLineNo">221</span>        List&lt;CustomAction&gt; cas = new ArrayList&lt;CustomAction&gt;();<a name="line.221"></a>
-<span class="sourceLineNo">222</span>        CustomAction ca = new CustomAction("http://my.custom-actions.domain",<a name="line.222"></a>
-<span class="sourceLineNo">223</span>            "action", MyAction.class);<a name="line.223"></a>
-<span class="sourceLineNo">224</span>        cas.add(ca);<a name="line.224"></a>
-<span class="sourceLineNo">225</span>        scxml = SCXMLTestHelper.parse(action01, cas);<a name="line.225"></a>
-<span class="sourceLineNo">226</span>        State state = (State) scxml.getInitialTarget();<a name="line.226"></a>
-<span class="sourceLineNo">227</span>        Assert.assertEquals("actions", state.getId());<a name="line.227"></a>
-<span class="sourceLineNo">228</span>        List&lt;Action&gt; actions = state.getOnEntry().getActions();<a name="line.228"></a>
-<span class="sourceLineNo">229</span>        Assert.assertEquals(1, actions.size());<a name="line.229"></a>
-<span class="sourceLineNo">230</span>        MyAction my = (MyAction) actions.get(0);<a name="line.230"></a>
-<span class="sourceLineNo">231</span>        Assert.assertNotNull(my);<a name="line.231"></a>
-<span class="sourceLineNo">232</span>        Assert.assertTrue(my.getExternalNodes().size() &gt; 0);<a name="line.232"></a>
-<span class="sourceLineNo">233</span>    }<a name="line.233"></a>
-<span class="sourceLineNo">234</span><a name="line.234"></a>
-<span class="sourceLineNo">235</span>    @Test<a name="line.235"></a>
-<span class="sourceLineNo">236</span>    public void testSCXMLReaderWithInvalidElements() throws Exception {<a name="line.236"></a>
-<span class="sourceLineNo">237</span>        // In the default lenient/verbose mode (strict == false &amp;&amp; silent == false),<a name="line.237"></a>
-<span class="sourceLineNo">238</span>        // the model exception should be just logged without a model exception.<a name="line.238"></a>
-<span class="sourceLineNo">239</span>        Configuration configuration = new Configuration();<a name="line.239"></a>
-<span class="sourceLineNo">240</span>        scxml = SCXMLReader.read(scxmlWithInvalidElems, configuration);<a name="line.240"></a>
-<span class="sourceLineNo">241</span>        Assert.assertNotNull(scxml);<a name="line.241"></a>
-<span class="sourceLineNo">242</span>        scxmlAsString = serialize(scxml);<a name="line.242"></a>
-<span class="sourceLineNo">243</span>        Assert.assertNotNull(scxmlAsString);<a name="line.243"></a>
-<span class="sourceLineNo">244</span>        Final foo = (Final) scxml.getInitialTarget();<a name="line.244"></a>
-<span class="sourceLineNo">245</span>        Assert.assertEquals("foo", foo.getId());<a name="line.245"></a>
-<span class="sourceLineNo">246</span>        Datamodel dataModel = scxml.getDatamodel();<a name="line.246"></a>
-<span class="sourceLineNo">247</span>        Assert.assertNotNull(dataModel);<a name="line.247"></a>
-<span class="sourceLineNo">248</span>        List&lt;Data&gt; dataList = dataModel.getData();<a name="line.248"></a>
-<span class="sourceLineNo">249</span>        Assert.assertEquals(1, dataList.size());<a name="line.249"></a>
-<span class="sourceLineNo">250</span>        Assert.assertEquals("time", dataList.get(0).getId());<a name="line.250"></a>
-<span class="sourceLineNo">251</span>        assertContainsRecordedLogMessage("Ignoring unknown or invalid element &lt;baddata&gt; in namespace \"http://www.w3.org/2005/07/scxml\" as child  of &lt;datamodel&gt;");<a name="line.251"></a>
-<span class="sourceLineNo">252</span>        assertContainsRecordedLogMessage("Ignoring unknown or invalid element &lt;baddata&gt; in namespace \"http://www.example.com/scxml\" as child  of &lt;datamodel&gt;");<a name="line.252"></a>
-<span class="sourceLineNo">253</span>        assertContainsRecordedLogMessage("Ignoring unknown or invalid element &lt;trace&gt; in namespace \"http://www.w3.org/2005/07/scxml\" as child  of &lt;onentry&gt;");<a name="line.253"></a>
-<span class="sourceLineNo">254</span>        assertContainsRecordedLogMessage("Ignoring unknown or invalid element &lt;onbeforeexit&gt; in namespace \"http://www.w3.org/2005/07/scxml\" as child  of &lt;final&gt;");<a name="line.254"></a>
-<span class="sourceLineNo">255</span><a name="line.255"></a>
-<span class="sourceLineNo">256</span>        // In the lenient/silent mode (strict == false &amp;&amp; silent == true),<a name="line.256"></a>
-<span class="sourceLineNo">257</span>        // no model exception is logged.<a name="line.257"></a>
-<span class="sourceLineNo">258</span>        clearRecordedLogMessages();<a name="line.258"></a>
-<span class="sourceLineNo">259</span>        scxml = null;<a name="line.259"></a>
-<span class="sourceLineNo">260</span>        configuration = new Configuration();<a name="line.260"></a>
-<span class="sourceLineNo">261</span>        configuration.setStrict(false);<a name="line.261"></a>
-<span class="sourceLineNo">262</span>        configuration.setSilent(true);<a name="line.262"></a>
-<span class="sourceLineNo">263</span>        scxml = SCXMLReader.read(scxmlWithInvalidElems, configuration);<a name="line.263"></a>
-<span class="sourceLineNo">264</span>        Assert.assertNotNull(scxml);<a name="line.264"></a>
-<span class="sourceLineNo">265</span>        scxmlAsString = serialize(scxml);<a name="line.265"></a>
-<span class="sourceLineNo">266</span>        Assert.assertNotNull(scxmlAsString);<a name="line.266"></a>
-<span class="sourceLineNo">267</span>        foo = (Final) scxml.getInitialTarget();<a name="line.267"></a>
-<span class="sourceLineNo">268</span>        Assert.assertEquals("foo", foo.getId());<a name="line.268"></a>
-<span class="sourceLineNo">269</span>        dataModel = scxml.getDatamodel();<a name="line.269"></a>
-<span class="sourceLineNo">270</span>        Assert.assertNotNull(dataModel);<a name="line.270"></a>
-<span class="sourceLineNo">271</span>        dataList = dataModel.getData();<a name="line.271"></a>
-<span class="sourceLineNo">272</span>        Assert.assertEquals(1, dataList.size());<a name="line.272"></a>
-<span class="sourceLineNo">273</span>        Assert.assertEquals("time", dataList.get(0).getId());<a name="line.273"></a>
-<span class="sourceLineNo">274</span>        assertNotContainsRecordedLogMessage("Ignoring unknown or invalid element &lt;baddata&gt; in namespace \"http://www.w3.org/2005/07/scxml\" as child  of &lt;datamodel&gt;");<a name="line.274"></a>
-<span class="sourceLineNo">275</span>        assertNotContainsRecordedLogMessage("Ignoring unknown or invalid element &lt;baddata&gt; in namespace \"http://www.example.com/scxml\" as child  of &lt;datamodel&gt;");<a name="line.275"></a>
-<span class="sourceLineNo">276</span>        assertNotContainsRecordedLogMessage("Ignoring unknown or invalid element &lt;trace&gt; in namespace \"http://www.w3.org/2005/07/scxml\" as child  of &lt;onentry&gt;");<a name="line.276"></a>
-<span class="sourceLineNo">277</span>        assertNotContainsRecordedLogMessage("Ignoring unknown or invalid element &lt;onbeforeexit&gt; in namespace \"http://www.w3.org/2005/07/scxml\" as child  of &lt;final&gt;");<a name="line.277"></a>
-<span class="sourceLineNo">278</span><a name="line.278"></a>
-<span class="sourceLineNo">279</span>        // In strict/verbose mode (strict == true &amp;&amp; silent == false), it should fail to read the model and catch a model exception<a name="line.279"></a>
-<span class="sourceLineNo">280</span>        // with warning logs because of the invalid &lt;baddata&gt; element.<a name="line.280"></a>
-<span class="sourceLineNo">281</span>        clearRecordedLogMessages();<a name="line.281"></a>
-<span class="sourceLineNo">282</span>        scxml = null;<a name="line.282"></a>
-<span class="sourceLineNo">283</span>        configuration = new Configuration();<a name="line.283"></a>
-<span class="sourceLineNo">284</span>        configuration.setStrict(true);<a name="line.284"></a>
-<span class="sourceLineNo">285</span>        configuration.setSilent(false);<a name="line.285"></a>
-<span class="sourceLineNo">286</span>        try {<a name="line.286"></a>
-<span class="sourceLineNo">287</span>            scxml = SCXMLReader.read(scxmlWithInvalidElems, configuration);<a name="line.287"></a>
-<span class="sourceLineNo">288</span>            Assert.fail("In strict mode, it should have thrown a model exception.");<a name="line.288"></a>
-<span class="sourceLineNo">289</span>        } catch (ModelException e) {<a name="line.289"></a>
-<span class="sourceLineNo">290</span>            Assert.assertTrue(e.getMessage().contains("Ignoring unknown or invalid element &lt;baddata&gt;"));<a name="line.290"></a>
-<span class="sourceLineNo">291</span>        }<a name="line.291"></a>
-<span class="sourceLineNo">292</span>        assertContainsRecordedLogMessage("Ignoring unknown or invalid element &lt;baddata&gt; in namespace \"http://www.w3.org/2005/07/scxml\" as child  of &lt;datamodel&gt;");<a name="line.292"></a>
-<span class="sourceLineNo">293</span>        assertContainsRecordedLogMessage("Ignoring unknown or invalid element &lt;baddata&gt; in namespace \"http://www.example.com/scxml\" as child  of &lt;datamodel&gt;");<a name="line.293"></a>
-<span class="sourceLineNo">294</span>        assertContainsRecordedLogMessage("Ignoring unknown or invalid element &lt;trace&gt; in namespace \"http://www.w3.org/2005/07/scxml\" as child  of &lt;onentry&gt;");<a name="line.294"></a>
-<span class="sourceLineNo">295</span>        assertContainsRecordedLogMessage("Ignoring unknown or invalid element &lt;onbeforeexit&gt; in namespace \"http://www.w3.org/2005/07/scxml\" as child  of &lt;final&gt;");<a name="line.295"></a>
-<span class="sourceLineNo">296</span><a name="line.296"></a>
-<span class="sourceLineNo">297</span>        // In strict/silent mode (strict == true &amp;&amp; silent == true), it should fail to read the model and catch a model exception<a name="line.297"></a>
-<span class="sourceLineNo">298</span>        // without warning logs because of the invalid &lt;baddata&gt; element.<a name="line.298"></a>
-<span class="sourceLineNo">299</span>        clearRecordedLogMessages();<a name="line.299"></a>
-<span class="sourceLineNo">300</span>        scxml = null;<a name="line.300"></a>
-<span class="sourceLineNo">301</span>        configuration = new Configuration();<a name="line.301"></a>
-<span class="sourceLineNo">302</span>        configuration.setStrict(true);<a name="line.302"></a>
-<span class="sourceLineNo">303</span>        configuration.setSilent(true);<a name="line.303"></a>
-<span class="sourceLineNo">304</span>        try {<a name="line.304"></a>
-<span class="sourceLineNo">305</span>            scxml = SCXMLReader.read(scxmlWithInvalidElems, configuration);<a name="line.305"></a>
-<span class="sourceLineNo">306</span>            Assert.fail("In strict mode, it should have thrown a model exception.");<a name="line.306"></a>
-<span class="sourceLineNo">307</span>        } catch (ModelException e) {<a name="line.307"></a>
-<span class="sourceLineNo">308</span>            Assert.assertTrue(e.getMessage().contains("Ignoring unknown or invalid element &lt;baddata&gt;"));<a name="line.308"></a>
-<span class="sourceLineNo">309</span>        }<a name="line.309"></a>
-<span class="sourceLineNo">310</span>        assertNotContainsRecordedLogMessage("Ignoring unknown or invalid element &lt;baddata&gt; in namespace \"http://www.w3.org/2005/07/scxml\" as child  of &lt;datamodel&gt;");<a name="line.310"></a>
-<span class="sourceLineNo">311</span>        assertNotContainsRecordedLogMessage("Ignoring unknown or invalid element &lt;baddata&gt; in namespace \"http://www.example.com/scxml\" as child  of &lt;datamodel&gt;");<a name="line.311"></a>
-<span class="sourceLineNo">312</span>        assertNotContainsRecordedLogMessage("Ignoring unknown or invalid element &lt;trace&gt; in namespace \"http://www.w3.org/2005/07/scxml\" as child  of &lt;onentry&gt;");<a name="line.312"></a>
-<span class="sourceLineNo">313</span>        assertNotContainsRecordedLogMessage("Ignoring unknown or invalid element &lt;onbeforeexit&gt; in namespace \"http://www.w3.org/2005/07/scxml\" as child  of &lt;final&gt;");<a name="line.313"></a>
-<span class="sourceLineNo">314</span>    }<a name="line.314"></a>
-<span class="sourceLineNo">315</span><a name="line.315"></a>
-<span class="sourceLineNo">316</span>    @Test<a name="line.316"></a>
-<span class="sourceLineNo">317</span>    public void testSCXMLReaderGroovyClosure() throws Exception {<a name="line.317"></a>
-<span class="sourceLineNo">318</span>        scxml = SCXMLTestHelper.parse(groovyClosure);<a name="line.318"></a>
-<span class="sourceLineNo">319</span>        Assert.assertNotNull(scxml);<a name="line.319"></a>
-<span class="sourceLineNo">320</span>        Assert.assertNotNull(scxml.getInitialScript());<a name="line.320"></a>
-<span class="sourceLineNo">321</span>        scxmlAsString = serialize(scxml);<a name="line.321"></a>
-<span class="sourceLineNo">322</span>        Assert.assertNotNull(scxmlAsString);<a name="line.322"></a>
-<span class="sourceLineNo">323</span>        scxml = SCXMLTestHelper.parse(new StringReader(scxmlAsString), null);<a name="line.323"></a>
-<span class="sourceLineNo">324</span>        Assert.assertNotNull(scxml);<a name="line.324"></a>
-<span class="sourceLineNo">325</span>        Assert.assertNotNull(scxml.getInitialScript());<a name="line.325"></a>
+<span class="sourceLineNo">119</span>    /**<a name="line.119"></a>
+<span class="sourceLineNo">120</span>     * Tear down instance variables required by this test case.<a name="line.120"></a>
+<span class="sourceLineNo">121</span>     */<a name="line.121"></a>
+<span class="sourceLineNo">122</span>    @After<a name="line.122"></a>
+<span class="sourceLineNo">123</span>    public void after() {<a name="line.123"></a>
+<span class="sourceLineNo">124</span>        microwave03 = microwave04 = transitions01 = prefix01 = send01 = action01 =<a name="line.124"></a>
+<span class="sourceLineNo">125</span>                scxmlinitialattr = scxmlWithInvalidElems = groovyClosure = null;<a name="line.125"></a>
+<span class="sourceLineNo">126</span>        scxml = null;<a name="line.126"></a>
+<span class="sourceLineNo">127</span>        scxmlAsString = null;<a name="line.127"></a>
+<span class="sourceLineNo">128</span>    }<a name="line.128"></a>
+<span class="sourceLineNo">129</span><a name="line.129"></a>
+<span class="sourceLineNo">130</span>    /**<a name="line.130"></a>
+<span class="sourceLineNo">131</span>     * Test the implementation<a name="line.131"></a>
+<span class="sourceLineNo">132</span>     */    <a name="line.132"></a>
+<span class="sourceLineNo">133</span>    @Test<a name="line.133"></a>
+<span class="sourceLineNo">134</span>    public void testSCXMLReaderMicrowave03Sample() throws Exception {<a name="line.134"></a>
+<span class="sourceLineNo">135</span>        scxml = SCXMLTestHelper.parse(microwave03);<a name="line.135"></a>
+<span class="sourceLineNo">136</span>        Assert.assertNotNull(scxml);<a name="line.136"></a>
+<span class="sourceLineNo">137</span>        scxmlAsString = serialize(scxml);<a name="line.137"></a>
+<span class="sourceLineNo">138</span>        Assert.assertNotNull(scxmlAsString);<a name="line.138"></a>
+<span class="sourceLineNo">139</span>    }<a name="line.139"></a>
+<span class="sourceLineNo">140</span>    <a name="line.140"></a>
+<span class="sourceLineNo">141</span>    @Test<a name="line.141"></a>
+<span class="sourceLineNo">142</span>    public void testSCXMLReaderMicrowave04Sample() throws Exception {<a name="line.142"></a>
+<span class="sourceLineNo">143</span>        scxml = SCXMLTestHelper.parse(microwave04);<a name="line.143"></a>
+<span class="sourceLineNo">144</span>        Assert.assertNotNull(scxml);<a name="line.144"></a>
+<span class="sourceLineNo">145</span>        scxmlAsString = serialize(scxml);<a name="line.145"></a>
+<span class="sourceLineNo">146</span>        Assert.assertNotNull(scxmlAsString);<a name="line.146"></a>
+<span class="sourceLineNo">147</span>    }<a name="line.147"></a>
+<span class="sourceLineNo">148</span>    <a name="line.148"></a>
+<span class="sourceLineNo">149</span>    @Test<a name="line.149"></a>
+<span class="sourceLineNo">150</span>    public void testSCXMLReaderTransitions01Sample() throws Exception {<a name="line.150"></a>
+<span class="sourceLineNo">151</span>        scxml = SCXMLTestHelper.parse(transitions01);<a name="line.151"></a>
+<span class="sourceLineNo">152</span>        Assert.assertNotNull(scxml);<a name="line.152"></a>
+<span class="sourceLineNo">153</span>        scxmlAsString = serialize(scxml);<a name="line.153"></a>
+<span class="sourceLineNo">154</span>        Assert.assertNotNull(scxmlAsString);<a name="line.154"></a>
+<span class="sourceLineNo">155</span>    }<a name="line.155"></a>
+<span class="sourceLineNo">156</span>    <a name="line.156"></a>
+<span class="sourceLineNo">157</span>    @Test<a name="line.157"></a>
+<span class="sourceLineNo">158</span>    public void testSCXMLReaderPrefix01Sample() throws Exception {<a name="line.158"></a>
+<span class="sourceLineNo">159</span>        scxml = SCXMLTestHelper.parse(prefix01);<a name="line.159"></a>
+<span class="sourceLineNo">160</span>        Assert.assertNotNull(scxml);<a name="line.160"></a>
+<span class="sourceLineNo">161</span>        scxmlAsString = serialize(scxml);<a name="line.161"></a>
+<span class="sourceLineNo">162</span>        Assert.assertNotNull(scxmlAsString);<a name="line.162"></a>
+<span class="sourceLineNo">163</span>    }<a name="line.163"></a>
+<span class="sourceLineNo">164</span>    <a name="line.164"></a>
+<span class="sourceLineNo">165</span>    @Test<a name="line.165"></a>
+<span class="sourceLineNo">166</span>    public void testSCXMLReaderSend01Sample() throws Exception {<a name="line.166"></a>
+<span class="sourceLineNo">167</span>        // Digest<a name="line.167"></a>
+<span class="sourceLineNo">168</span>        scxml = SCXMLTestHelper.parse(send01);<a name="line.168"></a>
+<span class="sourceLineNo">169</span>        State ten = (State) scxml.getInitialTarget();<a name="line.169"></a>
+<span class="sourceLineNo">170</span>        Assert.assertEquals("ten", ten.getId());<a name="line.170"></a>
+<span class="sourceLineNo">171</span>        List&lt;Transition&gt; ten_done = ten.getTransitionsList("ten.done");<a name="line.171"></a>
+<span class="sourceLineNo">172</span>        Assert.assertEquals(1, ten_done.size());<a name="line.172"></a>
+<span class="sourceLineNo">173</span>        Transition ten2twenty = ten_done.get(0);<a name="line.173"></a>
+<span class="sourceLineNo">174</span>        List&lt;Action&gt; actions = ten2twenty.getActions();<a name="line.174"></a>
+<span class="sourceLineNo">175</span>        Assert.assertEquals(1, actions.size());<a name="line.175"></a>
+<span class="sourceLineNo">176</span>        Send send = (Send) actions.get(0);<a name="line.176"></a>
+<span class="sourceLineNo">177</span>        Assert.assertEquals("send1", send.getSendid());<a name="line.177"></a>
+<span class="sourceLineNo">178</span>        /* Serialize<a name="line.178"></a>
+<span class="sourceLineNo">179</span>        scxmlAsString = serialize(scxml);<a name="line.179"></a>
+<span class="sourceLineNo">180</span>        Assert.assertNotNull(scxmlAsString);<a name="line.180"></a>
+<span class="sourceLineNo">181</span>        String expectedFoo2Serialization =<a name="line.181"></a>
+<span class="sourceLineNo">182</span>            "&lt;foo xmlns=\"http://my.test.namespace\" id=\"foo2\"&gt;"<a name="line.182"></a>
+<span class="sourceLineNo">183</span>            + "&lt;prompt xmlns=\"http://foo.bar.com/vxml3\"&gt;This is just"<a name="line.183"></a>
+<span class="sourceLineNo">184</span>            + " an example.&lt;/prompt&gt;&lt;/foo&gt;";<a name="line.184"></a>
+<span class="sourceLineNo">185</span>        Assert.assertFalse(scxmlAsString.indexOf(expectedFoo2Serialization) == -1);<a name="line.185"></a>
+<span class="sourceLineNo">186</span>        */<a name="line.186"></a>
+<span class="sourceLineNo">187</span>    }<a name="line.187"></a>
+<span class="sourceLineNo">188</span>    <a name="line.188"></a>
+<span class="sourceLineNo">189</span>    @Test<a name="line.189"></a>
+<span class="sourceLineNo">190</span>    public void testSCXMLReaderInitialAttr() throws Exception {<a name="line.190"></a>
+<span class="sourceLineNo">191</span>        scxml = SCXMLTestHelper.parse(scxmlinitialattr);<a name="line.191"></a>
+<span class="sourceLineNo">192</span>        Assert.assertNotNull(scxml);<a name="line.192"></a>
+<span class="sourceLineNo">193</span>        scxmlAsString = serialize(scxml);<a name="line.193"></a>
+<span class="sourceLineNo">194</span>        Assert.assertNotNull(scxmlAsString);<a name="line.194"></a>
+<span class="sourceLineNo">195</span>        Final foo = (Final) scxml.getInitialTarget();<a name="line.195"></a>
+<span class="sourceLineNo">196</span>        Assert.assertEquals("foo", foo.getId());<a name="line.196"></a>
+<span class="sourceLineNo">197</span>    }<a name="line.197"></a>
+<span class="sourceLineNo">198</span>    <a name="line.198"></a>
+<span class="sourceLineNo">199</span>    @Test<a name="line.199"></a>
+<span class="sourceLineNo">200</span>    public void testSCXMLReaderCustomActionWithBodyTextSample() throws Exception {<a name="line.200"></a>
+<span class="sourceLineNo">201</span>        List&lt;CustomAction&gt; cas = new ArrayList&lt;CustomAction&gt;();<a name="line.201"></a>
+<span class="sourceLineNo">202</span>        CustomAction ca = new CustomAction("http://my.custom-actions.domain",<a name="line.202"></a>
+<span class="sourceLineNo">203</span>            "action", MyAction.class);<a name="line.203"></a>
+<span class="sourceLineNo">204</span>        cas.add(ca);<a name="line.204"></a>
+<span class="sourceLineNo">205</span>        scxml = SCXMLTestHelper.parse(action01, cas);<a name="line.205"></a>
+<span class="sourceLineNo">206</span>        State state = (State) scxml.getInitialTarget();<a name="line.206"></a>
+<span class="sourceLineNo">207</span>        Assert.assertEquals("actions", state.getId());<a name="line.207"></a>
+<span class="sourceLineNo">208</span>        List&lt;Action&gt; actions = state.getOnEntry().getActions();<a name="line.208"></a>
+<span class="sourceLineNo">209</span>        Assert.assertEquals(1, actions.size());<a name="line.209"></a>
+<span class="sourceLineNo">210</span>        MyAction my = (MyAction) actions.get(0);<a name="line.210"></a>
+<span class="sourceLineNo">211</span>        Assert.assertNotNull(my);<a name="line.211"></a>
+<span class="sourceLineNo">212</span>        Assert.assertTrue(my.getExternalNodes().size() &gt; 0);<a name="line.212"></a>
+<span class="sourceLineNo">213</span>    }<a name="line.213"></a>
+<span class="sourceLineNo">214</span><a name="line.214"></a>
+<span class="sourceLineNo">215</span>    @Test<a name="line.215"></a>
+<span class="sourceLineNo">216</span>    public void testSCXMLReaderWithInvalidElements() throws Exception {<a name="line.216"></a>
+<span class="sourceLineNo">217</span>        // In the default lenient/verbose mode (strict == false &amp;&amp; silent == false),<a name="line.217"></a>
+<span class="sourceLineNo">218</span>        // the model exception should be just logged without a model exception.<a name="line.218"></a>
+<span class="sourceLineNo">219</span>        Configuration configuration = new Configuration();<a name="line.219"></a>
+<span class="sourceLineNo">220</span>        scxml = SCXMLReader.read(scxmlWithInvalidElems, configuration);<a name="line.220"></a>
+<span class="sourceLineNo">221</span>        Assert.assertNotNull(scxml);<a name="line.221"></a>
+<span class="sourceLineNo">222</span>        scxmlAsString = serialize(scxml);<a name="line.222"></a>
+<span class="sourceLineNo">223</span>        Assert.assertNotNull(scxmlAsString);<a name="line.223"></a>
+<span class="sourceLineNo">224</span>        Final foo = (Final) scxml.getInitialTarget();<a name="line.224"></a>
+<span class="sourceLineNo">225</span>        Assert.assertEquals("foo", foo.getId());<a name="line.225"></a>
+<span class="sourceLineNo">226</span>        Datamodel dataModel = scxml.getDatamodel();<a name="line.226"></a>
+<span class="sourceLineNo">227</span>        Assert.assertNotNull(dataModel);<a name="line.227"></a>
+<span class="sourceLineNo">228</span>        List&lt;Data&gt; dataList = dataModel.getData();<a name="line.228"></a>
+<span class="sourceLineNo">229</span>        Assert.assertEquals(1, dataList.size());<a name="line.229"></a>
+<span class="sourceLineNo">230</span>        Assert.assertEquals("time", dataList.get(0).getId());<a name="line.230"></a>
+<span class="sourceLineNo">231</span>        assertContainsRecordedLogMessage("Ignoring unknown or invalid element &lt;baddata&gt; in namespace \"http://www.w3.org/2005/07/scxml\" as child  of &lt;datamodel&gt;");<a name="line.231"></a>
+<span class="sourceLineNo">232</span>        assertContainsRecordedLogMessage("Ignoring unknown or invalid element &lt;baddata&gt; in namespace \"http://www.example.com/scxml\" as child  of &lt;datamodel&gt;");<a name="line.232"></a>
+<span class="sourceLineNo">233</span>        assertContainsRecordedLogMessage("Ignoring unknown or invalid element &lt;trace&gt; in namespace \"http://www.w3.org/2005/07/scxml\" as child  of &lt;onentry&gt;");<a name="line.233"></a>
+<span class="sourceLineNo">234</span>        assertContainsRecordedLogMessage("Ignoring unknown or invalid element &lt;onbeforeexit&gt; in namespace \"http://www.w3.org/2005/07/scxml\" as child  of &lt;final&gt;");<a name="line.234"></a>
+<span class="sourceLineNo">235</span><a name="line.235"></a>
+<span class="sourceLineNo">236</span>        // In the lenient/silent mode (strict == false &amp;&amp; silent == true),<a name="line.236"></a>
+<span class="sourceLineNo">237</span>        // no model exception is logged.<a name="line.237"></a>
+<span class="sourceLineNo">238</span>        clearRecordedLogMessages();<a name="line.238"></a>
+<span class="sourceLineNo">239</span>        scxml = null;<a name="line.239"></a>
+<span class="sourceLineNo">240</span>        configuration = new Configuration();<a name="line.240"></a>
+<span class="sourceLineNo">241</span>        configuration.setStrict(false);<a name="line.241"></a>
+<span class="sourceLineNo">242</span>        configuration.setSilent(true);<a name="line.242"></a>
+<span class="sourceLineNo">243</span>        scxml = SCXMLReader.read(scxmlWithInvalidElems, configuration);<a name="line.243"></a>
+<span class="sourceLineNo">244</span>        Assert.assertNotNull(scxml);<a name="line.244"></a>
+<span class="sourceLineNo">245</span>        scxmlAsString = serialize(scxml);<a name="line.245"></a>
+<span class="sourceLineNo">246</span>        Assert.assertNotNull(scxmlAsString);<a name="line.246"></a>
+<span class="sourceLineNo">247</span>        foo = (Final) scxml.getInitialTarget();<a name="line.247"></a>
+<span class="sourceLineNo">248</span>        Assert.assertEquals("foo", foo.getId());<a name="line.248"></a>
+<span class="sourceLineNo">249</span>        dataModel = scxml.getDatamodel();<a name="line.249"></a>
+<span class="sourceLineNo">250</span>        Assert.assertNotNull(dataModel);<a name="line.250"></a>
+<span class="sourceLineNo">251</span>        dataList = dataModel.getData();<a name="line.251"></a>
+<span class="sourceLineNo">252</span>        Assert.assertEquals(1, dataList.size());<a name="line.252"></a>
+<span class="sourceLineNo">253</span>        Assert.assertEquals("time", dataList.get(0).getId());<a name="line.253"></a>
+<span class="sourceLineNo">254</span>        assertNotContainsRecordedLogMessage("Ignoring unknown or invalid element &lt;baddata&gt; in namespace \"http://www.w3.org/2005/07/scxml\" as child  of &lt;datamodel&gt;");<a name="line.254"></a>
+<span class="sourceLineNo">255</span>        assertNotContainsRecordedLogMessage("Ignoring unknown or invalid element &lt;baddata&gt; in namespace \"http://www.example.com/scxml\" as child  of &lt;datamodel&gt;");<a name="line.255"></a>
+<span class="sourceLineNo">256</span>        assertNotContainsRecordedLogMessage("Ignoring unknown or invalid element &lt;trace&gt; in namespace \"http://www.w3.org/2005/07/scxml\" as child  of &lt;onentry&gt;");<a name="line.256"></a>
+<span class="sourceLineNo">257</span>        assertNotContainsRecordedLogMessage("Ignoring unknown or invalid element &lt;onbeforeexit&gt; in namespace \"http://www.w3.org/2005/07/scxml\" as child  of &lt;final&gt;");<a name="line.257"></a>
+<span class="sourceLineNo">258</span><a name="line.258"></a>
+<span class="sourceLineNo">259</span>        // In strict/verbose mode (strict == true &amp;&amp; silent == false), it should fail to read the model and catch a model exception<a name="line.259"></a>
+<span class="sourceLineNo">260</span>        // with warning logs because of the invalid &lt;baddata&gt; element.<a name="line.260"></a>
+<span class="sourceLineNo">261</span>        clearRecordedLogMessages();<a name="line.261"></a>
+<span class="sourceLineNo">262</span>        scxml = null;<a name="line.262"></a>
+<span class="sourceLineNo">263</span>        configuration = new Configuration();<a name="line.263"></a>
+<span class="sourceLineNo">264</span>        configuration.setStrict(true);<a name="line.264"></a>
+<span class="sourceLineNo">265</span>        configuration.setSilent(false);<a name="line.265"></a>
+<span class="sourceLineNo">266</span>        try {<a name="line.266"></a>
+<span class="sourceLineNo">267</span>            scxml = SCXMLReader.read(scxmlWithInvalidElems, configuration);<a name="line.267"></a>
+<span class="sourceLineNo">268</span>            Assert.fail("In strict mode, it should have thrown a model exception.");<a name="line.268"></a>
+<span class="sourceLineNo">269</span>        } catch (ModelException e) {<a name="line.269"></a>
+<span class="sourceLineNo">270</span>            Assert.assertTrue(e.getMessage().contains("Ignoring unknown or invalid element &lt;baddata&gt;"));<a name="line.270"></a>
+<span class="sourceLineNo">271</span>        }<a name="line.271"></a>
+<span class="sourceLineNo">272</span>        assertContainsRecordedLogMessage("Ignoring unknown or invalid element &lt;baddata&gt; in namespace \"http://www.w3.org/2005/07/scxml\" as child  of &lt;datamodel&gt;");<a name="line.272"></a>
+<span class="sourceLineNo">273</span>        assertContainsRecordedLogMessage("Ignoring unknown or invalid element &lt;baddata&gt; in namespace \"http://www.example.com/scxml\" as child  of &lt;datamodel&gt;");<a name="line.273"></a>
+<span class="sourceLineNo">274</span>        assertContainsRecordedLogMessage("Ignoring unknown or invalid element &lt;trace&gt; in namespace \"http://www.w3.org/2005/07/scxml\" as child  of &lt;onentry&gt;");<a name="line.274"></a>
+<span class="sourceLineNo">275</span>        assertContainsRecordedLogMessage("Ignoring unknown or invalid element &lt;onbeforeexit&gt; in namespace \"http://www.w3.org/2005/07/scxml\" as child  of &lt;final&gt;");<a name="line.275"></a>
+<span class="sourceLineNo">276</span><a name="line.276"></a>
+<span class="sourceLineNo">277</span>        // In strict/silent mode (strict == true &amp;&amp; silent == true), it should fail to read the model and catch a model exception<a name="line.277"></a>
+<span class="sourceLineNo">278</span>        // without warning logs because of the invalid &lt;baddata&gt; element.<a name="line.278"></a>
+<span class="sourceLineNo">279</span>        clearRecordedLogMessages();<a name="line.279"></a>
+<span class="sourceLineNo">280</span>        scxml = null;<a name="line.280"></a>
+<span class="sourceLineNo">281</span>        configuration = new Configuration();<a name="line.281"></a>
+<span class="sourceLineNo">282</span>        configuration.setStrict(true);<a name="line.282"></a>
+<span class="sourceLineNo">283</span>        configuration.setSilent(true);<a name="line.283"></a>
+<span class="sourceLineNo">284</span>        try {<a name="line.284"></a>
+<span class="sourceLineNo">285</span>            scxml = SCXMLReader.read(scxmlWithInvalidElems, configuration);<a name="line.285"></a>
+<span class="sourceLineNo">286</span>            Assert.fail("In strict mode, it should have thrown a model exception.");<a name="line.286"></a>
+<span class="sourceLineNo">287</span>        } catch (ModelException e) {<a name="line.287"></a>
+<span class="sourceLineNo">288</span>            Assert.assertTrue(e.getMessage().contains("Ignoring unknown or invalid element &lt;baddata&gt;"));<a name="line.288"></a>
+<span class="sourceLineNo">289</span>        }<a name="line.289"></a>
+<span class="sourceLineNo">290</span>        assertNotContainsRecordedLogMessage("Ignoring unknown or invalid element &lt;baddata&gt; in namespace \"http://www.w3.org/2005/07/scxml\" as child  of &lt;datamodel&gt;");<a name="line.290"></a>
+<span class="sourceLineNo">291</span>        assertNotContainsRecordedLogMessage("Ignoring unknown or invalid element &lt;baddata&gt; in namespace \"http://www.example.com/scxml\" as child  of &lt;datamodel&gt;");<a name="line.291"></a>
+<span class="sourceLineNo">292</span>        assertNotContainsRecordedLogMessage("Ignoring unknown or invalid element &lt;trace&gt; in namespace \"http://www.w3.org/2005/07/scxml\" as child  of &lt;onentry&gt;");<a name="line.292"></a>
+<span class="sourceLineNo">293</span>        assertNotContainsRecordedLogMessage("Ignoring unknown or invalid element &lt;onbeforeexit&gt; in namespace \"http://www.w3.org/2005/07/scxml\" as child  of &lt;final&gt;");<a name="line.293"></a>
+<span class="sourceLineNo">294</span>    }<a name="line.294"></a>
+<span class="sourceLineNo">295</span><a name="line.295"></a>
+<span class="sourceLineNo">296</span>    @Test<a name="line.296"></a>
+<span class="sourceLineNo">297</span>    public void testSCXMLReaderGroovyClosure() throws Exception {<a name="line.297"></a>
+<span class="sourceLineNo">298</span>        scxml = SCXMLTestHelper.parse(groovyClosure);<a name="line.298"></a>
+<span class="sourceLineNo">299</span>        Assert.assertNotNull(scxml);<a name="line.299"></a>
+<span class="sourceLineNo">300</span>        Assert.assertNotNull(scxml.getInitialScript());<a name="line.300"></a>
+<span class="sourceLineNo">301</span>        scxmlAsString = serialize(scxml);<a name="line.301"></a>
+<span class="sourceLineNo">302</span>        Assert.assertNotNull(scxmlAsString);<a name="line.302"></a>
+<span class="sourceLineNo">303</span>        scxml = SCXMLTestHelper.parse(new StringReader(scxmlAsString), null);<a name="line.303"></a>
+<span class="sourceLineNo">304</span>        Assert.assertNotNull(scxml);<a name="line.304"></a>
+<span class="sourceLineNo">305</span>        Assert.assertNotNull(scxml.getInitialScript());<a name="line.305"></a>
+<span class="sourceLineNo">306</span>    }<a name="line.306"></a>
+<span class="sourceLineNo">307</span><a name="line.307"></a>
+<span class="sourceLineNo">308</span>    private String serialize(final SCXML scxml) throws IOException, XMLStreamException {<a name="line.308"></a>
+<span class="sourceLineNo">309</span>        scxmlAsString = SCXMLWriter.write(scxml);<a name="line.309"></a>
+<span class="sourceLineNo">310</span>        Assert.assertNotNull(scxmlAsString);<a name="line.310"></a>
+<span class="sourceLineNo">311</span>        return scxmlAsString;<a name="line.311"></a>
+<span class="sourceLineNo">312</span>    }<a name="line.312"></a>
+<span class="sourceLineNo">313</span><a name="line.313"></a>
+<span class="sourceLineNo">314</span>    private void assertContainsRecordedLogMessage(final String message) {<a name="line.314"></a>
+<span class="sourceLineNo">315</span>        if (scxmlReaderLog instanceof RecordingSimpleLog) {<a name="line.315"></a>
+<span class="sourceLineNo">316</span>            Assert.assertTrue(((RecordingSimpleLog) scxmlReaderLog).containsMessage(<a name="line.316"></a>
+<span class="sourceLineNo">317</span>                    "Ignoring unknown or invalid element &lt;baddata&gt; in namespace \"http://www.w3.org/2005/07/scxml\" as child  of &lt;datamodel&gt;"));<a name="line.317"></a>
+<span class="sourceLineNo">318</span>        }<a name="line.318"></a>
+<span class="sourceLineNo">319</span>    }<a name="line.319"></a>
+<span class="sourceLineNo">320</span><a name="line.320"></a>
+<span class="sourceLineNo">321</span>    private void assertNotContainsRecordedLogMessage(final String message) {<a name="line.321"></a>
+<span class="sourceLineNo">322</span>        if (scxmlReaderLog instanceof RecordingSimpleLog) {<a name="line.322"></a>
+<span class="sourceLineNo">323</span>            Assert.assertFalse(((RecordingSimpleLog) scxmlReaderLog).containsMessage(<a name="line.323"></a>
+<span class="sourceLineNo">324</span>                    "Ignoring unknown or invalid element &lt;baddata&gt; in namespace \"http://www.w3.org/2005/07/scxml\" as child  of &lt;datamodel&gt;"));<a name="line.324"></a>
+<span class="sourceLineNo">325</span>        }<a name="line.325"></a>
 <span class="sourceLineNo">326</span>    }<a name="line.326"></a>
 <span class="sourceLineNo">327</span><a name="line.327"></a>
-<span class="sourceLineNo">328</span>    private String serialize(final SCXML scxml) throws IOException, XMLStreamException {<a name="line.328"></a>
-<span class="sourceLineNo">329</span>        scxmlAsString = SCXMLWriter.write(scxml);<a name="line.329"></a>
-<span class="sourceLineNo">330</span>        Assert.assertNotNull(scxmlAsString);<a name="line.330"></a>
-<span class="sourceLineNo">331</span>        return scxmlAsString;<a name="line.331"></a>
+<span class="sourceLineNo">328</span>    private void clearRecordedLogMessages() {<a name="line.328"></a>
+<span class="sourceLineNo">329</span>        if (scxmlReaderLog instanceof RecordingSimpleLog) {<a name="line.329"></a>
+<span class="sourceLineNo">330</span>            ((RecordingSimpleLog) scxmlReaderLog).clearMessages();<a name="line.330"></a>
+<span class="sourceLineNo">331</span>        }<a name="line.331"></a>
 <span class="sourceLineNo">332</span>    }<a name="line.332"></a>
 <span class="sourceLineNo">333</span><a name="line.333"></a>
-<span class="sourceLineNo">334</span>    private void assertContainsRecordedLogMessage(final String message) {<a name="line.334"></a>
-<span class="sourceLineNo">335</span>        if (scxmlReaderLog instanceof RecordingSimpleLog) {<a name="line.335"></a>
-<span class="sourceLineNo">336</span>            Assert.assertTrue(((RecordingSimpleLog) scxmlReaderLog).containsMessage(<a name="line.336"></a>
-<span class="sourceLineNo">337</span>                    "Ignoring unknown or invalid element &lt;baddata&gt; in namespace \"http://www.w3.org/2005/07/scxml\" as child  of &lt;datamodel&gt;"));<a name="line.337"></a>
-<span class="sourceLineNo">338</span>        }<a name="line.338"></a>
-<span class="sourceLineNo">339</span>    }<a name="line.339"></a>
-<span class="sourceLineNo">340</span><a name="line.340"></a>
-<span class="sourceLineNo">341</span>    private void assertNotContainsRecordedLogMessage(final String message) {<a name="line.341"></a>
-<span class="sourceLineNo">342</span>        if (scxmlReaderLog instanceof RecordingSimpleLog) {<a name="line.342"></a>
-<span class="sourceLineNo">343</span>            Assert.assertFalse(((RecordingSimpleLog) scxmlReaderLog).containsMessage(<a name="line.343"></a>
-<span class="sourceLineNo">344</span>                    "Ignoring unknown or invalid element &lt;baddata&gt; in namespace \"http://www.w3.org/2005/07/scxml\" as child  of &lt;datamodel&gt;"));<a name="line.344"></a>
+<span class="sourceLineNo">334</span>    public static class MyAction extends Action implements ExternalContent {<a name="line.334"></a>
+<span class="sourceLineNo">335</span>        private static final long serialVersionUID = 1L;<a name="line.335"></a>
+<span class="sourceLineNo">336</span><a name="line.336"></a>
+<span class="sourceLineNo">337</span>        private List&lt;Node&gt; nodes = new ArrayList&lt;Node&gt;();<a name="line.337"></a>
+<span class="sourceLineNo">338</span><a name="line.338"></a>
+<span class="sourceLineNo">339</span>        @Override<a name="line.339"></a>
+<span class="sourceLineNo">340</span>        public void execute(EventDispatcher evtDispatcher,<a name="line.340"></a>
+<span class="sourceLineNo">341</span>                ErrorReporter errRep, SCInstance scInstance, Log appLog,<a name="line.341"></a>
+<span class="sourceLineNo">342</span>                Collection&lt;TriggerEvent&gt; derivedEvents)<a name="line.342"></a>
+<span class="sourceLineNo">343</span>        throws ModelException, SCXMLExpressionException {<a name="line.343"></a>
+<span class="sourceLineNo">344</span>            // Not relevant to test<a name="line.344"></a>
 <span class="sourceLineNo">345</span>        }<a name="line.345"></a>
-<span class="sourceLineNo">346</span>    }<a name="line.346"></a>
-<span class="sourceLineNo">347</span><a name="line.347"></a>
-<span class="sourceLineNo">348</span>    private void clearRecordedLogMessages() {<a name="line.348"></a>
-<span class="sourceLineNo">349</span>        if (scxmlReaderLog instanceof RecordingSimpleLog) {<a name="line.349"></a>
-<span class="sourceLineNo">350</span>            ((RecordingSimpleLog) scxmlReaderLog).clearMessages();<a name="line.350"></a>
-<span class="sourceLineNo">351</span>        }<a name="line.351"></a>
+<span class="sourceLineNo">346</span><a name="line.346"></a>
+<span class="sourceLineNo">347</span>        @Override<a name="line.347"></a>
+<span class="sourceLineNo">348</span>        public List&lt;Node&gt; getExternalNodes() {<a name="line.348"></a>
+<span class="sourceLineNo">349</span>            return nodes;<a name="line.349"></a>
+<span class="sourceLineNo">350</span>        }<a name="line.350"></a>
+<span class="sourceLineNo">351</span><a name="line.351"></a>
 <span class="sourceLineNo">352</span>    }<a name="line.352"></a>
 <span class="sourceLineNo">353</span><a name="line.353"></a>
-<span class="sourceLineNo">354</span>    public static class MyAction extends Action implements ExternalContent {<a name="line.354"></a>
-<span class="sourceLineNo">355</span>        private static final long serialVersionUID = 1L;<a name="line.355"></a>
-<span class="sourceLineNo">356</span><a name="line.356"></a>
-<span class="sourceLineNo">357</span>        private List&lt;Node&gt; nodes = new ArrayList&lt;Node&gt;();<a name="line.357"></a>
-<span class="sourceLineNo">358</span><a name="line.358"></a>
-<span class="sourceLineNo">359</span>        @Override<a name="line.359"></a>
-<span class="sourceLineNo">360</span>        public void execute(EventDispatcher evtDispatcher,<a name="line.360"></a>
-<span class="sourceLineNo">361</span>                ErrorReporter errRep, SCInstance scInstance, Log appLog,<a name="line.361"></a>
-<span class="sourceLineNo">362</span>                Collection&lt;TriggerEvent&gt; derivedEvents)<a name="line.362"></a>
-<span class="sourceLineNo">363</span>        throws ModelException, SCXMLExpressionException {<a name="line.363"></a>
-<span class="sourceLineNo">364</span>            // Not relevant to test<a name="line.364"></a>
-<span class="sourceLineNo">365</span>        }<a name="line.365"></a>
-<span class="sourceLineNo">366</span><a name="line.366"></a>
-<span class="sourceLineNo">367</span>        @Override<a name="line.367"></a>
-<span class="sourceLineNo">368</span>        public List&lt;Node&gt; getExternalNodes() {<a name="line.368"></a>
-<span class="sourceLineNo">369</span>            return nodes;<a name="line.369"></a>
-<span class="sourceLineNo">370</span>        }<a name="line.370"></a>
-<span class="sourceLineNo">371</span><a name="line.371"></a>
-<span class="sourceLineNo">372</span>    }<a name="line.372"></a>
-<span class="sourceLineNo">373</span><a name="line.373"></a>
-<span class="sourceLineNo">374</span>    /**<a name="line.374"></a>
-<span class="sourceLineNo">375</span>     * Custom LogFactory implementation to capture log messages for logging verification.<a name="line.375"></a>
-<span class="sourceLineNo">376</span>     */<a name="line.376"></a>
-<span class="sourceLineNo">377</span>    public static class RecordingLogFactory extends LogFactoryImpl {<a name="line.377"></a>
-<span class="sourceLineNo">378</span>        @Override<a name="line.378"></a>
-<span class="sourceLineNo">379</span>        protected Log newInstance(String name) throws LogConfigurationException {<a name="line.379"></a>
-<span class="sourceLineNo">380</span>            return new RecordingSimpleLog(name);<a name="line.380"></a>
-<span class="sourceLineNo">381</span>        }<a name="line.381"></a>
-<span class="sourceLineNo">382</span>    }<a name="line.382"></a>
+<span class="sourceLineNo">354</span>    /**<a name="line.354"></a>
+<span class="sourceLineNo">355</span>     * Custom LogFactory implementation to capture log messages for logging verification.<a name="line.355"></a>
+<span class="sourceLineNo">356</span>     */<a name="line.356"></a>
+<span class="sourceLineNo">357</span>    public static class RecordingLogFactory extends LogFactoryImpl {<a name="line.357"></a>
+<span class="sourceLineNo">358</span>        @Override<a name="line.358"></a>
+<span class="sourceLineNo">359</span>        protected Log newInstance(String name) throws LogConfigurationException {<a name="line.359"></a>
+<span class="sourceLineNo">360</span>            return new RecordingSimpleLog(name);<a name="line.360"></a>
+<span class="sourceLineNo">361</span>        }<a name="line.361"></a>
+<span class="sourceLineNo">362</span>    }<a name="line.362"></a>
+<span class="sourceLineNo">363</span><a name="line.363"></a>
+<span class="sourceLineNo">364</span>    /**<a name="line.364"></a>
+<span class="sourceLineNo">365</span>     * Custom Simple Log implemenation capturing log messages<a name="line.365"></a>
+<span class="sourceLineNo">366</span>     */<a name="line.366"></a>
+<span class="sourceLineNo">367</span>    public static class RecordingSimpleLog extends SimpleLog {<a name="line.367"></a>
+<span class="sourceLineNo">368</span><a name="line.368"></a>
+<span class="sourceLineNo">369</span>        private static final long serialVersionUID = 1L;<a name="line.369"></a>
+<span class="sourceLineNo">370</span><a name="line.370"></a>
+<span class="sourceLineNo">371</span>        private List&lt;String&gt; messages = new LinkedList&lt;String&gt;();<a name="line.371"></a>
+<span class="sourceLineNo">372</span><a name="line.372"></a>
+<span class="sourceLineNo">373</span>        public RecordingSimpleLog(String name) {<a name="line.373"></a>
+<span class="sourceLineNo">374</span>            super(name);<a name="line.374"></a>
+<span class="sourceLineNo">375</span>        }<a name="line.375"></a>
+<span class="sourceLineNo">376</span><a name="line.376"></a>
+<span class="sourceLineNo">377</span>        /**<a name="line.377"></a>
+<span class="sourceLineNo">378</span>         * Clear all the recorded log messages.<a name="line.378"></a>
+<span class="sourceLineNo">379</span>         */<a name="line.379"></a>
+<span class="sourceLineNo">380</span>        public void clearMessages() {<a name="line.380"></a>
+<span class="sourceLineNo">381</span>            messages.clear();<a name="line.381"></a>
+<span class="sourceLineNo">382</span>        }<a name="line.382"></a>
 <span class="sourceLineNo">383</span><a name="line.383"></a>
-<span class="sourceLineNo">384</span>    /**<a name="line.384"></a>
-<span class="sourceLineNo">385</span>     * Custom Simple Log implemenation capturing log messages<a name="line.385"></a>
-<span class="sourceLineNo">386</span>     */<a name="line.386"></a>
-<span class="sourceLineNo">387</span>    public static class RecordingSimpleLog extends SimpleLog {<a name="line.387"></a>
-<span class="sourceLineNo">388</span><a name="line.388"></a>
-<span class="sourceLineNo">389</span>        private static final long serialVersionUID = 1L;<a name="line.389"></a>
-<span class="sourceLineNo">390</span><a name="line.390"></a>
-<span class="sourceLineNo">391</span>        private List&lt;String&gt; messages = new LinkedList&lt;String&gt;();<a name="line.391"></a>
-<span class="sourceLineNo">392</span><a name="line.392"></a>
-<span class="sourceLineNo">393</span>        public RecordingSimpleLog(String name) {<a name="line.393"></a>
-<span class="sourceLineNo">394</span>            super(name);<a name="line.394"></a>
-<span class="sourceLineNo">395</span>        }<a name="line.395"></a>
-<span class="sourceLineNo">396</span><a name="line.396"></a>
-<span class="sourceLineNo">397</span>        /**<a name="line.397"></a>
-<span class="sourceLineNo">398</span>         * Clear all the recorded log messages.<a name="line.398"></a>
-<span class="sourceLineNo">399</span>         */<a name="line.399"></a>
-<span class="sourceLineNo">400</span>        public void clearMessages() {<a name="line.400"></a>
-<span class="sourceLineNo">401</span>            messages.clear();<a name="line.401"></a>
-<span class="sourceLineNo">402</span>        }<a name="line.402"></a>
-<span class="sourceLineNo">403</span><a name="line.403"></a>
-<span class="sourceLineNo">404</span>        /**<a name="line.404"></a>
-<span class="sourceLineNo">405</span>         * Return true if msg is found in any recorded log messages.<a name="line.405"></a>
-<span class="sourceLineNo">406</span>         * @param msg<a name="line.406"></a>
-<span class="sourceLineNo">407</span>         * @return<a name="line.407"></a>
-<span class="sourceLineNo">408</span>         */<a name="line.408"></a>
-<span class="sourceLineNo">409</span>        public boolean containsMessage(final String msg) {<a name="line.409"></a>
-<span class="sourceLineNo">410</span>            for (String message : messages) {<a name="line.410"></a>
-<span class="sourceLineNo">411</span>                if (message.contains(msg)) {<a name="line.411"></a>
-<span class="sourceLineNo">412</span>                    return true;<a name="line.412"></a>
-<span class="sourceLineNo">413</span>                }<a name="line.413"></a>
-<span class="sourceLineNo">414</span>            }<a name="line.414"></a>
-<span class="sourceLineNo">415</span>            return false;<a name="line.415"></a>
-<span class="sourceLineNo">416</span>        }<a name="line.416"></a>
-<span class="sourceLineNo">417</span><a name="line.417"></a>
-<span class="sourceLineNo">418</span>        @Override<a name="line.418"></a>
-<span class="sourceLineNo">419</span>        protected boolean isLevelEnabled(int logLevel) {<a name="line.419"></a>
-<span class="sourceLineNo">420</span>            return (logLevel &gt;= LOG_LEVEL_INFO);<a name="line.420"></a>
-<span class="sourceLineNo">421</span>        }<a name="line.421"></a>
-<span class="sourceLineNo">422</span><a name="line.422"></a>
-<span class="sourceLineNo">423</span>        @Override<a name="line.423"></a>
-<span class="sourceLineNo">424</span>        protected void log(int type, Object message, Throwable t) {<a name="line.424"></a>
-<span class="sourceLineNo">425</span>            super.log(type, message, t);<a name="line.425"></a>
-<span class="sourceLineNo">426</span>            messages.add(message.toString());<a name="line.426"></a>
-<span class="sourceLineNo">427</span>        }<a name="line.427"></a>
-<span class="sourceLineNo">428</span>    }<a name="line.428"></a>
-<span class="sourceLineNo">429</span>}<a name="line.429"></a>
-<span class="sourceLineNo">430</span><a name="line.430"></a>
+<span class="sourceLineNo">384</span>        /**<a name="line.384"></a>
+<span class="sourceLineNo">385</span>         * Return true if msg is found in any recorded log messages.<a name="line.385"></a>
+<span class="sourceLineNo">386</span>         * @param msg<a name="line.386"></a>
+<span class="sourceLineNo">387</span>         * @return<a name="line.387"></a>
+<span class="sourceLineNo">388</span>         */<a name="line.388"></a>
+<span class="sourceLineNo">389</span>        public boolean containsMessage(final String msg) {<a name="line.389"></a>
+<span class="sourceLineNo">390</span>            for (String message : messages) {<a name="line.390"></a>
+<span class="sourceLineNo">391</span>                if (message.contains(msg)) {<a name="line.391"></a>
+<span class="sourceLineNo">392</span>                    return true;<a name="line.392"></a>
+<span class="sourceLineNo">393</span>                }<a name="line.393"></a>
+<span class="sourceLineNo">394</span>            }<a name="line.394"></a>
+<span class="sourceLineNo">395</span>            return false;<a name="line.395"></a>
+<span class="sourceLineNo">396</span>        }<a name="line.396"></a>
+<span class="sourceLineNo">397</span><a name="line.397"></a>
+<span class="sourceLineNo">398</span>        @Override<a name="line.398"></a>
+<span class="sourceLineNo">399</span>        protected boolean isLevelEnabled(int logLevel) {<a name="line.399"></a>
+<span class="sourceLineNo">400</span>            return (logLevel &gt;= LOG_LEVEL_INFO);<a name="line.400"></a>
+<span class="sourceLineNo">401</span>        }<a name="line.401"></a>
+<span class="sourceLineNo">402</span><a name="line.402"></a>
+<span class="sourceLineNo">403</span>        @Override<a name="line.403"></a>
+<span class="sourceLineNo">404</span>        protected void log(int type, Object message, Throwable t) {<a name="line.404"></a>
+<span class="sourceLineNo">405</span>            super.log(type, message, t);<a name="line.405"></a>
+<span class="sourceLineNo">406</span>            messages.add(message.toString());<a name="line.406"></a>
+<span class="sourceLineNo">407</span>        }<a name="line.407"></a>
+<span class="sourceLineNo">408</span>    }<a name="line.408"></a>
+<span class="sourceLineNo">409</span>}<a name="line.409"></a>
+<span class="sourceLineNo">410</span><a name="line.410"></a>
 
 
 



Mime
View raw message