+++ /dev/null
-<html>
-<head>
-<title>coverage report</title>
-<link rel ="stylesheet" type="text/css" href="style.css" title="Style">
-</head>
-<body>
-<span class="title">All classes</span>
-<table>
-<tr>
-<td nowrap="nowrap">
-<a href="net/jaekl/qd/util/ExceptionUtils.html" target="classFrame">ExceptionUtils</a><span class="text_italic"> 50% (1/2)</span><br>
-<a href="net/jaekl/frank/FrankBundle.html" target="classFrame">FrankBundle</a><span class="text_italic"> 100% (4/4)</span><br>
-<a href="net/jaekl/frank/FrankException.html" target="classFrame">FrankException</a><span class="text_italic"> 0% (0/1)</span><br>
-<a href="net/jaekl/qd/xml/MismatchedTagsException.html" target="classFrame">MismatchedTagsException</a><span class="text_italic"> 0% (0/3)</span><br>
-<a href="net/jaekl/qd/xml/MissingInfoException.html" target="classFrame">MissingInfoException</a><span class="text_italic"> 100% (5/5)</span><br>
-<a href="net/jaekl/frank/octranspo/NextTrips.html" target="classFrame">NextTrips</a><span class="text_italic"> 100% (2/2)</span><br>
-<a href="net/jaekl/qd/xml/ParseHandler.html" target="classFrame">ParseHandler</a><span class="text_italic"> 75% (9/12)</span><br>
-<a href="net/jaekl/qd/xml/ParseResult.html" target="classFrame">ParseResult</a><span class="text_italic"> 89% (8/9)</span><br>
-<a href="net/jaekl/qd/util/ParseUtils.html" target="classFrame">ParseUtils</a><span class="text_italic"> 67% (2/3)</span><br>
-<a href="net/jaekl/qd/QDBundleFactory.html" target="classFrame">QDBundleFactory</a><span class="text_italic"> 100% (3/3)</span><br>
-<a href="net/jaekl/qd/QDException.html" target="classFrame">QDException</a><span class="text_italic"> 100% (2/2)</span><br>
-<a href="net/jaekl/qd/http/RequestBroker.html" target="classFrame">RequestBroker</a><span class="text_italic"> 83% (5/6)</span><br>
-<a href="net/jaekl/frank/octranspo/Route.html" target="classFrame">Route</a><span class="text_italic"> 100% (10/10)</span><br>
-<a href="net/jaekl/frank/octranspo/RouteSummary.html" target="classFrame">RouteSummary</a><span class="text_italic"> 100% (2/2)</span><br>
-<a href="net/jaekl/frank/Schedule.html" target="classFrame">Schedule</a><span class="text_italic"> 100% (7/7)</span><br>
-<a href="net/jaekl/frank/octranspo/Server.html" target="classFrame">Server</a><span class="text_italic"> 100% (5/5)</span><br>
-<a href="net/jaekl/frank/octranspo/StopInfo.html" target="classFrame">StopInfo</a><span class="text_italic"> 100% (9/9)</span><br>
-<a href="net/jaekl/qd/util/StringUtils.html" target="classFrame">StringUtils</a><span class="text_italic"> 50% (1/2)</span><br>
-<a href="net/jaekl/frank/octranspo/Trip.html" target="classFrame">Trip</a><span class="text_italic"> 94% (15/16)</span><br>
-<a href="net/jaekl/frank/ViewSchedule.html" target="classFrame">ViewSchedule</a><span class="text_italic"> 67% (4/6)</span><br>
-<a href="net/jaekl/qd/xml/XmlParseException.html" target="classFrame">XmlParseException</a><span class="text_italic"> 50% (1/2)</span><br>
-</td>
-</tr>
-</table>
-</body>
-</html>
+++ /dev/null
-<html>
-<head>
-<title>Coverage report </title>
-<script type="text/javascript">
- targetPage = "" + window.location.search;
- if (targetPage != "" && targetPage != "undefined")
- targetPage = targetPage.substring(1);
- if (targetPage.indexOf(":") != -1 || (targetPage != "" && !validURL(targetPage)))
- targetPage = "undefined";
- function validURL(url) {
- var pos = url.indexOf(".html");
- if (pos == -1 || pos != url.length - 5)
- return false;
- var allowNumber = false;
- var allowSep = false;
- var seenDot = false;
- for (var i = 0; i < url.length - 5; i++) {
- var ch = url.charAt(i);
- if ('a' <= ch && ch <= 'z' ||
- 'A' <= ch && ch <= 'Z' ||
- ch == '$' ||
- ch == '_') {
- allowNumber = true;
- allowSep = true;
- } else if ('0' <= ch && ch <= '9' ||
- ch == '-') {
- if (!allowNumber)
- return false;
- } else if (ch == '/' || ch == '.') {
- if (!allowSep)
- return false;
- allowNumber = false;
- allowSep = false;
- if (ch == '.')
- seenDot = true;
- if (ch == '/' && seenDot)
- return false;
- } else {
- return false;
- }
- }
- return true;
- }
- function loadFrames() {
- if (targetPage != "" && targetPage != "undefined")
- top.classFrame.location = top.targetPage;
- }
-</script>
-</head>
-<FRAMESET cols="20%,80%" title="Documentation frame" onclick="top.loadFrames()">
-<FRAMESET rows="30%,70%" title="Left frames" onload="top.loadFrames()">
-<FRAME src="overview-frame.html" name="packageListFrame" title="All Packages">
-<FRAME src="allclasses-frame.html" name="packageFrame" title="All classes and interfaces (except non-static nested types)">
-</FRAMESET>
-<FRAME src="overview-summary.html" name="classFrame" title="Package, class and interface descriptions" scrolling="yes">
-<NOFRAMES>
-This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client.
-<BR>
-Link to<A HREF="overview-summary.html">Non-frame version.</A>
-</NOFRAMES>
-</FRAMESET>
-</html>
+++ /dev/null
-<html>
-<head>
-<title>tests coverage</title>
-<link rel ="stylesheet" type="text/css" href="../../../style.css" title="Style">
-<script type="text/javascript" src="../../../sorttable.js"></script>
-<script type="text/javascript">
- targetPage = "" + window.location.search;
- if (targetPage != "" && targetPage != "undefined")
- targetPage = targetPage.substring(1);
- if (targetPage.indexOf(":") != -1 || (targetPage != "" && !validURL(targetPage)))
- targetPage = "undefined";
- function validURL(url) {
- var pos = url.indexOf(".html");
- if (pos == -1 || pos != url.length - 5)
- return false;
- var allowNumber = false;
- var allowSep = false;
- var seenDot = false;
- for (var i = 0; i < url.length - 5; i++) {
- var ch = url.charAt(i);
- if ('a' <= ch && ch <= 'z' ||
- 'A' <= ch && ch <= 'Z' ||
- ch == '$' ||
- ch == '_') {
- allowNumber = true;
- allowSep = true;
- } else if ('0' <= ch && ch <= '9' ||
- ch == '-') {
- if (!allowNumber)
- return false;
- } else if (ch == '/' || ch == '.') {
- if (!allowSep)
- return false;
- allowNumber = false;
- allowSep = false;
- if (ch == '.')
- seenDot = true;
- if (ch == '/' && seenDot)
- return false;
- } else {
- return false;
- }
- }
- return true;
- }
- function loadFrames() {
- if (targetPage != "" && targetPage != "undefined")
- top.classFrame.location = top.targetPage;
- }
-</script>
-</head>
-<body>
-<table>
-<tr>
-<td>
-<a href="../../../index.html?net/jaekl/frank/FrankBundle.html" target="_top">Frames</a>
-<a href="FrankBundle.html" target="_top">No Frames</a>
-</td>
-</tr>
-</table>
-<p>
- <table cellspacing="0" cellpadding="0"class="report">
- <tr class="report">
- <th class="report"> </th>
- <th class="report">%method</th>
- <th class="report">%block</th>
- <th class="report">%branch</th>
- <th class="report">%line</th>
- </tr>
- <tr class="report">
- <td class="reportText"><span class="text">net.jaekl.frank.FrankBundle</span></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>100</b>%(4/4)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 100"></td><td class="percentUnCovered" width="0.0"></td></tr></table></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>69</b>%(9/13)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 69"></td><td class="percentUnCovered" width="31.0"></td></tr></table></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>67</b>%(4/6)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 67"></td><td class="percentUnCovered" width="33.0"></td></tr></table></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>79</b>%(15/19)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 79"></td><td class="percentUnCovered" width="21.0"></td></tr></table></td></tr></table></td>
- </tr>
- </table>
- <p>
- <p>
- <table cellspacing="0" cellpadding="0"class="report" id="mcoverage">
- <tr class="report">
- <th class="report">hit count</th>
- <th class="report">method name</th>
- <th class="report">method modifiers</th>
- <th class="report">method signature</th>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">1</span></td>
- <td class="reportText"><span class="text"><a href="#src_26"><clinit></a></span></td>
- <td class="reportText"><span class="text">[static]</span></td>
- <td class="reportText"><span class="text">void <clinit>()</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">3</span></td>
- <td class="reportText"><span class="text"><a href="#src_44"><init></a></span></td>
- <td class="reportText"><span class="text">[private]</span></td>
- <td class="reportText"><span class="text">void <init>(java.util.Locale)</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">34</span></td>
- <td class="reportText"><span class="text"><a href="#src_50">get</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">java.lang.String get(java.lang.String)</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">11</span></td>
- <td class="reportText"><span class="text"><a href="#src_31">getInst</a></span></td>
- <td class="reportText"><span class="text">[public, static]</span></td>
- <td class="reportText"><span class="text">net.jaekl.frank.FrankBundle getInst(java.util.Locale)</span></td>
- </tr>
- </table>
- <p>
- <table cellspacing="0" cellpadding="0" class="src">
- <tr>
- <td class="numLine"> 1</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">package</span> net.jaekl.frank;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 2</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 3</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> java.util.Locale;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 4</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> java.util.MissingResourceException;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 5</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> java.util.ResourceBundle;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 6</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> java.util.concurrent.ConcurrentHashMap;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 7</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 8</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> net.jaekl.qd.QDBundleFactory;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 9</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 10</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">class</span> FrankBundle {</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 11</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">static</span> <span Class="keyword">final</span> String DATA_COLLECTED = <span Class="string">"data.collected"</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 12</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">static</span> <span Class="keyword">final</span> String DESTINATION = <span Class="string">"destination"</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 13</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">static</span> <span Class="keyword">final</span> String ERROR_PAGE = <span Class="string">"error.page"</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 14</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">static</span> <span Class="keyword">final</span> String ETA = <span Class="string">"eta"</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 15</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">static</span> <span Class="keyword">final</span> String FRANK = <span Class="string">"frank"</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 16</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">static</span> <span Class="keyword">final</span> String GPS_OFF = <span Class="string">"gps.off"</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 17</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">static</span> <span Class="keyword">final</span> String GPS_READ = <span Class="string">"gps.read"</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 18</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">static</span> <span Class="keyword">final</span> String MINUTES = <span Class="string">"m"</span>; <span Class="comment">// suffix (abbreviated) for minutes</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 19</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">static</span> <span Class="keyword">final</span> String REMAIN = <span Class="string">"remain"</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 20</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">static</span> <span Class="keyword">final</span> String ROUTE = <span Class="string">"route"</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 21</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">static</span> <span Class="keyword">final</span> String SECONDS = <span Class="string">"s"</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 22</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">static</span> <span Class="keyword">final</span> String UNEXPECTED_ERROR = <span Class="string">"unexpected.error"</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 23</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 24</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">final</span> <span Class="keyword">static</span> String BUNDLE_NAME = <span Class="string">"frank"</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 25</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 26<a name="src_26"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">static</span> ConcurrentHashMap<Locale, FrankBundle> m_bundleMap = <span Class="keyword">new</span> ConcurrentHashMap<Locale, FrankBundle>();</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 27</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 28</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> ResourceBundle m_bundle;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 29</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 30</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">static</span> FrankBundle getInst(Locale locale) {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 31<a name="src_31"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> FrankBundle result = m_bundleMap.get(locale);</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 32</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">if</span> (<span Class="keyword">null</span> == result) {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 33</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">synchronized</span>(FrankBundle.<span Class="keyword">class</span>) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 34</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> result = m_bundleMap.get(locale);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 35</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">if</span> (<span Class="keyword">null</span> == result) {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 36</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> result = <span Class="keyword">new</span> FrankBundle(locale); </span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 37</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 38</td>
- <td class="nbHitsUncovered"> Block: 1/1 Branch: 0/1 </td>
- <td class="src"><pre class="src"> m_bundleMap.put(locale, result);</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 39</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 40</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 41</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">return</span> result;</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 42</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 43</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 44<a name="src_44"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">private</span> FrankBundle(Locale locale) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 45</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> m_bundle = QDBundleFactory.getInst().getBundle(BUNDLE_NAME, locale); </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 46</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 47</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 48</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> String get(String key) {</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 49</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">try</span> {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 50<a name="src_50"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">if</span> (<span Class="keyword">null</span> != m_bundle) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 51</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">return</span> m_bundle.getString(key);</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 52</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 53</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 54</td>
- <td class="nbHitsUncovered"> Block: 0/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">catch</span> (MissingResourceException e) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 55</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// Make it clear that something has gone wrong.</span></pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 56</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> e.printStackTrace(); </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 57</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// Fall through to the fallback behaviour below</span></pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 58</td>
- <td class="nbHitsUncovered"> Block: 0/1 Branch: 0/1 </td>
- <td class="src"><pre class="src"> }</span></pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 59</td>
- <td class="nbHitsUncovered"> Block: 0/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">return</span> <span Class="string">"["</span> + key + <span Class="string">"]"</span>;</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 60</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 61</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- </table>
-<p>
-<p><table cellpadding="0" cellspacing="0" class="report"> <tr class="report"> <td class="reportText"><span class="text"> Report generated 11/12/14 11:31 PM </span></td> </tr></table>
-</body>
-</html>
+++ /dev/null
-<html>
-<head>
-<title>tests coverage</title>
-<link rel ="stylesheet" type="text/css" href="../../../style.css" title="Style">
-<script type="text/javascript" src="../../../sorttable.js"></script>
-<script type="text/javascript">
- targetPage = "" + window.location.search;
- if (targetPage != "" && targetPage != "undefined")
- targetPage = targetPage.substring(1);
- if (targetPage.indexOf(":") != -1 || (targetPage != "" && !validURL(targetPage)))
- targetPage = "undefined";
- function validURL(url) {
- var pos = url.indexOf(".html");
- if (pos == -1 || pos != url.length - 5)
- return false;
- var allowNumber = false;
- var allowSep = false;
- var seenDot = false;
- for (var i = 0; i < url.length - 5; i++) {
- var ch = url.charAt(i);
- if ('a' <= ch && ch <= 'z' ||
- 'A' <= ch && ch <= 'Z' ||
- ch == '$' ||
- ch == '_') {
- allowNumber = true;
- allowSep = true;
- } else if ('0' <= ch && ch <= '9' ||
- ch == '-') {
- if (!allowNumber)
- return false;
- } else if (ch == '/' || ch == '.') {
- if (!allowSep)
- return false;
- allowNumber = false;
- allowSep = false;
- if (ch == '.')
- seenDot = true;
- if (ch == '/' && seenDot)
- return false;
- } else {
- return false;
- }
- }
- return true;
- }
- function loadFrames() {
- if (targetPage != "" && targetPage != "undefined")
- top.classFrame.location = top.targetPage;
- }
-</script>
-</head>
-<body>
-<table>
-<tr>
-<td>
-<a href="../../../index.html?net/jaekl/frank/FrankException.html" target="_top">Frames</a>
-<a href="FrankException.html" target="_top">No Frames</a>
-</td>
-</tr>
-</table>
-<p>
- <table cellspacing="0" cellpadding="0"class="report">
- <tr class="report">
- <th class="report"> </th>
- <th class="report">%method</th>
- <th class="report">%block</th>
- <th class="report">%branch</th>
- <th class="report">%line</th>
- </tr>
- <tr class="report">
- <td class="reportText"><span class="text">net.jaekl.frank.FrankException</span></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>0</b>%(0/1)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 0"></td><td class="percentUnCovered" width="100.0"></td></tr></table></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>0</b>%(0/1)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 0"></td><td class="percentUnCovered" width="100.0"></td></tr></table></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>-</b>%</span></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>0</b>%(0/2)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 0"></td><td class="percentUnCovered" width="100.0"></td></tr></table></td></tr></table></td>
- </tr>
- </table>
- <p>
- <p>
- <table cellspacing="0" cellpadding="0"class="report" id="mcoverage">
- <tr class="report">
- <th class="report">hit count</th>
- <th class="report">method name</th>
- <th class="report">method modifiers</th>
- <th class="report">method signature</th>
- </tr>
- <tr class="report">
- <td class="reportValue_uncovered"><span class="text">0</span></td>
- <td class="reportText"><span class="text"><a href="#src_9"><init></a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">void <init>(java.lang.Throwable)</span></td>
- </tr>
- </table>
- <p>
- <table cellspacing="0" cellpadding="0" class="src">
- <tr>
- <td class="numLine"> 1</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">package</span> net.jaekl.frank;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 2</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 3</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> java.lang.Exception;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 4</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 5</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">class</span> FrankException <span Class="keyword">extends</span> Exception {</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 6</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">private</span> <span Class="keyword">static</span> <span Class="keyword">final</span> <span Class="keyword">long</span> serialVersionUID = 1L;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 7</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 8</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> FrankException(Throwable cause) {</pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 9<a name="src_9"></a></td>
- <td class="nbHitsUncovered"> Block: 0/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">super</span>(cause);</span></pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 10</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 11</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- </table>
-<p>
-<p><table cellpadding="0" cellspacing="0" class="report"> <tr class="report"> <td class="reportText"><span class="text"> Report generated 11/12/14 11:31 PM </span></td> </tr></table>
-</body>
-</html>
+++ /dev/null
-<html>
-<head>
-<title>tests coverage</title>
-<link rel ="stylesheet" type="text/css" href="../../../style.css" title="Style">
-<script type="text/javascript" src="../../../sorttable.js"></script>
-<script type="text/javascript">
- targetPage = "" + window.location.search;
- if (targetPage != "" && targetPage != "undefined")
- targetPage = targetPage.substring(1);
- if (targetPage.indexOf(":") != -1 || (targetPage != "" && !validURL(targetPage)))
- targetPage = "undefined";
- function validURL(url) {
- var pos = url.indexOf(".html");
- if (pos == -1 || pos != url.length - 5)
- return false;
- var allowNumber = false;
- var allowSep = false;
- var seenDot = false;
- for (var i = 0; i < url.length - 5; i++) {
- var ch = url.charAt(i);
- if ('a' <= ch && ch <= 'z' ||
- 'A' <= ch && ch <= 'Z' ||
- ch == '$' ||
- ch == '_') {
- allowNumber = true;
- allowSep = true;
- } else if ('0' <= ch && ch <= '9' ||
- ch == '-') {
- if (!allowNumber)
- return false;
- } else if (ch == '/' || ch == '.') {
- if (!allowSep)
- return false;
- allowNumber = false;
- allowSep = false;
- if (ch == '.')
- seenDot = true;
- if (ch == '/' && seenDot)
- return false;
- } else {
- return false;
- }
- }
- return true;
- }
- function loadFrames() {
- if (targetPage != "" && targetPage != "undefined")
- top.classFrame.location = top.targetPage;
- }
-</script>
-</head>
-<body>
-<table>
-<tr>
-<td>
-<a href="../../../index.html?net/jaekl/frank/Schedule.html" target="_top">Frames</a>
-<a href="Schedule.html" target="_top">No Frames</a>
-</td>
-</tr>
-</table>
-<p>
- <table cellspacing="0" cellpadding="0"class="report">
- <tr class="report">
- <th class="report"> </th>
- <th class="report">%method</th>
- <th class="report">%block</th>
- <th class="report">%branch</th>
- <th class="report">%line</th>
- </tr>
- <tr class="report">
- <td class="reportText"><span class="text">net.jaekl.frank.Schedule</span></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>100</b>%(7/7)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 100"></td><td class="percentUnCovered" width="0.0"></td></tr></table></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>88</b>%(21/24)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 88"></td><td class="percentUnCovered" width="12.0"></td></tr></table></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>75</b>%(9/12)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 75"></td><td class="percentUnCovered" width="25.0"></td></tr></table></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>98</b>%(79/81)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 98"></td><td class="percentUnCovered" width="2.0"></td></tr></table></td></tr></table></td>
- </tr>
- </table>
- <p>
- <p>
- <table cellspacing="0" cellpadding="0"class="report" id="mcoverage">
- <tr class="report">
- <th class="report">hit count</th>
- <th class="report">method name</th>
- <th class="report">method modifiers</th>
- <th class="report">method signature</th>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">8</span></td>
- <td class="reportText"><span class="text"><a href="#src_20"><init></a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">void <init>(java.util.Locale)</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">6</span></td>
- <td class="reportText"><span class="text"><a href="#src_32">mapUrl</a></span></td>
- <td class="reportText"><span class="text">[]</span></td>
- <td class="reportText"><span class="text">java.lang.String mapUrl(double,double)</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">22</span></td>
- <td class="reportText"><span class="text"><a href="#src_28">trans</a></span></td>
- <td class="reportText"><span class="text">[]</span></td>
- <td class="reportText"><span class="text">java.lang.String trans(java.lang.String)</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">11</span></td>
- <td class="reportText"><span class="text"><a href="#src_73">writeHeader</a></span></td>
- <td class="reportText"><span class="text">[]</span></td>
- <td class="reportText"><span class="text">void writeHeader(java.io.PrintWriter,java.lang.String)</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">2</span></td>
- <td class="reportText"><span class="text"><a href="#src_82">writePage</a></span></td>
- <td class="reportText"><span class="text">[]</span></td>
- <td class="reportText"><span class="text">void writePage(java.io.PrintWriter,net.jaekl.frank.octranspo.StopInfo)</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">2</span></td>
- <td class="reportText"><span class="text"><a href="#src_47">writeScript</a></span></td>
- <td class="reportText"><span class="text">[]</span></td>
- <td class="reportText"><span class="text">void writeScript(java.io.PrintWriter,java.lang.String,int)</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">14</span></td>
- <td class="reportText"><span class="text"><a href="#src_36">writeStyle</a></span></td>
- <td class="reportText"><span class="text">[]</span></td>
- <td class="reportText"><span class="text">void writeStyle(java.io.PrintWriter)</span></td>
- </tr>
- </table>
- <p>
- <table cellspacing="0" cellpadding="0" class="src">
- <tr>
- <td class="numLine"> 1</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">package</span> net.jaekl.frank;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 2</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 3</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> java.io.PrintWriter;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 4</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> java.text.DateFormat;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 5</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> java.text.MessageFormat;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 6</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> java.text.SimpleDateFormat;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 7</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> java.util.Date;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 8</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> java.util.Locale;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 9</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 10</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> net.jaekl.frank.octranspo.Route;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 11</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> net.jaekl.frank.octranspo.StopInfo;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 12</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> net.jaekl.frank.octranspo.Trip;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 13</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 14</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">class</span> Schedule {</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 15</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> Locale m_locale;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 16</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> FrankBundle m_bundle;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 17</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> DateFormat m_hourMinFmt;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 18</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> DateFormat m_hourMinSecFmt;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 19</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 20<a name="src_20"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> Schedule(Locale locale) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 21</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> m_locale = locale;</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 22</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> m_bundle = FrankBundle.getInst(locale);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 23</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> m_hourMinFmt = <span Class="keyword">new</span> SimpleDateFormat(<span Class="string">"hh:mma"</span>, locale);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 24</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> m_hourMinSecFmt = <span Class="keyword">new</span> SimpleDateFormat(<span Class="string">"hh:mm:ssa"</span>, locale);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 25</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 26</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 27</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> String trans(String key) {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 28<a name="src_28"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">return</span> m_bundle.get(key);</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 29</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 30</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 31</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> String mapUrl(<span Class="keyword">double</span> latitude, <span Class="keyword">double</span> longitude) {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 32<a name="src_32"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">return</span> <span Class="string">"http://www.openstreetmap.org/?mlat="</span> + latitude + <span Class="string">"&mlon="</span> + longitude + <span Class="string">"&zoom=15"</span>;</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 33</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 34</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 35</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">void</span> writeStyle(PrintWriter pw) {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 36<a name="src_36"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> pw.println(<span Class="string">"<STYLE>"</span>);</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 37</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> pw.println(<span Class="string">" body {background-color: #F0F0C0; font-size: 1.5em; }"</span>);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 38</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> pw.println(<span Class="string">" #trips {border-collapse: collapse; font-size: 1.5em; }"</span>);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 39</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> pw.println(<span Class="string">" #trips td, #trips th {border: 1px solid #600000; padding: 3px 3px 3px 3px; text-align: center;}"</span>);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 40</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> pw.println(<span Class="string">" #trips th {background-color: #800000; color: #FFFFFF; }"</span>);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 41</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> pw.println(<span Class="string">" #trips tr.ghost td {background-color: #C0C0C0;}"</span>);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 42</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> pw.println(<span Class="string">"</STYLE>"</span>);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 43</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 44</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 45</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// Countdown timer that updates time remaining until each bus is expected.</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 46</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">void</span> writeScript(PrintWriter pw, String remainArray, <span Class="keyword">int</span> remainCount) {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 47<a name="src_47"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> String min = trans(FrankBundle.MINUTES);</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 48</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> String sec = trans(FrankBundle.SECONDS);</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 49</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 50</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> pw.println(<span Class="string">"<SCRIPT>"</span>);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 51</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> pw.println(<span Class="string">"var start; var interval; var remain;"</span>);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 52</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> pw.println(<span Class="string">"window.onload = function() { start = new Date(); interval = setInterval(\"Tick()\", 1000); remain = "</span> + remainArray + <span Class="string">"; }"</span>);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 53</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> pw.println(<span Class="string">"function Tick() { "</span>);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 54</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> pw.println(<span Class="string">" var now = new Date(); var delta = Math.floor((now.getTime() - start.getTime()) / 1000); "</span>);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 55</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> pw.println(<span Class="string">" var secs = delta % 60; var mins = Math.floor(delta / 60);"</span>);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 56</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> pw.println(<span Class="string">" document.getElementById(\"elapsed\").innerHTML = mins + \""</span> + min + <span Class="string">" \" + secs + \""</span> + sec + <span Class="string">"\""</span>);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 57</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> pw.println(<span Class="string">" for (var i = 0; i < "</span> + remainCount + <span Class="string">"; ++i) {"</span>);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 58</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> pw.println(<span Class="string">" var id = \"in_\" + i;"</span>);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 59</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> pw.println(<span Class="string">" var element = document.getElementById(id);"</span>);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 60</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> pw.println(<span Class="string">" var remain_delta = (remain[i] * 60) + 30 - delta;"</span>);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 61</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> pw.println(<span Class="string">" if (remain_delta <= 0) {"</span>);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 62</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> pw.println(<span Class="string">" element.innerHTML = \"----\""</span>);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 63</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> pw.println(<span Class="string">" } else {"</span>);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 64</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> pw.println(<span Class="string">" element.innerHTML = (Math.floor(remain_delta / 60)) + \""</span> + trans(min) + <span Class="string">"\""</span>);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 65</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> pw.println(<span Class="string">" }"</span>);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 66</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> pw.println(<span Class="string">" }"</span>);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 67</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> pw.println(<span Class="string">"}"</span>);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 68</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> pw.println(<span Class="string">"</SCRIPT>"</span>);</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 69</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 70</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 71</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 72</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">void</span> writeHeader(PrintWriter pw, String title) {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 73<a name="src_73"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> pw.println(<span Class="string">"<HTML>"</span>);</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 74</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> pw.println(<span Class="string">"<HEAD>"</span>);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 75</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> pw.println(<span Class="string">"<TITLE>"</span> + title + <span Class="string">"</TITLE>"</span>);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 76</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> writeStyle(pw);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 77</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> pw.println(<span Class="string">"</HEAD>"</span>);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 78</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 79</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 80</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">void</span> writePage(PrintWriter pw, StopInfo stopInfo)</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 81</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 82<a name="src_82"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> StringBuilder remainArray = <span Class="keyword">new</span> StringBuilder(<span Class="string">"[ "</span>);</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 83</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">int</span> remainCount = 0;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 84</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 85</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> String title = stopInfo.getDescr() + <span Class="string">" ("</span> + stopInfo.getStopNo() + <span Class="string">")"</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 86</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> String min = trans(FrankBundle.MINUTES);</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 87</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 88</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> writeHeader(pw, trans(FrankBundle.FRANK) + <span Class="string">": "</span> + title);</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 89</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 90</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> pw.println(<span Class="string">"<BODY>"</span>);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 91</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> pw.println(<span Class="string">" <TABLE ID=\"trips\">"</span>);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 92</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> pw.println(<span Class="string">" <TR><TH COLSPAN=\ř\">"</span> + title + <span Class="string">"</TH></TR>"</span>);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 93</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> pw.println(<span Class="string">" <TR><TH>"</span> +</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 94</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> trans(FrankBundle.ROUTE) + </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 95</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="string">"</TH><TH>"</span> +</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 96</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> trans(FrankBundle.DESTINATION) +</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 97</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="string">"</TH><TH>"</span> +</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 98</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> trans(FrankBundle.ETA) +</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 99</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="string">"</TH><TH>"</span> +</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 100</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> trans(FrankBundle.REMAIN) + </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 101</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="string">"</TH><TH>"</span> +</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 102</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> trans(FrankBundle.GPS_READ) +</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 103</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="string">"</TH>"</span>);</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 104</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 105</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">for</span> (<span Class="keyword">int</span> routeIdx = 0; routeIdx < stopInfo.getNumRoutes(); ++routeIdx) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 106</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> Route route = stopInfo.getRoute(routeIdx);</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 107</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">for</span> (<span Class="keyword">int</span> tripIdx = 0; tripIdx < route.getNumTrips(); ++tripIdx) {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 108</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> Trip trip = route.getTrip(tripIdx);</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 109</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">boolean</span> isGhost = ((-1) == trip.getAdjAge());</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 110</td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">if</span> (isGhost) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 111</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// GPS is off. This bus may not exist.</span></pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 112</td>
- <td class="nbHitsUncovered"> Block: 0/1 Branch: 0/1 </td>
- <td class="src"><pre class="src"> pw.println(<span Class="string">" <TR CLASS=\"ghost\">"</span>);</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 113</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> } <span Class="keyword">else</span> {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 114</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> pw.println(<span Class="string">" <TR>"</span>);</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 115</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 116</td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> pw.println(<span Class="string">" <TD>"</span> + route.getRouteNo() + <span Class="string">"</TD>"</span>);</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 117</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> pw.println(<span Class="string">" <TD>"</span> + trip.getDest() + <span Class="string">"</TD>"</span>);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 118</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> pw.println(<span Class="string">" <TD>"</span> + m_hourMinFmt.format(trip.getETA()) + <span Class="string">"</TD>"</span>);</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 119</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 120</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> pw.println(<span Class="string">" <TD><SPAN ID=\"in_"</span> + remainCount + <span Class="string">"\">"</span>+ trip.getAdjTime()+min+<span Class="string">"</SPAN></TD>"</span>);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 121</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">if</span> (remainCount > 0) {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 122</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> remainArray.append(<span Class="string">", "</span>);</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 123</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 124</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> remainArray.append(trip.getAdjTime());</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 125</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> remainCount++;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 126</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 127</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">if</span> (trip.getAdjAge() < 0) {</pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 128</td>
- <td class="nbHitsUncovered"> Block: 0/1 Branch: 0/1 </td>
- <td class="src"><pre class="src"> pw.println(<span Class="string">" <TD>"</span> + trans(FrankBundle.GPS_OFF) + <span Class="string">"</TD>"</span>);</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 129</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 130</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">else</span> {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 131</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> pw.println(<span Class="string">" <TD><A HREF=\""</span> + mapUrl(trip.getLatitude(), trip.getLongitude()) + </span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 132</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="string">"\">"</span> + m_hourMinSecFmt.format(trip.getGPSTime()) + <span Class="string">"</A></TD>"</span>);</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 133</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 134</td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> pw.println(<span Class="string">" </TR>"</span>);</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 135</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 136</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 137</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 138</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> pw.println(<span Class="string">" </TABLE>"</span>);</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 139</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 140</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> String dataCollectedFormat = trans(FrankBundle.DATA_COLLECTED);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 141</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> String dataCollected = MessageFormat.format(dataCollectedFormat, m_hourMinSecFmt.format(<span Class="keyword">new</span> Date()));</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 142</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> pw.println(<span Class="string">" <P>"</span> + dataCollected + <span Class="string">"</P>"</span>);</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 143</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 144</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> remainArray.append(<span Class="string">" ]"</span>);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 145</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> writeScript(pw, remainArray.toString(), remainCount);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 146</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> pw.println(<span Class="string">"</BODY></HTML>"</span>);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 147</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 148</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- </table>
-<p>
-<p><table cellpadding="0" cellspacing="0" class="report"> <tr class="report"> <td class="reportText"><span class="text"> Report generated 11/12/14 11:31 PM </span></td> </tr></table>
-</body>
-</html>
+++ /dev/null
-<html>
-<head>
-<title>tests coverage</title>
-<link rel ="stylesheet" type="text/css" href="../../../style.css" title="Style">
-<script type="text/javascript" src="../../../sorttable.js"></script>
-<script type="text/javascript">
- targetPage = "" + window.location.search;
- if (targetPage != "" && targetPage != "undefined")
- targetPage = targetPage.substring(1);
- if (targetPage.indexOf(":") != -1 || (targetPage != "" && !validURL(targetPage)))
- targetPage = "undefined";
- function validURL(url) {
- var pos = url.indexOf(".html");
- if (pos == -1 || pos != url.length - 5)
- return false;
- var allowNumber = false;
- var allowSep = false;
- var seenDot = false;
- for (var i = 0; i < url.length - 5; i++) {
- var ch = url.charAt(i);
- if ('a' <= ch && ch <= 'z' ||
- 'A' <= ch && ch <= 'Z' ||
- ch == '$' ||
- ch == '_') {
- allowNumber = true;
- allowSep = true;
- } else if ('0' <= ch && ch <= '9' ||
- ch == '-') {
- if (!allowNumber)
- return false;
- } else if (ch == '/' || ch == '.') {
- if (!allowSep)
- return false;
- allowNumber = false;
- allowSep = false;
- if (ch == '.')
- seenDot = true;
- if (ch == '/' && seenDot)
- return false;
- } else {
- return false;
- }
- }
- return true;
- }
- function loadFrames() {
- if (targetPage != "" && targetPage != "undefined")
- top.classFrame.location = top.targetPage;
- }
-</script>
-</head>
-<body>
-<table>
-<tr>
-<td>
-<a href="../../../index.html?net/jaekl/frank/ViewSchedule.html" target="_top">Frames</a>
-<a href="ViewSchedule.html" target="_top">No Frames</a>
-</td>
-</tr>
-</table>
-<p>
- <table cellspacing="0" cellpadding="0"class="report">
- <tr class="report">
- <th class="report"> </th>
- <th class="report">%method</th>
- <th class="report">%block</th>
- <th class="report">%branch</th>
- <th class="report">%line</th>
- </tr>
- <tr class="report">
- <td class="reportText"><span class="text">net.jaekl.frank.ViewSchedule</span></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>67</b>%(4/6)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 67"></td><td class="percentUnCovered" width="33.0"></td></tr></table></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>38</b>%(8/21)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 38"></td><td class="percentUnCovered" width="62.0"></td></tr></table></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>30</b>%(3/10)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 30"></td><td class="percentUnCovered" width="70.0"></td></tr></table></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>43</b>%(20/46)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 43"></td><td class="percentUnCovered" width="57.0"></td></tr></table></td></tr></table></td>
- </tr>
- </table>
- <p>
- <p>
- <table cellspacing="0" cellpadding="0"class="report" id="mcoverage">
- <tr class="report">
- <th class="report">hit count</th>
- <th class="report">method name</th>
- <th class="report">method modifiers</th>
- <th class="report">method signature</th>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">3</span></td>
- <td class="reportText"><span class="text"><a href="#src_19"><init></a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">void <init>()</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_uncovered"><span class="text">0</span></td>
- <td class="reportText"><span class="text"><a href="#src_63">doGet</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">void doGet(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_uncovered"><span class="text">0</span></td>
- <td class="reportText"><span class="text"><a href="#src_48">getLocale</a></span></td>
- <td class="reportText"><span class="text">[]</span></td>
- <td class="reportText"><span class="text">java.util.Locale getLocale(javax.servlet.http.HttpServletRequest)</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">4</span></td>
- <td class="reportText"><span class="text"><a href="#src_28">getParamInt</a></span></td>
- <td class="reportText"><span class="text">[]</span></td>
- <td class="reportText"><span class="text">int getParamInt(javax.servlet.http.HttpServletRequest,java.lang.String)</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">8</span></td>
- <td class="reportText"><span class="text"><a href="#src_39">getParamString</a></span></td>
- <td class="reportText"><span class="text">[]</span></td>
- <td class="reportText"><span class="text">java.lang.String getParamString(javax.servlet.http.HttpServletRequest,java.lang.String)</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">3</span></td>
- <td class="reportText"><span class="text"><a href="#src_96">writeErrorPage</a></span></td>
- <td class="reportText"><span class="text">[]</span></td>
- <td class="reportText"><span class="text">void writeErrorPage(java.io.PrintWriter,java.lang.Throwable,java.util.Locale)</span></td>
- </tr>
- </table>
- <p>
- <table cellspacing="0" cellpadding="0" class="src">
- <tr>
- <td class="numLine"> 1</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">package</span> net.jaekl.frank;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 2</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 3</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> java.io.ByteArrayOutputStream;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 4</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> java.io.FileInputStream;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 5</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> java.io.IOException;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 6</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> java.io.PrintStream;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 7</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> java.io.PrintWriter;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 8</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> java.util.Locale;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 9</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 10</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> javax.servlet.ServletException;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 11</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> javax.servlet.http.HttpServlet;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 12</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> javax.servlet.http.HttpServletRequest;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 13</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> javax.servlet.http.HttpServletResponse;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 14</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 15</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> net.jaekl.frank.octranspo.Server;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 16</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> net.jaekl.frank.octranspo.StopInfo;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 17</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> net.jaekl.qd.util.ExceptionUtils;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 18</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 19<a name="src_19"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">class</span> ViewSchedule <span Class="keyword">extends</span> HttpServlet {</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 20</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">private</span> <span Class="keyword">static</span> <span Class="keyword">final</span> <span Class="keyword">long</span> serialVersionUID = 1L;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 21</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 22</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">static</span> <span Class="keyword">final</span> String BUNDLE_NAME = <span Class="string">"frank"</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 23</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">static</span> <span Class="keyword">final</span> String STOP = <span Class="string">"stop"</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 24</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">static</span> <span Class="keyword">final</span> String ROUTE = <span Class="string">"route"</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 25</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">static</span> <span Class="keyword">final</span> String LANG = <span Class="string">"lang"</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 26</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 27</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">int</span> getParamInt(HttpServletRequest req, String paramName) {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 28<a name="src_28"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> String valueStr = getParamString(req, paramName);</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 29</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">try</span> {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 30</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">return</span> Integer.parseInt(valueStr);</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 31</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 32</td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">catch</span> (NumberFormatException exc) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 33</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// TODO: Error page</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 34</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">return</span> 0;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 35</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 36</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 37</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 38</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> String getParamString(HttpServletRequest req, String paramName) {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 39<a name="src_39"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> String valueStr = req.getParameter(paramName);</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 40</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">if</span> (<span Class="keyword">null</span> == valueStr|| valueStr.equals(<span Class="string">""</span>)) {</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 41</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// TODO: Error page</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 42</td>
- <td class="nbHitsUncovered"> Block: 1/1 Branch: 1/2 </td>
- <td class="src"><pre class="src"> <span Class="keyword">return</span> <span Class="keyword">null</span>;</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 43</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 44</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">return</span> valueStr;</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 45</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 46</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 47</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> Locale getLocale(HttpServletRequest req) {</pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 48<a name="src_48"></a></td>
- <td class="nbHitsUncovered"> Block: 0/1 </td>
- <td class="src"><pre class="src"> Locale result = <span Class="keyword">null</span>;</span></pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 49</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> String lang = getParamString(req, LANG);</pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 50</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">if</span> (<span Class="keyword">null</span> != lang) {</pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 51</td>
- <td class="nbHitsUncovered"> Block: 0/1 Branch: 0/1 </td>
- <td class="src"><pre class="src"> result = <span Class="keyword">new</span> Locale(lang);</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 52</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 53</td>
- <td class="nbHitsUncovered"> Block: 0/1 Branch: 0/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">if</span> (<span Class="keyword">null</span> == result) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 54</td>
- <td class="nbHitsUncovered"> Block: 0/1 Branch: 0/1 </td>
- <td class="src"><pre class="src"> result = Locale.getDefault();</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 55</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 56</td>
- <td class="nbHitsUncovered"> Block: 0/1 Branch: 0/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">return</span> result;</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 57</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 58</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 59</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> @Override</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 60</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">void</span> doGet(HttpServletRequest req, HttpServletResponse res)</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 61</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">throws</span> ServletException, IOException</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 62</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> {</pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 63<a name="src_63"></a></td>
- <td class="nbHitsUncovered"> Block: 0/1 </td>
- <td class="src"><pre class="src"> res.setContentType(<span Class="string">"text/html"</span>);</span></pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 64</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> PrintWriter pw = res.getWriter();</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 65</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 66</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> Locale locale = getLocale(req);</pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 67</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">int</span> stop = getParamInt(req, STOP);</pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 68</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">int</span> route = getParamInt(req, ROUTE);</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 69</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 70</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">try</span> {</pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 71</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> FileInputStream fis = <span Class="keyword">new</span> FileInputStream(<span Class="string">"apikey.txt"</span>);</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 72</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">try</span> {</pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 73</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> Server server = <span Class="keyword">new</span> Server(<span Class="string">"192f31d2"</span>, fis);</pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 74</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> StopInfo stopInfo = <span Class="keyword">null</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 75</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 76</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">if</span> (0 == route) {</pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 77</td>
- <td class="nbHitsUncovered"> Block: 0/1 Branch: 0/1 </td>
- <td class="src"><pre class="src"> stopInfo = server.getNextTripsForStopAllRoutes(stop);</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 78</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 79</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">else</span> {</pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 80</td>
- <td class="nbHitsUncovered"> Block: 0/1 Branch: 0/1 </td>
- <td class="src"><pre class="src"> stopInfo = server.getNextTripsForStop(stop, route);</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 81</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 82</td>
- <td class="nbHitsUncovered"> Block: 0/1 </td>
- <td class="src"><pre class="src"> Schedule schedule = <span Class="keyword">new</span> Schedule(locale);</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 83</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 84</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> schedule.writePage(pw, stopInfo);</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 85</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 86</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">finally</span> {</pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 87</td>
- <td class="nbHitsUncovered"> Block: 0/1 </td>
- <td class="src"><pre class="src"> ExceptionUtils.tryClose(fis);</span></pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 88</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 89</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 90</td>
- <td class="nbHitsUncovered"> Block: 0/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">catch</span> (Throwable t) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 91</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> writeErrorPage(pw, t, locale);</pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 92</td>
- <td class="nbHitsUncovered"> Block: 0/1 </td>
- <td class="src"><pre class="src"> }</span></pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 93</td>
- <td class="nbHitsUncovered"> Block: 0/1 </td>
- <td class="src"><pre class="src"> }</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 94</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 95</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">void</span> writeErrorPage(PrintWriter pw, Throwable t, Locale locale) {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 96<a name="src_96"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> ByteArrayOutputStream baos = <span Class="keyword">new</span> ByteArrayOutputStream();</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 97</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> PrintStream ps = <span Class="keyword">new</span> PrintStream(baos);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 98</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> FrankBundle bundle = FrankBundle.getInst(locale);</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 99</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 100</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> pw.println(<span Class="string">"<HTML><HEAD><TITLE>"</span> + </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 101</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> bundle.get(FrankBundle.FRANK) + <span Class="string">": "</span> +</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 102</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> bundle.get(FrankBundle.ERROR_PAGE) + </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 103</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="string">"</TITLE></HEAD>"</span>);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 104</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> pw.println(<span Class="string">"<BODY><H1>"</span> +</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 105</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> bundle.get(FrankBundle.FRANK) + <span Class="string">": "</span> +</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 106</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> bundle.get(FrankBundle.UNEXPECTED_ERROR) + </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 107</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="string">"</H1><P><PRE>"</span>);</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 108</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 109</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// Note that, if we cared about security, we would log this stack trace to a</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 110</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// server log, and only report a cross-reference to the log file back to the </span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 111</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// end user's browser, to avoid potentially exposing internal info that we </span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 112</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// don't want to share.</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 113</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// At least at this point, we don't care (that much), and trade off a </span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 114</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// potential information leak in favour of reducing our code complexity</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 115</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// and the administrator's workload.</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 116</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> t.printStackTrace(ps);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 117</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> String stackTrace = baos.toString(); </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 118</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> pw.println(stackTrace);</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 119</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 120</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> pw.println(<span Class="string">"</PRE></P></BODY>"</span>);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 121</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> pw.println(<span Class="string">"</HTML>"</span>);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 122</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 123</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 124</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 125</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- </table>
-<p>
-<p><table cellpadding="0" cellspacing="0" class="report"> <tr class="report"> <td class="reportText"><span class="text"> Report generated 11/12/14 11:31 PM </span></td> </tr></table>
-</body>
-</html>
+++ /dev/null
-<html>
-<head>
-<title>tests coverage</title>
-<link rel ="stylesheet" type="text/css" href="../../../../style.css" title="Style">
-<script type="text/javascript" src="../../../../sorttable.js"></script>
-<script type="text/javascript">
- targetPage = "" + window.location.search;
- if (targetPage != "" && targetPage != "undefined")
- targetPage = targetPage.substring(1);
- if (targetPage.indexOf(":") != -1 || (targetPage != "" && !validURL(targetPage)))
- targetPage = "undefined";
- function validURL(url) {
- var pos = url.indexOf(".html");
- if (pos == -1 || pos != url.length - 5)
- return false;
- var allowNumber = false;
- var allowSep = false;
- var seenDot = false;
- for (var i = 0; i < url.length - 5; i++) {
- var ch = url.charAt(i);
- if ('a' <= ch && ch <= 'z' ||
- 'A' <= ch && ch <= 'Z' ||
- ch == '$' ||
- ch == '_') {
- allowNumber = true;
- allowSep = true;
- } else if ('0' <= ch && ch <= '9' ||
- ch == '-') {
- if (!allowNumber)
- return false;
- } else if (ch == '/' || ch == '.') {
- if (!allowSep)
- return false;
- allowNumber = false;
- allowSep = false;
- if (ch == '.')
- seenDot = true;
- if (ch == '/' && seenDot)
- return false;
- } else {
- return false;
- }
- }
- return true;
- }
- function loadFrames() {
- if (targetPage != "" && targetPage != "undefined")
- top.classFrame.location = top.targetPage;
- }
-</script>
-</head>
-<body>
-<table>
-<tr>
-<td>
-<a href="../../../../index.html?net/jaekl/frank/octranspo/NextTrips.html" target="_top">Frames</a>
-<a href="NextTrips.html" target="_top">No Frames</a>
-</td>
-</tr>
-</table>
-<p>
- <table cellspacing="0" cellpadding="0"class="report">
- <tr class="report">
- <th class="report"> </th>
- <th class="report">%method</th>
- <th class="report">%block</th>
- <th class="report">%branch</th>
- <th class="report">%line</th>
- </tr>
- <tr class="report">
- <td class="reportText"><span class="text">net.jaekl.frank.octranspo.NextTrips</span></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>100</b>%(2/2)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 100"></td><td class="percentUnCovered" width="0.0"></td></tr></table></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>100</b>%(2/2)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 100"></td><td class="percentUnCovered" width="0.0"></td></tr></table></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>-</b>%</span></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>100</b>%(4/4)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 100"></td><td class="percentUnCovered" width="0.0"></td></tr></table></td></tr></table></td>
- </tr>
- </table>
- <p>
- <p>
- <table cellspacing="0" cellpadding="0"class="report" id="mcoverage">
- <tr class="report">
- <th class="report">hit count</th>
- <th class="report">method name</th>
- <th class="report">method modifiers</th>
- <th class="report">method signature</th>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">1</span></td>
- <td class="reportText"><span class="text"><a href="#src_5"><clinit></a></span></td>
- <td class="reportText"><span class="text">[static]</span></td>
- <td class="reportText"><span class="text">void <clinit>()</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">1</span></td>
- <td class="reportText"><span class="text"><a href="#src_9"><init></a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">void <init>()</span></td>
- </tr>
- </table>
- <p>
- <table cellspacing="0" cellpadding="0" class="src">
- <tr>
- <td class="numLine"> 1</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">package</span> net.jaekl.frank.octranspo;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 2</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 3</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">class</span> NextTrips <span Class="keyword">extends</span> StopInfo {</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 4</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">static</span> <span Class="keyword">final</span> String ROOT_TAG = <span Class="string">"GetNextTripsForStopResult"</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 5<a name="src_5"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">static</span> <span Class="keyword">final</span> String[] INTERNAL = { STOP_NO, STOP_LABEL, ERROR, ROUTES };</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 6</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">static</span> <span Class="keyword">final</span> Object[][] EXTERNAL = { { ROUTE, Route.<span Class="keyword">class</span>} };</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 7</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 8</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> NextTrips() {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 9<a name="src_9"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">super</span>(ROOT_TAG, INTERNAL, EXTERNAL);</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 10</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 11</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- </table>
-<p>
-<p><table cellpadding="0" cellspacing="0" class="report"> <tr class="report"> <td class="reportText"><span class="text"> Report generated 11/12/14 11:31 PM </span></td> </tr></table>
-</body>
-</html>
+++ /dev/null
-<html>
-<head>
-<title>tests coverage</title>
-<link rel ="stylesheet" type="text/css" href="../../../../style.css" title="Style">
-<script type="text/javascript" src="../../../../sorttable.js"></script>
-<script type="text/javascript">
- targetPage = "" + window.location.search;
- if (targetPage != "" && targetPage != "undefined")
- targetPage = targetPage.substring(1);
- if (targetPage.indexOf(":") != -1 || (targetPage != "" && !validURL(targetPage)))
- targetPage = "undefined";
- function validURL(url) {
- var pos = url.indexOf(".html");
- if (pos == -1 || pos != url.length - 5)
- return false;
- var allowNumber = false;
- var allowSep = false;
- var seenDot = false;
- for (var i = 0; i < url.length - 5; i++) {
- var ch = url.charAt(i);
- if ('a' <= ch && ch <= 'z' ||
- 'A' <= ch && ch <= 'Z' ||
- ch == '$' ||
- ch == '_') {
- allowNumber = true;
- allowSep = true;
- } else if ('0' <= ch && ch <= '9' ||
- ch == '-') {
- if (!allowNumber)
- return false;
- } else if (ch == '/' || ch == '.') {
- if (!allowSep)
- return false;
- allowNumber = false;
- allowSep = false;
- if (ch == '.')
- seenDot = true;
- if (ch == '/' && seenDot)
- return false;
- } else {
- return false;
- }
- }
- return true;
- }
- function loadFrames() {
- if (targetPage != "" && targetPage != "undefined")
- top.classFrame.location = top.targetPage;
- }
-</script>
-</head>
-<body>
-<table>
-<tr>
-<td>
-<a href="../../../../index.html?net/jaekl/frank/octranspo/Route.html" target="_top">Frames</a>
-<a href="Route.html" target="_top">No Frames</a>
-</td>
-</tr>
-</table>
-<p>
- <table cellspacing="0" cellpadding="0"class="report">
- <tr class="report">
- <th class="report"> </th>
- <th class="report">%method</th>
- <th class="report">%block</th>
- <th class="report">%branch</th>
- <th class="report">%line</th>
- </tr>
- <tr class="report">
- <td class="reportText"><span class="text">net.jaekl.frank.octranspo.Route</span></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>100</b>%(10/10)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 100"></td><td class="percentUnCovered" width="0.0"></td></tr></table></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>90</b>%(26/29)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 90"></td><td class="percentUnCovered" width="10.0"></td></tr></table></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>75</b>%(15/20)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 75"></td><td class="percentUnCovered" width="25.0"></td></tr></table></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>100</b>%(31/31)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 100"></td><td class="percentUnCovered" width="0.0"></td></tr></table></td></tr></table></td>
- </tr>
- </table>
- <p>
- <p>
- <table cellspacing="0" cellpadding="0"class="report" id="mcoverage">
- <tr class="report">
- <th class="report">hit count</th>
- <th class="report">method name</th>
- <th class="report">method modifiers</th>
- <th class="report">method signature</th>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">1</span></td>
- <td class="reportText"><span class="text"><a href="#src_7"><clinit></a></span></td>
- <td class="reportText"><span class="text">[static]</span></td>
- <td class="reportText"><span class="text">void <clinit>()</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">7</span></td>
- <td class="reportText"><span class="text"><a href="#src_29"><init></a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">void <init>()</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">22</span></td>
- <td class="reportText"><span class="text"><a href="#src_47">endContents</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">void endContents(java.lang.String,java.lang.String,java.lang.String,java.lang.String)</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">9</span></td>
- <td class="reportText"><span class="text"><a href="#src_64">endExternal</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">void endExternal(java.lang.String,java.lang.String,java.lang.String)</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">4</span></td>
- <td class="reportText"><span class="text"><a href="#src_39">getDirection</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">java.lang.String getDirection()</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">2</span></td>
- <td class="reportText"><span class="text"><a href="#src_38">getDirectionID</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">int getDirectionID()</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">8</span></td>
- <td class="reportText"><span class="text"><a href="#src_41">getNumTrips</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">int getNumTrips()</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">4</span></td>
- <td class="reportText"><span class="text"><a href="#src_40">getRouteHeading</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">java.lang.String getRouteHeading()</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">8</span></td>
- <td class="reportText"><span class="text"><a href="#src_37">getRouteNo</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">int getRouteNo()</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">8</span></td>
- <td class="reportText"><span class="text"><a href="#src_42">getTrip</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">net.jaekl.frank.octranspo.Trip getTrip(int)</span></td>
- </tr>
- </table>
- <p>
- <table cellspacing="0" cellpadding="0" class="src">
- <tr>
- <td class="numLine"> 1</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">package</span> net.jaekl.frank.octranspo;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 2</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 3</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> java.util.ArrayList;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 4</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> net.jaekl.qd.xml.ParseResult;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 5</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> net.jaekl.qd.xml.XmlParseException;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 6</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 7<a name="src_7"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">class</span> Route <span Class="keyword">extends</span> ParseResult {</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 8</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">static</span> <span Class="keyword">final</span> String ROUTE = <span Class="string">"Route"</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 9</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 10</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">static</span> <span Class="keyword">final</span> String ROUTE_NO = <span Class="string">"RouteNo"</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 11</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">static</span> <span Class="keyword">final</span> String DIRECTION_ID = <span Class="string">"DirectionID"</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 12</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">static</span> <span Class="keyword">final</span> String DIRECTION = <span Class="string">"Direction"</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 13</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">static</span> <span Class="keyword">final</span> String ROUTE_HEADING = <span Class="string">"RouteHeading"</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 14</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">static</span> <span Class="keyword">final</span> String ROUTE_LABEL = <span Class="string">"RouteLabel"</span>; <span Class="comment">// What GetNextTripsForStop calls <RouteHeading> </span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 15</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">static</span> <span Class="keyword">final</span> String TRIPS = <span Class="string">"Trips"</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 16</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 17</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">static</span> <span Class="keyword">final</span> String TRIP = <span Class="string">"Trip"</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 18</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 19</td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">static</span> <span Class="keyword">final</span> String[] INTERNAL = { ROUTE_NO, DIRECTION_ID, DIRECTION, ROUTE_HEADING, ROUTE_LABEL, TRIPS };</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 20</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">static</span> <span Class="keyword">final</span> Object[][] EXTERNAL = { { TRIP, Trip.<span Class="keyword">class</span> } };</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 21</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 22</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">int</span> m_routeNo;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 23</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">int</span> m_directionID;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 24</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> String m_direction;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 25</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> String m_routeHeading;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 26</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> ArrayList<Trip> m_trips;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 27</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 28</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> Route() {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 29<a name="src_29"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">super</span>(ROUTE, INTERNAL, EXTERNAL);</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 30</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> m_routeNo = 0;</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 31</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> m_directionID = 0;</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 32</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> m_direction = <span Class="string">""</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 33</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> m_routeHeading = <span Class="string">""</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 34</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> m_trips = <span Class="keyword">new</span> ArrayList<Trip>();</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 35</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 36</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 37<a name="src_37"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">int</span> getRouteNo() { <span Class="keyword">return</span> m_routeNo; }</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 38<a name="src_38"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">int</span> getDirectionID() { <span Class="keyword">return</span> m_directionID; }</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 39<a name="src_39"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> String getDirection() { <span Class="keyword">return</span> m_direction; }</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 40<a name="src_40"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> String getRouteHeading() { <span Class="keyword">return</span> m_routeHeading; } </span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 41<a name="src_41"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">int</span> getNumTrips() { <span Class="keyword">return</span> m_trips.size(); }</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 42<a name="src_42"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> Trip getTrip(<span Class="keyword">int</span> idx) { <span Class="keyword">return</span> <span Class="keyword">new</span> Trip(m_trips.get(idx)); }</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 43</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 44</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> @Override</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 45</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">void</span> endContents(String uri, String localName, String qName, String chars) <span Class="keyword">throws</span> XmlParseException </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 46</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 47<a name="src_47"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">if</span> (ROUTE_NO.equals(localName)) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 48</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> m_routeNo = Integer.parseInt(chars);</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 49</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 50</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">else</span> <span Class="keyword">if</span> (DIRECTION_ID.equals(localName)) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 51</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> m_directionID = Integer.parseInt(chars);</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 52</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 53</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">else</span> <span Class="keyword">if</span> (DIRECTION.equals(localName)) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 54</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> m_direction = chars;</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 55</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 56</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">else</span> <span Class="keyword">if</span> (ROUTE_HEADING.equals(localName) || ROUTE_LABEL.equals(localName)) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 57</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 2/2 </td>
- <td class="src"><pre class="src"> m_routeHeading = chars;</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 58</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 59</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> }</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 60</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 61</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> @Override</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 62</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">void</span> endExternal(String uri, String localName, String qName) <span Class="keyword">throws</span> XmlParseException</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 63</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 64<a name="src_64"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">if</span> (localName.equals(TRIP)) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 65</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> ParseResult[] collected = collectParsedChildren(Trip.<span Class="keyword">class</span>);</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 66</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">for</span> (ParseResult pr : collected) {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 67</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">assert</span>(pr <span Class="keyword">instanceof</span> Trip);</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 68</td>
- <td class="nbHitsUncovered"> Block: 1/1 Branch: 1/2 </td>
- <td class="src"><pre class="src"> m_trips.add((Trip)pr);</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 69</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 70</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 71</td>
- <td class="nbHitsUncovered"> Block: 1/1 Branch: 1/2 </td>
- <td class="src"><pre class="src"> }</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 72</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- </table>
-<p>
-<p><table cellpadding="0" cellspacing="0" class="report"> <tr class="report"> <td class="reportText"><span class="text"> Report generated 11/12/14 11:31 PM </span></td> </tr></table>
-</body>
-</html>
+++ /dev/null
-<html>
-<head>
-<title>tests coverage</title>
-<link rel ="stylesheet" type="text/css" href="../../../../style.css" title="Style">
-<script type="text/javascript" src="../../../../sorttable.js"></script>
-<script type="text/javascript">
- targetPage = "" + window.location.search;
- if (targetPage != "" && targetPage != "undefined")
- targetPage = targetPage.substring(1);
- if (targetPage.indexOf(":") != -1 || (targetPage != "" && !validURL(targetPage)))
- targetPage = "undefined";
- function validURL(url) {
- var pos = url.indexOf(".html");
- if (pos == -1 || pos != url.length - 5)
- return false;
- var allowNumber = false;
- var allowSep = false;
- var seenDot = false;
- for (var i = 0; i < url.length - 5; i++) {
- var ch = url.charAt(i);
- if ('a' <= ch && ch <= 'z' ||
- 'A' <= ch && ch <= 'Z' ||
- ch == '$' ||
- ch == '_') {
- allowNumber = true;
- allowSep = true;
- } else if ('0' <= ch && ch <= '9' ||
- ch == '-') {
- if (!allowNumber)
- return false;
- } else if (ch == '/' || ch == '.') {
- if (!allowSep)
- return false;
- allowNumber = false;
- allowSep = false;
- if (ch == '.')
- seenDot = true;
- if (ch == '/' && seenDot)
- return false;
- } else {
- return false;
- }
- }
- return true;
- }
- function loadFrames() {
- if (targetPage != "" && targetPage != "undefined")
- top.classFrame.location = top.targetPage;
- }
-</script>
-</head>
-<body>
-<table>
-<tr>
-<td>
-<a href="../../../../index.html?net/jaekl/frank/octranspo/RouteSummary.html" target="_top">Frames</a>
-<a href="RouteSummary.html" target="_top">No Frames</a>
-</td>
-</tr>
-</table>
-<p>
- <table cellspacing="0" cellpadding="0"class="report">
- <tr class="report">
- <th class="report"> </th>
- <th class="report">%method</th>
- <th class="report">%block</th>
- <th class="report">%branch</th>
- <th class="report">%line</th>
- </tr>
- <tr class="report">
- <td class="reportText"><span class="text">net.jaekl.frank.octranspo.RouteSummary</span></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>100</b>%(2/2)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 100"></td><td class="percentUnCovered" width="0.0"></td></tr></table></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>100</b>%(2/2)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 100"></td><td class="percentUnCovered" width="0.0"></td></tr></table></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>-</b>%</span></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>100</b>%(4/4)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 100"></td><td class="percentUnCovered" width="0.0"></td></tr></table></td></tr></table></td>
- </tr>
- </table>
- <p>
- <p>
- <table cellspacing="0" cellpadding="0"class="report" id="mcoverage">
- <tr class="report">
- <th class="report">hit count</th>
- <th class="report">method name</th>
- <th class="report">method modifiers</th>
- <th class="report">method signature</th>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">1</span></td>
- <td class="reportText"><span class="text"><a href="#src_5"><clinit></a></span></td>
- <td class="reportText"><span class="text">[static]</span></td>
- <td class="reportText"><span class="text">void <clinit>()</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">4</span></td>
- <td class="reportText"><span class="text"><a href="#src_9"><init></a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">void <init>()</span></td>
- </tr>
- </table>
- <p>
- <table cellspacing="0" cellpadding="0" class="src">
- <tr>
- <td class="numLine"> 1</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">package</span> net.jaekl.frank.octranspo;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 2</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 3</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">class</span> RouteSummary <span Class="keyword">extends</span> StopInfo {</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 4</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">static</span> <span Class="keyword">final</span> String ROOT_TAG = <span Class="string">"GetRouteSummaryForStopResult"</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 5<a name="src_5"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">static</span> <span Class="keyword">final</span> String[] INTERNAL = { STOP_NO, DESCRIPTION, ERROR, ROUTES };</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 6</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">static</span> <span Class="keyword">final</span> Object[][] EXTERNAL = { { ROUTE, Route.<span Class="keyword">class</span>} };</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 7</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 8</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> RouteSummary() {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 9<a name="src_9"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">super</span>(ROOT_TAG, INTERNAL, EXTERNAL);</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 10</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 11</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- </table>
-<p>
-<p><table cellpadding="0" cellspacing="0" class="report"> <tr class="report"> <td class="reportText"><span class="text"> Report generated 11/12/14 11:31 PM </span></td> </tr></table>
-</body>
-</html>
+++ /dev/null
-<html>
-<head>
-<title>tests coverage</title>
-<link rel ="stylesheet" type="text/css" href="../../../../style.css" title="Style">
-<script type="text/javascript" src="../../../../sorttable.js"></script>
-<script type="text/javascript">
- targetPage = "" + window.location.search;
- if (targetPage != "" && targetPage != "undefined")
- targetPage = targetPage.substring(1);
- if (targetPage.indexOf(":") != -1 || (targetPage != "" && !validURL(targetPage)))
- targetPage = "undefined";
- function validURL(url) {
- var pos = url.indexOf(".html");
- if (pos == -1 || pos != url.length - 5)
- return false;
- var allowNumber = false;
- var allowSep = false;
- var seenDot = false;
- for (var i = 0; i < url.length - 5; i++) {
- var ch = url.charAt(i);
- if ('a' <= ch && ch <= 'z' ||
- 'A' <= ch && ch <= 'Z' ||
- ch == '$' ||
- ch == '_') {
- allowNumber = true;
- allowSep = true;
- } else if ('0' <= ch && ch <= '9' ||
- ch == '-') {
- if (!allowNumber)
- return false;
- } else if (ch == '/' || ch == '.') {
- if (!allowSep)
- return false;
- allowNumber = false;
- allowSep = false;
- if (ch == '.')
- seenDot = true;
- if (ch == '/' && seenDot)
- return false;
- } else {
- return false;
- }
- }
- return true;
- }
- function loadFrames() {
- if (targetPage != "" && targetPage != "undefined")
- top.classFrame.location = top.targetPage;
- }
-</script>
-</head>
-<body>
-<table>
-<tr>
-<td>
-<a href="../../../../index.html?net/jaekl/frank/octranspo/Server.html" target="_top">Frames</a>
-<a href="Server.html" target="_top">No Frames</a>
-</td>
-</tr>
-</table>
-<p>
- <table cellspacing="0" cellpadding="0"class="report">
- <tr class="report">
- <th class="report"> </th>
- <th class="report">%method</th>
- <th class="report">%block</th>
- <th class="report">%branch</th>
- <th class="report">%line</th>
- </tr>
- <tr class="report">
- <td class="reportText"><span class="text">net.jaekl.frank.octranspo.Server</span></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>100</b>%(5/5)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 100"></td><td class="percentUnCovered" width="0.0"></td></tr></table></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>53</b>%(9/17)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 53"></td><td class="percentUnCovered" width="47.0"></td></tr></table></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>30</b>%(3/10)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 30"></td><td class="percentUnCovered" width="70.0"></td></tr></table></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>78</b>%(21/27)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 78"></td><td class="percentUnCovered" width="22.0"></td></tr></table></td></tr></table></td>
- </tr>
- </table>
- <p>
- <p>
- <table cellspacing="0" cellpadding="0"class="report" id="mcoverage">
- <tr class="report">
- <th class="report">hit count</th>
- <th class="report">method name</th>
- <th class="report">method modifiers</th>
- <th class="report">method signature</th>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">1</span></td>
- <td class="reportText"><span class="text"><a href="#src_16"><clinit></a></span></td>
- <td class="reportText"><span class="text">[static]</span></td>
- <td class="reportText"><span class="text">void <clinit>()</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">3</span></td>
- <td class="reportText"><span class="text"><a href="#src_33"><init></a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">void <init>(java.lang.String,java.io.InputStream)</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">1</span></td>
- <td class="reportText"><span class="text"><a href="#src_64">getNextTripsForStop</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">net.jaekl.frank.octranspo.StopInfo getNextTripsForStop(int,int)</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">1</span></td>
- <td class="reportText"><span class="text"><a href="#src_78">getNextTripsForStopAllRoutes</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">net.jaekl.frank.octranspo.StopInfo getNextTripsForStopAllRoutes(int)</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">1</span></td>
- <td class="reportText"><span class="text"><a href="#src_51">getRouteSummaryForStop</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">net.jaekl.frank.octranspo.StopInfo getRouteSummaryForStop(int)</span></td>
- </tr>
- </table>
- <p>
- <table cellspacing="0" cellpadding="0" class="src">
- <tr>
- <td class="numLine"> 1</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">package</span> net.jaekl.frank.octranspo;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 2</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 3</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> java.io.BufferedReader;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 4</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> java.io.InputStream;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 5</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> java.io.InputStreamReader;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 6</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> java.io.IOException;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 7</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> java.util.ArrayList;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 8</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 9</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> net.jaekl.frank.FrankException;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 10</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> net.jaekl.qd.QDException;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 11</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> net.jaekl.qd.http.RequestBroker;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 12</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 13</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> org.apache.http.NameValuePair;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 14</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> org.apache.http.message.BasicNameValuePair;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 15</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 16<a name="src_16"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">class</span> Server</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 17</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> {</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 18</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">static</span> <span Class="keyword">final</span> String API_KEY = <span Class="string">"apiKey"</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 19</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">static</span> <span Class="keyword">final</span> String APP_ID = <span Class="string">"appID"</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 20</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">static</span> <span Class="keyword">final</span> String GATEWAY_URL = <span Class="string">"https://api.octranspo1.com/v1.2/"</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 21</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">static</span> <span Class="keyword">final</span> String ROUTE_NO = <span Class="string">"routeNo"</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 22</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">static</span> <span Class="keyword">final</span> String STOP_NO = <span Class="string">"stopNo"</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 23</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">static</span> <span Class="keyword">final</span> String GET_ROUTE_SUMMARY_FOR_STOP = <span Class="string">"GetRouteSummaryForStop"</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 24</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">static</span> <span Class="keyword">final</span> String GET_NEXT_TRIPS_FOR_STOP = <span Class="string">"GetNextTripsForStop"</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 25</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">static</span> <span Class="keyword">final</span> String GET_NEXT_TRIPS_FOR_STOP_ALL_ROUTES = <span Class="string">"GetNextTripsForStopAllRoutes"</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 26</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 27</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> RequestBroker m_broker;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 28</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> ArrayList<NameValuePair> m_baseParams;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 29</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 30</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// Constructor</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 31</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// appID The appID for our application</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 32</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// is InputStream from which to read the apiKey</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 33<a name="src_33"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> Server(String appID, InputStream is) <span Class="keyword">throws</span> IOException {</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 34</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">assert</span> (<span Class="keyword">null</span> != appID);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 35</td>
- <td class="nbHitsUncovered"> Block: 1/1 Branch: 1/2 </td>
- <td class="src"><pre class="src"> <span Class="keyword">assert</span> (<span Class="keyword">null</span> != is);</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 36</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 37</td>
- <td class="nbHitsUncovered"> Block: 1/1 Branch: 1/2 </td>
- <td class="src"><pre class="src"> BufferedReader br = <span Class="keyword">new</span> BufferedReader(<span Class="keyword">new</span> InputStreamReader(is));</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 38</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> String apiKey = br.readLine();</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 39</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 40</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> m_baseParams = <span Class="keyword">new</span> ArrayList<NameValuePair>();</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 41</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> m_baseParams.add(<span Class="keyword">new</span> BasicNameValuePair(APP_ID, appID));</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 42</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> m_baseParams.add(<span Class="keyword">new</span> BasicNameValuePair(API_KEY, apiKey));</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 43</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 44</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> m_broker = <span Class="keyword">new</span> RequestBroker(GATEWAY_URL, m_baseParams);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 45</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 46</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 47</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> StopInfo getRouteSummaryForStop(<span Class="keyword">int</span> stopNo) </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 48</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">throws</span> FrankException</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 49</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> {</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 50</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">try</span> {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 51<a name="src_51"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> ArrayList<NameValuePair> params = <span Class="keyword">new</span> ArrayList<NameValuePair>();</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 52</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> params.add(<span Class="keyword">new</span> BasicNameValuePair(STOP_NO, Integer.valueOf(stopNo).toString()));</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 53</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">return</span> (StopInfo) m_broker.submitAndParse(GET_ROUTE_SUMMARY_FOR_STOP, params, RouteSummary.<span Class="keyword">class</span>);</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 54</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 55</td>
- <td class="nbHitsUncovered"> Block: 0/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">catch</span> (QDException e) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 56</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">throw</span> <span Class="keyword">new</span> FrankException(e);</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 57</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 58</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 59</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 60</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> StopInfo getNextTripsForStop(<span Class="keyword">int</span> stopNo, <span Class="keyword">int</span> routeNo) </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 61</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">throws</span> FrankException</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 62</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> {</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 63</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">try</span> {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 64<a name="src_64"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> ArrayList<NameValuePair> params = <span Class="keyword">new</span> ArrayList<NameValuePair>();</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 65</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> params.add(<span Class="keyword">new</span> BasicNameValuePair(STOP_NO, Integer.valueOf(stopNo).toString()));</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 66</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> params.add(<span Class="keyword">new</span> BasicNameValuePair(ROUTE_NO, Integer.valueOf(routeNo).toString()));</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 67</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">return</span> (StopInfo) m_broker.submitAndParse(GET_NEXT_TRIPS_FOR_STOP, params, NextTrips.<span Class="keyword">class</span>);</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 68</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 69</td>
- <td class="nbHitsUncovered"> Block: 0/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">catch</span> (QDException e) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 70</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">throw</span> <span Class="keyword">new</span> FrankException(e);</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 71</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 72</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 73</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 74</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> StopInfo getNextTripsForStopAllRoutes(<span Class="keyword">int</span> stopNo) </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 75</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">throws</span> FrankException</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 76</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> {</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 77</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">try</span> {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 78<a name="src_78"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> ArrayList<NameValuePair> params = <span Class="keyword">new</span> ArrayList<NameValuePair>();</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 79</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> params.add(<span Class="keyword">new</span> BasicNameValuePair(STOP_NO, Integer.valueOf(stopNo).toString()));</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 80</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">return</span> (StopInfo) m_broker.submitAndParse(GET_NEXT_TRIPS_FOR_STOP_ALL_ROUTES, params, RouteSummary.<span Class="keyword">class</span>);</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 81</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 82</td>
- <td class="nbHitsUncovered"> Block: 0/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">catch</span> (QDException e) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 83</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">throw</span> <span Class="keyword">new</span> FrankException(e);</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 84</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 85</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 86</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 87</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- </table>
-<p>
-<p><table cellpadding="0" cellspacing="0" class="report"> <tr class="report"> <td class="reportText"><span class="text"> Report generated 11/12/14 11:31 PM </span></td> </tr></table>
-</body>
-</html>
+++ /dev/null
-<html>
-<head>
-<title>tests coverage</title>
-<link rel ="stylesheet" type="text/css" href="../../../../style.css" title="Style">
-<script type="text/javascript" src="../../../../sorttable.js"></script>
-<script type="text/javascript">
- targetPage = "" + window.location.search;
- if (targetPage != "" && targetPage != "undefined")
- targetPage = targetPage.substring(1);
- if (targetPage.indexOf(":") != -1 || (targetPage != "" && !validURL(targetPage)))
- targetPage = "undefined";
- function validURL(url) {
- var pos = url.indexOf(".html");
- if (pos == -1 || pos != url.length - 5)
- return false;
- var allowNumber = false;
- var allowSep = false;
- var seenDot = false;
- for (var i = 0; i < url.length - 5; i++) {
- var ch = url.charAt(i);
- if ('a' <= ch && ch <= 'z' ||
- 'A' <= ch && ch <= 'Z' ||
- ch == '$' ||
- ch == '_') {
- allowNumber = true;
- allowSep = true;
- } else if ('0' <= ch && ch <= '9' ||
- ch == '-') {
- if (!allowNumber)
- return false;
- } else if (ch == '/' || ch == '.') {
- if (!allowSep)
- return false;
- allowNumber = false;
- allowSep = false;
- if (ch == '.')
- seenDot = true;
- if (ch == '/' && seenDot)
- return false;
- } else {
- return false;
- }
- }
- return true;
- }
- function loadFrames() {
- if (targetPage != "" && targetPage != "undefined")
- top.classFrame.location = top.targetPage;
- }
-</script>
-</head>
-<body>
-<table>
-<tr>
-<td>
-<a href="../../../../index.html?net/jaekl/frank/octranspo/StopInfo.html" target="_top">Frames</a>
-<a href="StopInfo.html" target="_top">No Frames</a>
-</td>
-</tr>
-</table>
-<p>
- <table cellspacing="0" cellpadding="0"class="report">
- <tr class="report">
- <th class="report"> </th>
- <th class="report">%method</th>
- <th class="report">%block</th>
- <th class="report">%branch</th>
- <th class="report">%line</th>
- </tr>
- <tr class="report">
- <td class="reportText"><span class="text">net.jaekl.frank.octranspo.StopInfo</span></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>100</b>%(9/9)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 100"></td><td class="percentUnCovered" width="0.0"></td></tr></table></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>83</b>%(24/29)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 83"></td><td class="percentUnCovered" width="17.0"></td></tr></table></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>64</b>%(14/22)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 64"></td><td class="percentUnCovered" width="36.0"></td></tr></table></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>100</b>%(32/32)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 100"></td><td class="percentUnCovered" width="0.0"></td></tr></table></td></tr></table></td>
- </tr>
- </table>
- <p>
- <p>
- <table cellspacing="0" cellpadding="0"class="report" id="mcoverage">
- <tr class="report">
- <th class="report">hit count</th>
- <th class="report">method name</th>
- <th class="report">method modifiers</th>
- <th class="report">method signature</th>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">1</span></td>
- <td class="reportText"><span class="text"><a href="#src_8"><clinit></a></span></td>
- <td class="reportText"><span class="text">[static]</span></td>
- <td class="reportText"><span class="text">void <clinit>()</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">5</span></td>
- <td class="reportText"><span class="text"><a href="#src_26"><init></a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">void <init>(java.lang.String,java.lang.String[],java.lang.Object[][])</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">11</span></td>
- <td class="reportText"><span class="text"><a href="#src_49">endContents</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">void endContents(java.lang.String,java.lang.String,java.lang.String,java.lang.String)</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">5</span></td>
- <td class="reportText"><span class="text"><a href="#src_65">endExternal</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">void endExternal(java.lang.String,java.lang.String,java.lang.String)</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">5</span></td>
- <td class="reportText"><span class="text"><a href="#src_38">getDescr</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">java.lang.String getDescr()</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">3</span></td>
- <td class="reportText"><span class="text"><a href="#src_39">getError</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">java.lang.String getError()</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">7</span></td>
- <td class="reportText"><span class="text"><a href="#src_40">getNumRoutes</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">int getNumRoutes()</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">6</span></td>
- <td class="reportText"><span class="text"><a href="#src_41">getRoute</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">net.jaekl.frank.octranspo.Route getRoute(int)</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">5</span></td>
- <td class="reportText"><span class="text"><a href="#src_37">getStopNo</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">int getStopNo()</span></td>
- </tr>
- </table>
- <p>
- <table cellspacing="0" cellpadding="0" class="src">
- <tr>
- <td class="numLine"> 1</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">package</span> net.jaekl.frank.octranspo;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 2</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 3</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> java.util.ArrayList;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 4</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 5</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> net.jaekl.qd.xml.ParseResult;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 6</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> net.jaekl.qd.xml.XmlParseException;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 7</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 8<a name="src_8"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">class</span> StopInfo <span Class="keyword">extends</span> ParseResult</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 9</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> {</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 10</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// potential child tag names</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 11</td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">static</span> String STOP_NO = <span Class="string">"StopNo"</span>;</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 12</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">static</span> String DESCRIPTION = <span Class="string">"StopDescription"</span>; <span Class="comment">// Present in RouteSummary</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 13</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">static</span> String STOP_LABEL = <span Class="string">"StopLabel"</span>; <span Class="comment">// What NextTrips calls StopDescription</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 14</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">static</span> String ERROR = <span Class="string">"Error"</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 15</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">static</span> String ROUTES = <span Class="string">"Routes"</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 16</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">static</span> String ROUTE = <span Class="string">"Route"</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 17</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 18</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// data returned inside our element</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 19</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">int</span> m_stopNo;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 20</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> String m_descr;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 21</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> String m_error;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 22</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> ArrayList<Route> m_routes;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 23</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 24</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// Constructor</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 25</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> StopInfo(String rootTagName, String[] internal, Object[][] external) {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 26<a name="src_26"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">super</span>(rootTagName, internal, external);</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 27</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 28</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> m_stopNo = 0;</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 29</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> m_descr = <span Class="string">""</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 30</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> m_error = <span Class="string">""</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 31</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> m_routes = <span Class="keyword">new</span> ArrayList<Route>();</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 32</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 33</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 34</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// -----------------------------</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 35</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// Public methods to access data</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 36</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 37<a name="src_37"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">int</span> getStopNo() { <span Class="keyword">return</span> m_stopNo; }</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 38<a name="src_38"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> String getDescr() { <span Class="keyword">return</span> m_descr; }</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 39<a name="src_39"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> String getError() { <span Class="keyword">return</span> m_error; }</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 40<a name="src_40"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">int</span> getNumRoutes() { <span Class="keyword">return</span> m_routes.size(); }</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 41<a name="src_41"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> Route getRoute(<span Class="keyword">int</span> idx) { <span Class="keyword">return</span> m_routes.get(idx); }</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 42</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 43</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// --------------------------</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 44</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// ParseResult implementation</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 45</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 46</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> @Override</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 47</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">void</span> endContents(String uri, String localName, String qName, String chars) <span Class="keyword">throws</span> XmlParseException</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 48</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 49<a name="src_49"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">assert</span> (<span Class="keyword">null</span> != localName);</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 50</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 51</td>
- <td class="nbHitsUncovered"> Block: 1/1 Branch: 1/2 </td>
- <td class="src"><pre class="src"> <span Class="keyword">if</span> (localName.equals(STOP_NO)) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 52</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> m_stopNo = Integer.parseInt(chars);</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 53</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 54</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">else</span> <span Class="keyword">if</span> (localName.equals(DESCRIPTION) || localName.equals(STOP_LABEL)) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 55</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 2/2 </td>
- <td class="src"><pre class="src"> m_descr = chars;</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 56</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 57</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">else</span> <span Class="keyword">if</span> (localName.equals(ERROR)) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 58</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> m_error = chars;</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 59</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 60</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> }</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 61</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 62</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> @Override</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 63</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">void</span> endExternal(String uri, String localName, String qName) <span Class="keyword">throws</span> XmlParseException</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 64</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 65<a name="src_65"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">if</span> (localName.equals(ROUTE)) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 66</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> ParseResult[] collected = collectParsedChildren(Route.<span Class="keyword">class</span>);</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 67</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">for</span> (ParseResult pr : collected) {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 68</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">assert</span> (pr <span Class="keyword">instanceof</span> Route);</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 69</td>
- <td class="nbHitsUncovered"> Block: 1/1 Branch: 1/2 </td>
- <td class="src"><pre class="src"> m_routes.add((Route)pr);</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 70</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 71</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 72</td>
- <td class="nbHitsUncovered"> Block: 1/1 Branch: 1/2 </td>
- <td class="src"><pre class="src"> }</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 73</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 74</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 75</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 76</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- </table>
-<p>
-<p><table cellpadding="0" cellspacing="0" class="report"> <tr class="report"> <td class="reportText"><span class="text"> Report generated 11/12/14 11:31 PM </span></td> </tr></table>
-</body>
-</html>
+++ /dev/null
-<html>
-<head>
-<title>tests coverage</title>
-<link rel ="stylesheet" type="text/css" href="../../../../style.css" title="Style">
-<script type="text/javascript" src="../../../../sorttable.js"></script>
-<script type="text/javascript">
- targetPage = "" + window.location.search;
- if (targetPage != "" && targetPage != "undefined")
- targetPage = targetPage.substring(1);
- if (targetPage.indexOf(":") != -1 || (targetPage != "" && !validURL(targetPage)))
- targetPage = "undefined";
- function validURL(url) {
- var pos = url.indexOf(".html");
- if (pos == -1 || pos != url.length - 5)
- return false;
- var allowNumber = false;
- var allowSep = false;
- var seenDot = false;
- for (var i = 0; i < url.length - 5; i++) {
- var ch = url.charAt(i);
- if ('a' <= ch && ch <= 'z' ||
- 'A' <= ch && ch <= 'Z' ||
- ch == '$' ||
- ch == '_') {
- allowNumber = true;
- allowSep = true;
- } else if ('0' <= ch && ch <= '9' ||
- ch == '-') {
- if (!allowNumber)
- return false;
- } else if (ch == '/' || ch == '.') {
- if (!allowSep)
- return false;
- allowNumber = false;
- allowSep = false;
- if (ch == '.')
- seenDot = true;
- if (ch == '/' && seenDot)
- return false;
- } else {
- return false;
- }
- }
- return true;
- }
- function loadFrames() {
- if (targetPage != "" && targetPage != "undefined")
- top.classFrame.location = top.targetPage;
- }
-</script>
-</head>
-<body>
-<table>
-<tr>
-<td>
-<a href="../../../../index.html?net/jaekl/frank/octranspo/Trip.html" target="_top">Frames</a>
-<a href="Trip.html" target="_top">No Frames</a>
-</td>
-</tr>
-</table>
-<p>
- <table cellspacing="0" cellpadding="0"class="report">
- <tr class="report">
- <th class="report"> </th>
- <th class="report">%method</th>
- <th class="report">%block</th>
- <th class="report">%branch</th>
- <th class="report">%line</th>
- </tr>
- <tr class="report">
- <td class="reportText"><span class="text">net.jaekl.frank.octranspo.Trip</span></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>94</b>%(15/16)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 94"></td><td class="percentUnCovered" width="6.0"></td></tr></table></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>94</b>%(34/36)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 94"></td><td class="percentUnCovered" width="6.0"></td></tr></table></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>94</b>%(17/18)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 94"></td><td class="percentUnCovered" width="6.0"></td></tr></table></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>95</b>%(58/61)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 95"></td><td class="percentUnCovered" width="5.0"></td></tr></table></td></tr></table></td>
- </tr>
- </table>
- <p>
- <p>
- <table cellspacing="0" cellpadding="0"class="report" id="mcoverage">
- <tr class="report">
- <th class="report">hit count</th>
- <th class="report">method name</th>
- <th class="report">method modifiers</th>
- <th class="report">method signature</th>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">1</span></td>
- <td class="reportText"><span class="text"><a href="#src_25"><clinit></a></span></td>
- <td class="reportText"><span class="text">[static]</span></td>
- <td class="reportText"><span class="text">void <clinit>()</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">13</span></td>
- <td class="reportText"><span class="text"><a href="#src_50"><init></a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">void <init>()</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">8</span></td>
- <td class="reportText"><span class="text"><a href="#src_66"><init></a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">void <init>(net.jaekl.frank.octranspo.Trip)</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">81</span></td>
- <td class="reportText"><span class="text"><a href="#src_102">endContents</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">void endContents(java.lang.String,java.lang.String,java.lang.String,java.lang.String)</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_uncovered"><span class="text">0</span></td>
- <td class="reportText"><span class="text"><a href="#src_138">endExternal</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">void endExternal(java.lang.String,java.lang.String,java.lang.String)</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">12</span></td>
- <td class="reportText"><span class="text"><a href="#src_82">getAdjAge</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">double getAdjAge()</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">12</span></td>
- <td class="reportText"><span class="text"><a href="#src_81">getAdjTime</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">int getAdjTime()</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">4</span></td>
- <td class="reportText"><span class="text"><a href="#src_84">getBusType</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">java.lang.String getBusType()</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">8</span></td>
- <td class="reportText"><span class="text"><a href="#src_79">getDest</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">java.lang.String getDest()</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">4</span></td>
- <td class="reportText"><span class="text"><a href="#src_90">getETA</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">java.util.Date getETA()</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">4</span></td>
- <td class="reportText"><span class="text"><a href="#src_93">getGPSTime</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">java.util.Date getGPSTime()</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">8</span></td>
- <td class="reportText"><span class="text"><a href="#src_87">getLatitude</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">double getLatitude()</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">8</span></td>
- <td class="reportText"><span class="text"><a href="#src_86">getLongitude</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">double getLongitude()</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">4</span></td>
- <td class="reportText"><span class="text"><a href="#src_85">getSpeed</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">double getSpeed()</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">4</span></td>
- <td class="reportText"><span class="text"><a href="#src_80">getStart</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">java.util.Date getStart()</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">4</span></td>
- <td class="reportText"><span class="text"><a href="#src_83">isLastTrip</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">boolean isLastTrip()</span></td>
- </tr>
- </table>
- <p>
- <table cellspacing="0" cellpadding="0" class="src">
- <tr>
- <td class="numLine"> 1</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">package</span> net.jaekl.frank.octranspo;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 2</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 3</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> java.text.DateFormat;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 4</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> java.text.ParseException;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 5</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> java.text.SimpleDateFormat;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 6</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> java.util.Date;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 7</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 8</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> net.jaekl.qd.util.ParseUtils;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 9</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> net.jaekl.qd.xml.ParseResult;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 10</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> net.jaekl.qd.xml.XmlParseException;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 11</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 12</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">class</span> Trip <span Class="keyword">extends</span> ParseResult {</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 13</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">static</span> <span Class="keyword">final</span> String TRIP = <span Class="string">"Trip"</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 14</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 15</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">static</span> <span Class="keyword">final</span> String TRIP_DESTINATION = <span Class="string">"TripDestination"</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 16</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">static</span> <span Class="keyword">final</span> String TRIP_START_TIME = <span Class="string">"TripStartTime"</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 17</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">static</span> <span Class="keyword">final</span> String ADJUSTED_SCHEDULE_TIME = <span Class="string">"AdjustedScheduleTime"</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 18</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">static</span> <span Class="keyword">final</span> String ADJUSTMENT_AGE = <span Class="string">"AdjustmentAge"</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 19</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">static</span> <span Class="keyword">final</span> String LAST_TRIP_OF_SCHEDULE = <span Class="string">"LastTripOfSchedule"</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 20</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">static</span> <span Class="keyword">final</span> String BUS_TYPE = <span Class="string">"BusType"</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 21</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">static</span> <span Class="keyword">final</span> String GPS_SPEED = <span Class="string">"GPSSpeed"</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 22</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">static</span> <span Class="keyword">final</span> String LATITUDE = <span Class="string">"Latitude"</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 23</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">static</span> <span Class="keyword">final</span> String LONGITUDE = <span Class="string">"Longitude"</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 24</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 25<a name="src_25"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">static</span> <span Class="keyword">final</span> String[] INTERNAL = { TRIP_DESTINATION,</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 26</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> TRIP_START_TIME,</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 27</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> ADJUSTED_SCHEDULE_TIME,</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 28</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> ADJUSTMENT_AGE,</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 29</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> LAST_TRIP_OF_SCHEDULE,</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 30</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> BUS_TYPE,</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 31</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> GPS_SPEED,</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 32</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> LATITUDE,</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 33</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> LONGITUDE };</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 34</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">static</span> <span Class="keyword">final</span> Object[][] EXTERNAL = {};</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 35</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 36</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> String m_dest; <span Class="comment">// destination</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 37</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> Date m_start; <span Class="comment">// time at which the trip started / is scheduled to start</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 38</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">int</span> m_adjTime; <span Class="comment">// minutes until bus is predicted to arrive</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 39</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">double</span> m_adjAge; <span Class="comment">// time since the last GPS data was received, in minutes (possibly fractional)</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 40</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">boolean</span> m_lastTrip; <span Class="comment">// is this the last scheduled trip of the day?</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 41</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> String m_busType; <span Class="comment">// type of bus</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 42</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">double</span> m_speed; <span Class="comment">// speed (km/h) when last polled</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 43</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">double</span> m_long; <span Class="comment">// longitude</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 44</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">double</span> m_lat; <span Class="comment">// latitude</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 45</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 46</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> DateFormat m_dateFormat;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 47</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> Date m_constructed; <span Class="comment">// DateTime when this object was constructed</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 48</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 49</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> Trip() {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 50<a name="src_50"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">super</span>(TRIP, INTERNAL, EXTERNAL);</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 51</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> m_dest = <span Class="string">""</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 52</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> m_start = <span Class="keyword">new</span> Date();</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 53</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> m_adjTime = 0;</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 54</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> m_adjAge = 0.0;</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 55</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> m_lastTrip = <span Class="keyword">false</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 56</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> m_busType = <span Class="string">""</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 57</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> m_speed = 0.0;</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 58</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> m_long = 0.0;</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 59</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> m_lat = 0.0;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 60</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 61</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> m_dateFormat = <span Class="keyword">new</span> SimpleDateFormat(<span Class="string">"hh:mm"</span>);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 62</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> m_constructed = <span Class="keyword">new</span> Date();</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 63</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 64</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 65</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> Trip(Trip other) {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 66<a name="src_66"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">super</span>(TRIP, INTERNAL, EXTERNAL);</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 67</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> m_dest = other.m_dest;</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 68</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> m_start = other.m_start;</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 69</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> m_adjTime = other.m_adjTime;</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 70</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> m_adjAge = other.m_adjAge;</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 71</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> m_lastTrip = other.m_lastTrip;</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 72</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> m_busType = other.m_busType;</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 73</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> m_speed = other.m_speed;</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 74</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> m_long = other.m_long;</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 75</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> m_lat = other.m_lat;</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 76</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> m_constructed = other.m_constructed;</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 77</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 78</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 79<a name="src_79"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> String getDest() { <span Class="keyword">return</span> m_dest; }</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 80<a name="src_80"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> Date getStart() { <span Class="keyword">return</span> m_start; }</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 81<a name="src_81"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">int</span> getAdjTime() { <span Class="keyword">return</span> m_adjTime; }</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 82<a name="src_82"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">double</span> getAdjAge() { <span Class="keyword">return</span> m_adjAge; }</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 83<a name="src_83"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">boolean</span> isLastTrip() { <span Class="keyword">return</span> m_lastTrip; }</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 84<a name="src_84"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> String getBusType() { <span Class="keyword">return</span> m_busType; }</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 85<a name="src_85"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">double</span> getSpeed() { <span Class="keyword">return</span> m_speed; }</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 86<a name="src_86"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">double</span> getLongitude() { <span Class="keyword">return</span> m_long; }</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 87<a name="src_87"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">double</span> getLatitude() { <span Class="keyword">return</span> m_lat; }</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 88</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 89</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// Estimated (Date)Time of Arrival of this trip at the stop </span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 90<a name="src_90"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> Date getETA() { <span Class="keyword">return</span> <span Class="keyword">new</span> Date(m_constructed.getTime() + (<span Class="keyword">long</span>)(1000 * 60 * m_adjTime)); }</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 91</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 92</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// (Date)Time when the GPS for this bus was last read</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 93<a name="src_93"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> Date getGPSTime() { <span Class="keyword">return</span> <span Class="keyword">new</span> Date(m_constructed.getTime() - (<span Class="keyword">long</span>)(1000 * 60 * m_adjAge)); } </span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 94</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 95</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// ---------------------------</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 96</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// ParseResult implementation:</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 97</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 98</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> @Override</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 99</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">void</span> endContents(String uri, String localName, String qName, String chars) <span Class="keyword">throws</span> XmlParseException </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 100</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> {</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 101</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">try</span> {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 102<a name="src_102"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">if</span> (TRIP_DESTINATION.equals(localName)) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 103</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> m_dest = chars;</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 104</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 105</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">else</span> <span Class="keyword">if</span> (TRIP_START_TIME.equals(localName)) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 106</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> m_start = m_dateFormat.parse(chars);</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 107</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 108</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">else</span> <span Class="keyword">if</span> (ADJUSTED_SCHEDULE_TIME.equals(localName)) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 109</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> m_adjTime = ParseUtils.parseInt(chars);</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 110</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 111</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">else</span> <span Class="keyword">if</span> (ADJUSTMENT_AGE.equals(localName)) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 112</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> m_adjAge = ParseUtils.parseDouble(chars);</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 113</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 114</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">else</span> <span Class="keyword">if</span> (LAST_TRIP_OF_SCHEDULE.equals(localName)) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 115</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> m_lastTrip = Boolean.parseBoolean(chars);</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 116</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 117</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">else</span> <span Class="keyword">if</span> (BUS_TYPE.equals(localName)) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 118</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> m_busType = chars;</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 119</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 120</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">else</span> <span Class="keyword">if</span> (GPS_SPEED.equals(localName)) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 121</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> m_speed = ParseUtils.parseDouble(chars);</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 122</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 123</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">else</span> <span Class="keyword">if</span> (LONGITUDE.equals(localName)) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 124</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> m_long = ParseUtils.parseDouble(chars);</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 125</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 126</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">else</span> <span Class="keyword">if</span> (LATITUDE.equals(localName)) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 127</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> m_lat = ParseUtils.parseDouble(chars);</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 128</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 129</td>
- <td class="nbHitsUncovered"> Block: 0/1 </td>
- <td class="src"><pre class="src"> } <span Class="keyword">catch</span> (ParseException pe) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 130</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">throw</span> <span Class="keyword">new</span> XmlParseException(pe);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 131</td>
- <td class="nbHitsUncovered"> Block: 1/1 Branch: 0/1 </td>
- <td class="src"><pre class="src"> }</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 132</td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> }</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 133</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 134</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> @Override</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 135</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">void</span> endExternal(String uri, String localName, String qName) <span Class="keyword">throws</span> XmlParseException</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 136</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> {</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 137</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// no externally-parsed children</span></pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 138<a name="src_138"></a></td>
- <td class="nbHitsUncovered"> Block: 0/1 </td>
- <td class="src"><pre class="src"> }</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 139</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 140</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- </table>
-<p>
-<p><table cellpadding="0" cellspacing="0" class="report"> <tr class="report"> <td class="reportText"><span class="text"> Report generated 11/12/14 11:31 PM </span></td> </tr></table>
-</body>
-</html>
+++ /dev/null
-<html>
-<head>
-<title>coverage report</title>
-<link rel ="stylesheet" type="text/css" href="../../../../style.css" title="Style">
-</head>
-<body>
-<a href="package-summary.html" target="classFrame">net.jaekl.frank.octranspo</a> <span class="text_italic"> 98% (43/44)</span><br>
-<p>
-<span class="title">All classes</span>
-<table>
-<tr>
-<td nowrap="nowrap">
-<a href="./NextTrips.html" target="classFrame">NextTrips</a><span class="text_italic"> 100% (2/2)</span><br>
-<a href="./Route.html" target="classFrame">Route</a><span class="text_italic"> 100% (10/10)</span><br>
-<a href="./RouteSummary.html" target="classFrame">RouteSummary</a><span class="text_italic"> 100% (2/2)</span><br>
-<a href="./Server.html" target="classFrame">Server</a><span class="text_italic"> 100% (5/5)</span><br>
-<a href="./StopInfo.html" target="classFrame">StopInfo</a><span class="text_italic"> 100% (9/9)</span><br>
-<a href="./Trip.html" target="classFrame">Trip</a><span class="text_italic"> 94% (15/16)</span><br>
-</td>
-</tr>
-</table>
-</body>
-</html>
+++ /dev/null
-<html>
-<head>
-<title>coverage report</title>
-<link rel ="stylesheet" type="text/css" href="../../../../style.css" title="Style">
-<script type="text/javascript" src="../../../../sorttable.js"></script>
-</head>
-<body>
-<span class="title">Coverage report </span>
-<p>
-<table class="report" cellpadding="0" cellspacing="0">
-<tr class="report">
-<th class="report"> </th>
-<th class="report">#classes</th>
-<th class="report">%method</th>
-<th class="report">%block</th>
-<th class="report">%branch</th>
-<th class="report">%line</th>
-</tr>
-<tr class="report">
-<td class="reportText">net.jaekl.frank.octranspo</td>
-<td class="reportValue">6</td>
-<td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>98</b>%(43/44)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 98"></td><td class="percentUnCovered" width="2.0"></td></tr></table></td></tr></table></td>
-<td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>84</b>%(97/115)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 84"></td><td class="percentUnCovered" width="16.0"></td></tr></table></td></tr></table></td>
-<td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>70</b>%(49/70)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 70"></td><td class="percentUnCovered" width="30.0"></td></tr></table></td></tr></table></td>
-<td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>94</b>%(150/159)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 94"></td><td class="percentUnCovered" width="6.0"></td></tr></table></td></tr></table></td>
-</tr>
-</table>
-<p>
-<span class="title2">Classes</span><br>
-<table class="report" cellpadding="0" cellspacing="0" id="classes">
-<tr class="report">
-<th class="report">Name</th>
-<th class="report">%method</th>
-<th class="report">%block</th>
-<th class="report">%branch</th>
-<th class="report">%line</th>
-</tr>
-<tr class="report">
-<td class="reportText"><a href="NextTrips.html">NextTrips</a></td>
-<td class="reportValue"><b> 100</b>% (2/2)</td>
-<td class="reportValue"><b> 100</b>% (2/2)</td>
-<td class="reportValue"> -</td>
-<td class="reportValue"><b> 100</b>% (4/4)</td>
-</tr>
-<tr class="report">
-<td class="reportText"><a href="Route.html">Route</a></td>
-<td class="reportValue"><b> 100</b>% (10/10)</td>
-<td class="reportValue"><b> 90</b>% (26/29)</td>
-<td class="reportValue"><b> 75</b>% (15/20)</td>
-<td class="reportValue"><b> 100</b>% (31/31)</td>
-</tr>
-<tr class="report">
-<td class="reportText"><a href="RouteSummary.html">RouteSummary</a></td>
-<td class="reportValue"><b> 100</b>% (2/2)</td>
-<td class="reportValue"><b> 100</b>% (2/2)</td>
-<td class="reportValue"> -</td>
-<td class="reportValue"><b> 100</b>% (4/4)</td>
-</tr>
-<tr class="report">
-<td class="reportText"><a href="Server.html">Server</a></td>
-<td class="reportValue"><b> 100</b>% (5/5)</td>
-<td class="reportValue"><b> 53</b>% (9/17)</td>
-<td class="reportValue"><b> 30</b>% (3/10)</td>
-<td class="reportValue"><b> 78</b>% (21/27)</td>
-</tr>
-<tr class="report">
-<td class="reportText"><a href="StopInfo.html">StopInfo</a></td>
-<td class="reportValue"><b> 100</b>% (9/9)</td>
-<td class="reportValue"><b> 83</b>% (24/29)</td>
-<td class="reportValue"><b> 64</b>% (14/22)</td>
-<td class="reportValue"><b> 100</b>% (32/32)</td>
-</tr>
-<tr class="report">
-<td class="reportText"><a href="Trip.html">Trip</a></td>
-<td class="reportValue"><b> 94</b>% (15/16)</td>
-<td class="reportValue"><b> 94</b>% (34/36)</td>
-<td class="reportValue"><b> 94</b>% (17/18)</td>
-<td class="reportValue"><b> 95</b>% (58/61)</td>
-</tr>
-</table>
-<p><table cellpadding="0" cellspacing="0" class="report"> <tr class="report"> <td class="reportText"><span class="text"> Report generated 11/12/14 11:31 PM </span></td> </tr></table>
-</body>
-</html>
+++ /dev/null
-<html>
-<head>
-<title>coverage report</title>
-<link rel ="stylesheet" type="text/css" href="../../../style.css" title="Style">
-</head>
-<body>
-<a href="package-summary.html" target="classFrame">net.jaekl.frank</a> <span class="text_italic"> 83% (15/18)</span><br>
-<p>
-<span class="title">All classes</span>
-<table>
-<tr>
-<td nowrap="nowrap">
-<a href="./FrankBundle.html" target="classFrame">FrankBundle</a><span class="text_italic"> 100% (4/4)</span><br>
-<a href="./FrankException.html" target="classFrame">FrankException</a><span class="text_italic"> 0% (0/1)</span><br>
-<a href="./Schedule.html" target="classFrame">Schedule</a><span class="text_italic"> 100% (7/7)</span><br>
-<a href="./ViewSchedule.html" target="classFrame">ViewSchedule</a><span class="text_italic"> 67% (4/6)</span><br>
-</td>
-</tr>
-</table>
-</body>
-</html>
+++ /dev/null
-<html>
-<head>
-<title>coverage report</title>
-<link rel ="stylesheet" type="text/css" href="../../../style.css" title="Style">
-<script type="text/javascript" src="../../../sorttable.js"></script>
-</head>
-<body>
-<span class="title">Coverage report </span>
-<p>
-<table class="report" cellpadding="0" cellspacing="0">
-<tr class="report">
-<th class="report"> </th>
-<th class="report">#classes</th>
-<th class="report">%method</th>
-<th class="report">%block</th>
-<th class="report">%branch</th>
-<th class="report">%line</th>
-</tr>
-<tr class="report">
-<td class="reportText">net.jaekl.frank</td>
-<td class="reportValue">4</td>
-<td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>83</b>%(15/18)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 83"></td><td class="percentUnCovered" width="17.0"></td></tr></table></td></tr></table></td>
-<td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>64</b>%(38/59)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 64"></td><td class="percentUnCovered" width="36.0"></td></tr></table></td></tr></table></td>
-<td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>57</b>%(16/28)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 57"></td><td class="percentUnCovered" width="43.0"></td></tr></table></td></tr></table></td>
-<td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>77</b>%(114/148)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 77"></td><td class="percentUnCovered" width="23.0"></td></tr></table></td></tr></table></td>
-</tr>
-</table>
-<p>
-<span class="title2">Packages</span><br>
-<table class="report" cellpadding="0" cellspacing="0" id="subpackages">
-<tr class="report">
-<th class="report">Name</th>
-<th class="report">#classes</th>
-<th class="report">%class</th>
-<th class="report">%method</th>
-<th class="report">%block</th>
-<th class="report">%branch</th>
-<th class="report">%line</th>
-</tr>
-<tr class="report">
-<td class="reportText"><a href="octranspo/package-summary.html">net.jaekl.frank.octranspo</a></td>
-<td class="reportValue">6</td>
-<td class="reportValue"><b> 100</b>% (6/6)</td>
-<td class="reportValue"><b> 98</b>% (43/44)</td>
-<td class="reportValue"><b> 84</b>% (97/115)</td>
-<td class="reportValue"><b> 70</b>% (49/70)</td>
-<td class="reportValue"><b> 94</b>% (150/159)</td>
-</tr>
-</table>
-<p>
-<span class="title2">Classes</span><br>
-<table class="report" cellpadding="0" cellspacing="0" id="classes">
-<tr class="report">
-<th class="report">Name</th>
-<th class="report">%method</th>
-<th class="report">%block</th>
-<th class="report">%branch</th>
-<th class="report">%line</th>
-</tr>
-<tr class="report">
-<td class="reportText"><a href="FrankBundle.html">FrankBundle</a></td>
-<td class="reportValue"><b> 100</b>% (4/4)</td>
-<td class="reportValue"><b> 69</b>% (9/13)</td>
-<td class="reportValue"><b> 67</b>% (4/6)</td>
-<td class="reportValue"><b> 79</b>% (15/19)</td>
-</tr>
-<tr class="report">
-<td class="reportText"><a href="FrankException.html">FrankException</a></td>
-<td class="reportValue"><b> 0</b>% (0/1)</td>
-<td class="reportValue"><b> 0</b>% (0/1)</td>
-<td class="reportValue"> -</td>
-<td class="reportValue"><b> 0</b>% (0/2)</td>
-</tr>
-<tr class="report">
-<td class="reportText"><a href="Schedule.html">Schedule</a></td>
-<td class="reportValue"><b> 100</b>% (7/7)</td>
-<td class="reportValue"><b> 88</b>% (21/24)</td>
-<td class="reportValue"><b> 75</b>% (9/12)</td>
-<td class="reportValue"><b> 98</b>% (79/81)</td>
-</tr>
-<tr class="report">
-<td class="reportText"><a href="ViewSchedule.html">ViewSchedule</a></td>
-<td class="reportValue"><b> 67</b>% (4/6)</td>
-<td class="reportValue"><b> 38</b>% (8/21)</td>
-<td class="reportValue"><b> 30</b>% (3/10)</td>
-<td class="reportValue"><b> 43</b>% (20/46)</td>
-</tr>
-</table>
-<p>
-<span class="title2">Total (including subpackages)</span><br>
-<table class="report" cellpadding="0" cellspacing="0" id="subpackages">
-<tr class="report">
-<th class="report">-</th>
-<th class="report">#classes</th>
-<th class="report">%method</th>
-<th class="report">%block</th>
-<th class="report">%branch</th>
-<th class="report">%line</th>
-</tr>
-<tr class="report">
-<td class="reportValue"></td>
-<td class="reportValue">10</td>
-<td class="reportValue"><b> 94</b>% (58/62)</td>
-<td class="reportValue"><b> 78</b>% (135/174)</td>
-<td class="reportValue"><b> 66</b>% (65/98)</td>
-<td class="reportValue"><b> 86</b>% (264/307)</td>
-</table>
-<p>
-<p><table cellpadding="0" cellspacing="0" class="report"> <tr class="report"> <td class="reportText"><span class="text"> Report generated 11/12/14 11:31 PM </span></td> </tr></table>
-</body>
-</html>
+++ /dev/null
-<html>
-<head>
-<title>tests coverage</title>
-<link rel ="stylesheet" type="text/css" href="../../../style.css" title="Style">
-<script type="text/javascript" src="../../../sorttable.js"></script>
-<script type="text/javascript">
- targetPage = "" + window.location.search;
- if (targetPage != "" && targetPage != "undefined")
- targetPage = targetPage.substring(1);
- if (targetPage.indexOf(":") != -1 || (targetPage != "" && !validURL(targetPage)))
- targetPage = "undefined";
- function validURL(url) {
- var pos = url.indexOf(".html");
- if (pos == -1 || pos != url.length - 5)
- return false;
- var allowNumber = false;
- var allowSep = false;
- var seenDot = false;
- for (var i = 0; i < url.length - 5; i++) {
- var ch = url.charAt(i);
- if ('a' <= ch && ch <= 'z' ||
- 'A' <= ch && ch <= 'Z' ||
- ch == '$' ||
- ch == '_') {
- allowNumber = true;
- allowSep = true;
- } else if ('0' <= ch && ch <= '9' ||
- ch == '-') {
- if (!allowNumber)
- return false;
- } else if (ch == '/' || ch == '.') {
- if (!allowSep)
- return false;
- allowNumber = false;
- allowSep = false;
- if (ch == '.')
- seenDot = true;
- if (ch == '/' && seenDot)
- return false;
- } else {
- return false;
- }
- }
- return true;
- }
- function loadFrames() {
- if (targetPage != "" && targetPage != "undefined")
- top.classFrame.location = top.targetPage;
- }
-</script>
-</head>
-<body>
-<table>
-<tr>
-<td>
-<a href="../../../index.html?net/jaekl/qd/QDBundleFactory.html" target="_top">Frames</a>
-<a href="QDBundleFactory.html" target="_top">No Frames</a>
-</td>
-</tr>
-</table>
-<p>
- <table cellspacing="0" cellpadding="0"class="report">
- <tr class="report">
- <th class="report"> </th>
- <th class="report">%method</th>
- <th class="report">%block</th>
- <th class="report">%branch</th>
- <th class="report">%line</th>
- </tr>
- <tr class="report">
- <td class="reportText"><span class="text">net.jaekl.qd.QDBundleFactory</span></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>100</b>%(3/3)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 100"></td><td class="percentUnCovered" width="0.0"></td></tr></table></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>88</b>%(7/8)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 88"></td><td class="percentUnCovered" width="12.0"></td></tr></table></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>75</b>%(3/4)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 75"></td><td class="percentUnCovered" width="25.0"></td></tr></table></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>100</b>%(11/11)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 100"></td><td class="percentUnCovered" width="0.0"></td></tr></table></td></tr></table></td>
- </tr>
- </table>
- <p>
- <p>
- <table cellspacing="0" cellpadding="0"class="report" id="mcoverage">
- <tr class="report">
- <th class="report">hit count</th>
- <th class="report">method name</th>
- <th class="report">method modifiers</th>
- <th class="report">method signature</th>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">1</span></td>
- <td class="reportText"><span class="text"><a href="#src_20"><init></a></span></td>
- <td class="reportText"><span class="text">[private]</span></td>
- <td class="reportText"><span class="text">void <init>()</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">3</span></td>
- <td class="reportText"><span class="text"><a href="#src_38">getBundle</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">java.util.ResourceBundle getBundle(java.lang.String,java.util.Locale)</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">5</span></td>
- <td class="reportText"><span class="text"><a href="#src_25">getInst</a></span></td>
- <td class="reportText"><span class="text">[public, static]</span></td>
- <td class="reportText"><span class="text">net.jaekl.qd.QDBundleFactory getInst()</span></td>
- </tr>
- </table>
- <p>
- <table cellspacing="0" cellpadding="0" class="src">
- <tr>
- <td class="numLine"> 1</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// Copyright (C) 2004, 2014 Christian Jaekl</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 2</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 3</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// Central spot from which to access ResourceBundles.</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 4</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// This made more sense with earlier versions of Java, where the specification did not </span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 5</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// guarantee that ResourceBundles would be cached. Java 7 and later cache by default,</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 6</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// but it still seems prudent to centralize accesses to resources here so that we have </span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 7</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// control in case we want to implement our own cache, or override certain behaviours.</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 8</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// </span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 9</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// Note that we rely on the JVM's caching, to avoid unnecessary overhead.</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 10</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// See http://java2go.blogspot.ca/2010/03/dont-be-smart-never-implement-resource.html</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 11</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 12</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">package</span> net.jaekl.qd;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 13</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 14</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> java.util.Locale;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 15</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> java.util.ResourceBundle;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 16</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 17</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">class</span> QDBundleFactory {</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 18</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">static</span> <span Class="keyword">volatile</span> QDBundleFactory m_inst; <span Class="comment">// singleton instance</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 19</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 20<a name="src_20"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">private</span> QDBundleFactory() {</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 21</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// no-op</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 22</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 23</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 24</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">static</span> QDBundleFactory getInst() {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 25<a name="src_25"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> QDBundleFactory result = m_inst;</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 26</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">if</span> (<span Class="keyword">null</span> == result) {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 27</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">synchronized</span>(QDBundleFactory.<span Class="keyword">class</span>) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 28</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">if</span> (<span Class="keyword">null</span> == m_inst) {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 29</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> m_inst = <span Class="keyword">new</span> QDBundleFactory();</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 30</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 31</td>
- <td class="nbHitsUncovered"> Block: 1/1 Branch: 0/1 </td>
- <td class="src"><pre class="src"> result = m_inst;</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 32</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 33</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 34</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">return</span> result;</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 35</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 36</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 37</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> ResourceBundle getBundle(String baseName, Locale locale) {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 38<a name="src_38"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">return</span> ResourceBundle.getBundle(baseName, locale);</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 39</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 40</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- </table>
-<p>
-<p><table cellpadding="0" cellspacing="0" class="report"> <tr class="report"> <td class="reportText"><span class="text"> Report generated 11/12/14 11:31 PM </span></td> </tr></table>
-</body>
-</html>
+++ /dev/null
-<html>
-<head>
-<title>tests coverage</title>
-<link rel ="stylesheet" type="text/css" href="../../../style.css" title="Style">
-<script type="text/javascript" src="../../../sorttable.js"></script>
-<script type="text/javascript">
- targetPage = "" + window.location.search;
- if (targetPage != "" && targetPage != "undefined")
- targetPage = targetPage.substring(1);
- if (targetPage.indexOf(":") != -1 || (targetPage != "" && !validURL(targetPage)))
- targetPage = "undefined";
- function validURL(url) {
- var pos = url.indexOf(".html");
- if (pos == -1 || pos != url.length - 5)
- return false;
- var allowNumber = false;
- var allowSep = false;
- var seenDot = false;
- for (var i = 0; i < url.length - 5; i++) {
- var ch = url.charAt(i);
- if ('a' <= ch && ch <= 'z' ||
- 'A' <= ch && ch <= 'Z' ||
- ch == '$' ||
- ch == '_') {
- allowNumber = true;
- allowSep = true;
- } else if ('0' <= ch && ch <= '9' ||
- ch == '-') {
- if (!allowNumber)
- return false;
- } else if (ch == '/' || ch == '.') {
- if (!allowSep)
- return false;
- allowNumber = false;
- allowSep = false;
- if (ch == '.')
- seenDot = true;
- if (ch == '/' && seenDot)
- return false;
- } else {
- return false;
- }
- }
- return true;
- }
- function loadFrames() {
- if (targetPage != "" && targetPage != "undefined")
- top.classFrame.location = top.targetPage;
- }
-</script>
-</head>
-<body>
-<table>
-<tr>
-<td>
-<a href="../../../index.html?net/jaekl/qd/QDException.html" target="_top">Frames</a>
-<a href="QDException.html" target="_top">No Frames</a>
-</td>
-</tr>
-</table>
-<p>
- <table cellspacing="0" cellpadding="0"class="report">
- <tr class="report">
- <th class="report"> </th>
- <th class="report">%method</th>
- <th class="report">%block</th>
- <th class="report">%branch</th>
- <th class="report">%line</th>
- </tr>
- <tr class="report">
- <td class="reportText"><span class="text">net.jaekl.qd.QDException</span></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>100</b>%(2/2)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 100"></td><td class="percentUnCovered" width="0.0"></td></tr></table></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>100</b>%(2/2)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 100"></td><td class="percentUnCovered" width="0.0"></td></tr></table></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>-</b>%</span></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>100</b>%(4/4)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 100"></td><td class="percentUnCovered" width="0.0"></td></tr></table></td></tr></table></td>
- </tr>
- </table>
- <p>
- <p>
- <table cellspacing="0" cellpadding="0"class="report" id="mcoverage">
- <tr class="report">
- <th class="report">hit count</th>
- <th class="report">method name</th>
- <th class="report">method modifiers</th>
- <th class="report">method signature</th>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">4</span></td>
- <td class="reportText"><span class="text"><a href="#src_8"><init></a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">void <init>()</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">1</span></td>
- <td class="reportText"><span class="text"><a href="#src_12"><init></a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">void <init>(java.lang.Throwable)</span></td>
- </tr>
- </table>
- <p>
- <table cellspacing="0" cellpadding="0" class="src">
- <tr>
- <td class="numLine"> 1</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">package</span> net.jaekl.qd;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 2</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 3</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">class</span> QDException <span Class="keyword">extends</span> Exception</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 4</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> {</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 5</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">private</span> <span Class="keyword">static</span> <span Class="keyword">final</span> <span Class="keyword">long</span> serialVersionUID = 1L;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 6</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 7</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> QDException() {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 8<a name="src_8"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">super</span>();</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 9</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 10</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 11</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> QDException(Throwable t) {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 12<a name="src_12"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">super</span>(t);</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 13</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 14</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- </table>
-<p>
-<p><table cellpadding="0" cellspacing="0" class="report"> <tr class="report"> <td class="reportText"><span class="text"> Report generated 11/12/14 11:31 PM </span></td> </tr></table>
-</body>
-</html>
+++ /dev/null
-<html>
-<head>
-<title>tests coverage</title>
-<link rel ="stylesheet" type="text/css" href="../../../../style.css" title="Style">
-<script type="text/javascript" src="../../../../sorttable.js"></script>
-<script type="text/javascript">
- targetPage = "" + window.location.search;
- if (targetPage != "" && targetPage != "undefined")
- targetPage = targetPage.substring(1);
- if (targetPage.indexOf(":") != -1 || (targetPage != "" && !validURL(targetPage)))
- targetPage = "undefined";
- function validURL(url) {
- var pos = url.indexOf(".html");
- if (pos == -1 || pos != url.length - 5)
- return false;
- var allowNumber = false;
- var allowSep = false;
- var seenDot = false;
- for (var i = 0; i < url.length - 5; i++) {
- var ch = url.charAt(i);
- if ('a' <= ch && ch <= 'z' ||
- 'A' <= ch && ch <= 'Z' ||
- ch == '$' ||
- ch == '_') {
- allowNumber = true;
- allowSep = true;
- } else if ('0' <= ch && ch <= '9' ||
- ch == '-') {
- if (!allowNumber)
- return false;
- } else if (ch == '/' || ch == '.') {
- if (!allowSep)
- return false;
- allowNumber = false;
- allowSep = false;
- if (ch == '.')
- seenDot = true;
- if (ch == '/' && seenDot)
- return false;
- } else {
- return false;
- }
- }
- return true;
- }
- function loadFrames() {
- if (targetPage != "" && targetPage != "undefined")
- top.classFrame.location = top.targetPage;
- }
-</script>
-</head>
-<body>
-<table>
-<tr>
-<td>
-<a href="../../../../index.html?net/jaekl/qd/http/RequestBroker.html" target="_top">Frames</a>
-<a href="RequestBroker.html" target="_top">No Frames</a>
-</td>
-</tr>
-</table>
-<p>
- <table cellspacing="0" cellpadding="0"class="report">
- <tr class="report">
- <th class="report"> </th>
- <th class="report">%method</th>
- <th class="report">%block</th>
- <th class="report">%branch</th>
- <th class="report">%line</th>
- </tr>
- <tr class="report">
- <td class="reportText"><span class="text">net.jaekl.qd.http.RequestBroker</span></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>83</b>%(5/6)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 83"></td><td class="percentUnCovered" width="17.0"></td></tr></table></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>50</b>%(14/28)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 50"></td><td class="percentUnCovered" width="50.0"></td></tr></table></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>40</b>%(4/10)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 40"></td><td class="percentUnCovered" width="60.0"></td></tr></table></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>53</b>%(31/58)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 53"></td><td class="percentUnCovered" width="47.0"></td></tr></table></td></tr></table></td>
- </tr>
- </table>
- <p>
- <p>
- <table cellspacing="0" cellpadding="0"class="report" id="mcoverage">
- <tr class="report">
- <th class="report">hit count</th>
- <th class="report">method name</th>
- <th class="report">method modifiers</th>
- <th class="report">method signature</th>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">1</span></td>
- <td class="reportText"><span class="text"><a href="#src_31"><clinit></a></span></td>
- <td class="reportText"><span class="text">[static]</span></td>
- <td class="reportText"><span class="text">void <clinit>()</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">9</span></td>
- <td class="reportText"><span class="text"><a href="#src_40"><init></a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">void <init>(java.lang.String,java.util.ArrayList)</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_uncovered"><span class="text">0</span></td>
- <td class="reportText"><span class="text"><a href="#src_49">doSubmit</a></span></td>
- <td class="reportText"><span class="text">[]</span></td>
- <td class="reportText"><span class="text">java.io.InputStream doSubmit(java.lang.String,java.util.ArrayList)</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">1</span></td>
- <td class="reportText"><span class="text"><a href="#src_84">submit</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">java.lang.String submit(java.lang.String,java.util.ArrayList)</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">5</span></td>
- <td class="reportText"><span class="text"><a href="#src_111">submitAndParse</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">net.jaekl.qd.xml.ParseResult submitAndParse(java.lang.String,java.util.ArrayList,java.lang.Class)</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">4</span></td>
- <td class="reportText"><span class="text"><a href="#src_120">submitAndParse</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">net.jaekl.qd.xml.ParseResult submitAndParse(java.lang.String,java.util.ArrayList,java.lang.Class,java.lang.String)</span></td>
- </tr>
- </table>
- <p>
- <table cellspacing="0" cellpadding="0" class="src">
- <tr>
- <td class="numLine"> 1</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// Copyright (C) 2004, 2014 Christian Jaekl</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 2</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 3</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">package</span> net.jaekl.qd.http;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 4</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 5</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> java.io.BufferedReader;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 6</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> java.io.IOException;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 7</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> java.io.InputStream;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 8</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> java.io.InputStreamReader;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 9</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> java.io.UnsupportedEncodingException;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 10</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> java.lang.reflect.InvocationTargetException;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 11</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> java.util.ArrayList;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 12</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 13</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> net.jaekl.qd.QDException;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 14</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> net.jaekl.qd.util.ExceptionUtils;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 15</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> net.jaekl.qd.xml.ParseHandler;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 16</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> net.jaekl.qd.xml.ParseResult;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 17</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 18</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> org.apache.http.HttpEntity;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 19</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> org.apache.http.HttpResponse;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 20</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> org.apache.http.NameValuePair;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 21</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> org.apache.http.client.HttpClient;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 22</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> org.apache.http.client.config.RequestConfig;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 23</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> org.apache.http.client.entity.UrlEncodedFormEntity;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 24</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> org.apache.http.client.methods.HttpPost;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 25</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> org.apache.http.impl.client.HttpClientBuilder;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 26</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> org.xml.sax.InputSource;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 27</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> org.xml.sax.SAXException;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 28</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> org.xml.sax.XMLReader;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 29</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> org.xml.sax.helpers.XMLReaderFactory;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 30</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 31<a name="src_31"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">class</span> RequestBroker</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 32</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 33</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">final</span> String UTF_8 = <span Class="string">"UTF-8"</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 34</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">final</span> <span Class="keyword">int</span> TIMEOUT_MSEC = 5000; <span Class="comment">// Allow at most 5 seconds before we declare the server to be unresponsive</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 35</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 36</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> String m_gatewayUrl;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 37</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> ArrayList<NameValuePair> m_baseParams;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 38</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 39</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> RequestBroker(String gatewayUrl, ArrayList<NameValuePair> baseParams)</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 40<a name="src_40"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> {</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 41</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> m_gatewayUrl = gatewayUrl;</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 42</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> m_baseParams = <span Class="keyword">new</span> ArrayList<NameValuePair>(baseParams);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 43</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 44</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 45</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// NB: Caller is responsible for close()ing the returned InputStream</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 46</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">//</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 47</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> InputStream doSubmit(String method, ArrayList<NameValuePair> passedParams) <span Class="keyword">throws</span> QDException</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 48</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> {</pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 49<a name="src_49"></a></td>
- <td class="nbHitsUncovered"> Block: 0/1 </td>
- <td class="src"><pre class="src"> ArrayList<NameValuePair> params = <span Class="keyword">new</span> ArrayList<NameValuePair>(m_baseParams);</span></pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 50</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> params.addAll(passedParams);</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 51</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 52</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">try</span> {</pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 53</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> RequestConfig.Builder requestBuilder = RequestConfig.custom();</pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 54</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> requestBuilder = requestBuilder.setConnectTimeout(TIMEOUT_MSEC);</pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 55</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> requestBuilder = requestBuilder.setSocketTimeout(TIMEOUT_MSEC);</pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 56</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> HttpClientBuilder builder = HttpClientBuilder.create();</pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 57</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> builder.setDefaultRequestConfig(requestBuilder.build());</pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 58</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> HttpClient httpClient = builder.build(); </pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 59</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> HttpPost httpPost = <span Class="keyword">new</span> HttpPost(m_gatewayUrl + <span Class="string">"/"</span> + method + <span Class="string">"/"</span>);</pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 60</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> httpPost.setEntity(<span Class="keyword">new</span> UrlEncodedFormEntity(params, UTF_8));</pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 61</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> HttpResponse response = httpClient.execute(httpPost);</pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 62</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> HttpEntity entity = response.getEntity();</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 63</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 64</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">if</span> (<span Class="keyword">null</span> != entity) {</pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 65</td>
- <td class="nbHitsUncovered"> Block: 0/1 Branch: 0/1 </td>
- <td class="src"><pre class="src"> InputStream is = entity.getContent();</span></pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 66</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">return</span> is;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 67</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 68</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 69</td>
- <td class="nbHitsUncovered"> Block: 0/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">catch</span> (UnsupportedEncodingException uee) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 70</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// We should actually be guaranteed that this never happens, </span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 71</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// because all JVMs are required to support UTF-8</span></pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 72</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">assert</span>(<span Class="keyword">false</span>);</pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 73</td>
- <td class="nbHitsUncovered"> Block: 0/1 Branch: 0/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">throw</span> <span Class="keyword">new</span> Error(uee);</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 74</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 75</td>
- <td class="nbHitsUncovered"> Block: 0/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">catch</span> (IOException ioe) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 76</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">throw</span> <span Class="keyword">new</span> QDException(ioe);</pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 77</td>
- <td class="nbHitsUncovered"> Block: 0/1 Branch: 0/1 </td>
- <td class="src"><pre class="src"> }</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 78</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 79</td>
- <td class="nbHitsUncovered"> Block: 0/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">return</span> <span Class="keyword">null</span>;</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 80</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 81</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 82</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> String submit(String method, ArrayList<NameValuePair> passedParams) <span Class="keyword">throws</span> QDException</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 83</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 84<a name="src_84"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> StringBuilder sb = <span Class="keyword">new</span> StringBuilder();</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 85</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> InputStream is = <span Class="keyword">null</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 86</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 87</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">try</span> {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 88</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> is = doSubmit(method, passedParams);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 89</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> BufferedReader br = <span Class="keyword">new</span> BufferedReader(<span Class="keyword">new</span> InputStreamReader(is));</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 90</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> String line = br.readLine();</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 91</td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">while</span> (<span Class="keyword">null</span> != line) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 92</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> sb.append(line).append(<span Class="string">"\n"</span>);</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 93</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> line = br.readLine();</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 94</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 95</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 96</td>
- <td class="nbHitsUncovered"> Block: 0/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">catch</span> (IOException ioe) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 97</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">throw</span> <span Class="keyword">new</span> QDException(ioe);</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 98</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 99</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">finally</span> {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 100</td>
- <td class="nbHitsUncovered"> Block: 1/2 Branch: 1/1 </td>
- <td class="src"><pre class="src"> ExceptionUtils.tryClose(is);</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 101</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 102</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 103</td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">return</span> sb.toString();</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 104</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 105</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 106</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> ParseResult submitAndParse(String method, </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 107</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> ArrayList<NameValuePair> passedParams, </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 108</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> Class<? <span Class="keyword">extends</span> ParseResult> rootParserClass)</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 109</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">throws</span> QDException</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 110</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 111<a name="src_111"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">return</span> submitAndParse(method, passedParams, rootParserClass, <span Class="keyword">null</span>);</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 112</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 113</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 114</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> ParseResult submitAndParse(String method, </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 115</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> ArrayList<NameValuePair> passedParams, </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 116</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> Class<? <span Class="keyword">extends</span> ParseResult> rootParserClass,</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 117</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> String rootTagName)</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 118</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">throws</span> QDException</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 119</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 120<a name="src_120"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> ParseResult result = <span Class="keyword">null</span>;</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 121</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> InputStream is = <span Class="keyword">null</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 122</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 123</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">try</span> {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 124</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">if</span> (<span Class="keyword">null</span> == rootTagName) {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 125</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> result = (ParseResult) rootParserClass.newInstance();</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 126</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> } </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 127</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">else</span> {</pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 128</td>
- <td class="nbHitsUncovered"> Block: 0/1 Branch: 0/1 </td>
- <td class="src"><pre class="src"> result = (ParseResult) rootParserClass.getDeclaredConstructor(String.<span Class="keyword">class</span>).newInstance(rootTagName);</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 129</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 130</td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> is = doSubmit(method, passedParams);</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 131</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> XMLReader reader = XMLReaderFactory.createXMLReader();</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 132</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> ParseHandler ph = <span Class="keyword">new</span> ParseHandler(result);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 133</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> reader.setContentHandler(ph);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 134</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> reader.parse(<span Class="keyword">new</span> InputSource(is));</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 135</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> } </pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 136</td>
- <td class="nbHitsUncovered"> Block: 0/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">catch</span> ( InstantiationException</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 137</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> | InvocationTargetException</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 138</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> | IllegalAccessException</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 139</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> | IOException </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 140</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> | NoSuchMethodException</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 141</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> | SAXException </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 142</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> e )</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 143</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> {</pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 144</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">throw</span> <span Class="keyword">new</span> QDException(e);</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 145</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> } </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 146</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">finally</span> {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 147</td>
- <td class="nbHitsUncovered"> Block: 0/1 </td>
- <td class="src"><pre class="src"> ExceptionUtils.tryClose(is);</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 148</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 149</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 150</td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">return</span> result;</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 151</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 152</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- </table>
-<p>
-<p><table cellpadding="0" cellspacing="0" class="report"> <tr class="report"> <td class="reportText"><span class="text"> Report generated 11/12/14 11:31 PM </span></td> </tr></table>
-</body>
-</html>
+++ /dev/null
-<html>
-<head>
-<title>coverage report</title>
-<link rel ="stylesheet" type="text/css" href="../../../../style.css" title="Style">
-</head>
-<body>
-<a href="package-summary.html" target="classFrame">net.jaekl.qd.http</a> <span class="text_italic"> 83% (5/6)</span><br>
-<p>
-<span class="title">All classes</span>
-<table>
-<tr>
-<td nowrap="nowrap">
-<a href="./RequestBroker.html" target="classFrame">RequestBroker</a><span class="text_italic"> 83% (5/6)</span><br>
-</td>
-</tr>
-</table>
-</body>
-</html>
+++ /dev/null
-<html>
-<head>
-<title>coverage report</title>
-<link rel ="stylesheet" type="text/css" href="../../../../style.css" title="Style">
-<script type="text/javascript" src="../../../../sorttable.js"></script>
-</head>
-<body>
-<span class="title">Coverage report </span>
-<p>
-<table class="report" cellpadding="0" cellspacing="0">
-<tr class="report">
-<th class="report"> </th>
-<th class="report">#classes</th>
-<th class="report">%method</th>
-<th class="report">%block</th>
-<th class="report">%branch</th>
-<th class="report">%line</th>
-</tr>
-<tr class="report">
-<td class="reportText">net.jaekl.qd.http</td>
-<td class="reportValue">1</td>
-<td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>83</b>%(5/6)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 83"></td><td class="percentUnCovered" width="17.0"></td></tr></table></td></tr></table></td>
-<td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>50</b>%(14/28)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 50"></td><td class="percentUnCovered" width="50.0"></td></tr></table></td></tr></table></td>
-<td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>40</b>%(4/10)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 40"></td><td class="percentUnCovered" width="60.0"></td></tr></table></td></tr></table></td>
-<td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>53</b>%(31/58)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 53"></td><td class="percentUnCovered" width="47.0"></td></tr></table></td></tr></table></td>
-</tr>
-</table>
-<p>
-<span class="title2">Classes</span><br>
-<table class="report" cellpadding="0" cellspacing="0" id="classes">
-<tr class="report">
-<th class="report">Name</th>
-<th class="report">%method</th>
-<th class="report">%block</th>
-<th class="report">%branch</th>
-<th class="report">%line</th>
-</tr>
-<tr class="report">
-<td class="reportText"><a href="RequestBroker.html">RequestBroker</a></td>
-<td class="reportValue"><b> 83</b>% (5/6)</td>
-<td class="reportValue"><b> 50</b>% (14/28)</td>
-<td class="reportValue"><b> 40</b>% (4/10)</td>
-<td class="reportValue"><b> 53</b>% (31/58)</td>
-</tr>
-</table>
-<p><table cellpadding="0" cellspacing="0" class="report"> <tr class="report"> <td class="reportText"><span class="text"> Report generated 11/12/14 11:31 PM </span></td> </tr></table>
-</body>
-</html>
+++ /dev/null
-<html>
-<head>
-<title>coverage report</title>
-<link rel ="stylesheet" type="text/css" href="../../../style.css" title="Style">
-</head>
-<body>
-<a href="package-summary.html" target="classFrame">net.jaekl.qd</a> <span class="text_italic"> 100% (5/5)</span><br>
-<p>
-<span class="title">All classes</span>
-<table>
-<tr>
-<td nowrap="nowrap">
-<a href="./QDBundleFactory.html" target="classFrame">QDBundleFactory</a><span class="text_italic"> 100% (3/3)</span><br>
-<a href="./QDException.html" target="classFrame">QDException</a><span class="text_italic"> 100% (2/2)</span><br>
-</td>
-</tr>
-</table>
-</body>
-</html>
+++ /dev/null
-<html>
-<head>
-<title>coverage report</title>
-<link rel ="stylesheet" type="text/css" href="../../../style.css" title="Style">
-<script type="text/javascript" src="../../../sorttable.js"></script>
-</head>
-<body>
-<span class="title">Coverage report </span>
-<p>
-<table class="report" cellpadding="0" cellspacing="0">
-<tr class="report">
-<th class="report"> </th>
-<th class="report">#classes</th>
-<th class="report">%method</th>
-<th class="report">%block</th>
-<th class="report">%branch</th>
-<th class="report">%line</th>
-</tr>
-<tr class="report">
-<td class="reportText">net.jaekl.qd</td>
-<td class="reportValue">2</td>
-<td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>100</b>%(5/5)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 100"></td><td class="percentUnCovered" width="0.0"></td></tr></table></td></tr></table></td>
-<td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>90</b>%(9/10)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 90"></td><td class="percentUnCovered" width="10.0"></td></tr></table></td></tr></table></td>
-<td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>75</b>%(3/4)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 75"></td><td class="percentUnCovered" width="25.0"></td></tr></table></td></tr></table></td>
-<td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>100</b>%(15/15)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 100"></td><td class="percentUnCovered" width="0.0"></td></tr></table></td></tr></table></td>
-</tr>
-</table>
-<p>
-<span class="title2">Packages</span><br>
-<table class="report" cellpadding="0" cellspacing="0" id="subpackages">
-<tr class="report">
-<th class="report">Name</th>
-<th class="report">#classes</th>
-<th class="report">%class</th>
-<th class="report">%method</th>
-<th class="report">%block</th>
-<th class="report">%branch</th>
-<th class="report">%line</th>
-</tr>
-<tr class="report">
-<td class="reportText"><a href="http/package-summary.html">net.jaekl.qd.http</a></td>
-<td class="reportValue">1</td>
-<td class="reportValue"><b> 100</b>% (1/1)</td>
-<td class="reportValue"><b> 83</b>% (5/6)</td>
-<td class="reportValue"><b> 50</b>% (14/28)</td>
-<td class="reportValue"><b> 40</b>% (4/10)</td>
-<td class="reportValue"><b> 53</b>% (31/58)</td>
-</tr>
-<tr class="report">
-<td class="reportText"><a href="util/package-summary.html">net.jaekl.qd.util</a></td>
-<td class="reportValue">3</td>
-<td class="reportValue"><b> 100</b>% (3/3)</td>
-<td class="reportValue"><b> 57</b>% (4/7)</td>
-<td class="reportValue"><b> 88</b>% (21/24)</td>
-<td class="reportValue"><b> 100</b>% (14/14)</td>
-<td class="reportValue"><b> 86</b>% (19/22)</td>
-</tr>
-<tr class="report">
-<td class="reportText"><a href="xml/package-summary.html">net.jaekl.qd.xml</a></td>
-<td class="reportValue">5</td>
-<td class="reportValue"><b> 80</b>% (4/5)</td>
-<td class="reportValue"><b> 74</b>% (23/31)</td>
-<td class="reportValue"><b> 80</b>% (74/93)</td>
-<td class="reportValue"><b> 82</b>% (41/50)</td>
-<td class="reportValue"><b> 83</b>% (114/137)</td>
-</tr>
-</table>
-<p>
-<span class="title2">Classes</span><br>
-<table class="report" cellpadding="0" cellspacing="0" id="classes">
-<tr class="report">
-<th class="report">Name</th>
-<th class="report">%method</th>
-<th class="report">%block</th>
-<th class="report">%branch</th>
-<th class="report">%line</th>
-</tr>
-<tr class="report">
-<td class="reportText"><a href="QDBundleFactory.html">QDBundleFactory</a></td>
-<td class="reportValue"><b> 100</b>% (3/3)</td>
-<td class="reportValue"><b> 88</b>% (7/8)</td>
-<td class="reportValue"><b> 75</b>% (3/4)</td>
-<td class="reportValue"><b> 100</b>% (11/11)</td>
-</tr>
-<tr class="report">
-<td class="reportText"><a href="QDException.html">QDException</a></td>
-<td class="reportValue"><b> 100</b>% (2/2)</td>
-<td class="reportValue"><b> 100</b>% (2/2)</td>
-<td class="reportValue"> -</td>
-<td class="reportValue"><b> 100</b>% (4/4)</td>
-</tr>
-</table>
-<p>
-<span class="title2">Total (including subpackages)</span><br>
-<table class="report" cellpadding="0" cellspacing="0" id="subpackages">
-<tr class="report">
-<th class="report">-</th>
-<th class="report">#classes</th>
-<th class="report">%method</th>
-<th class="report">%block</th>
-<th class="report">%branch</th>
-<th class="report">%line</th>
-</tr>
-<tr class="report">
-<td class="reportValue"></td>
-<td class="reportValue">11</td>
-<td class="reportValue"><b> 76</b>% (37/49)</td>
-<td class="reportValue"><b> 76</b>% (118/155)</td>
-<td class="reportValue"><b> 79</b>% (62/78)</td>
-<td class="reportValue"><b> 77</b>% (179/232)</td>
-</table>
-<p>
-<p><table cellpadding="0" cellspacing="0" class="report"> <tr class="report"> <td class="reportText"><span class="text"> Report generated 11/12/14 11:31 PM </span></td> </tr></table>
-</body>
-</html>
+++ /dev/null
-<html>
-<head>
-<title>tests coverage</title>
-<link rel ="stylesheet" type="text/css" href="../../../../style.css" title="Style">
-<script type="text/javascript" src="../../../../sorttable.js"></script>
-<script type="text/javascript">
- targetPage = "" + window.location.search;
- if (targetPage != "" && targetPage != "undefined")
- targetPage = targetPage.substring(1);
- if (targetPage.indexOf(":") != -1 || (targetPage != "" && !validURL(targetPage)))
- targetPage = "undefined";
- function validURL(url) {
- var pos = url.indexOf(".html");
- if (pos == -1 || pos != url.length - 5)
- return false;
- var allowNumber = false;
- var allowSep = false;
- var seenDot = false;
- for (var i = 0; i < url.length - 5; i++) {
- var ch = url.charAt(i);
- if ('a' <= ch && ch <= 'z' ||
- 'A' <= ch && ch <= 'Z' ||
- ch == '$' ||
- ch == '_') {
- allowNumber = true;
- allowSep = true;
- } else if ('0' <= ch && ch <= '9' ||
- ch == '-') {
- if (!allowNumber)
- return false;
- } else if (ch == '/' || ch == '.') {
- if (!allowSep)
- return false;
- allowNumber = false;
- allowSep = false;
- if (ch == '.')
- seenDot = true;
- if (ch == '/' && seenDot)
- return false;
- } else {
- return false;
- }
- }
- return true;
- }
- function loadFrames() {
- if (targetPage != "" && targetPage != "undefined")
- top.classFrame.location = top.targetPage;
- }
-</script>
-</head>
-<body>
-<table>
-<tr>
-<td>
-<a href="../../../../index.html?net/jaekl/qd/util/ExceptionUtils.html" target="_top">Frames</a>
-<a href="ExceptionUtils.html" target="_top">No Frames</a>
-</td>
-</tr>
-</table>
-<p>
- <table cellspacing="0" cellpadding="0"class="report">
- <tr class="report">
- <th class="report"> </th>
- <th class="report">%method</th>
- <th class="report">%block</th>
- <th class="report">%branch</th>
- <th class="report">%line</th>
- </tr>
- <tr class="report">
- <td class="reportText"><span class="text">net.jaekl.qd.util.ExceptionUtils</span></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>50</b>%(1/2)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 50"></td><td class="percentUnCovered" width="50.0"></td></tr></table></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>83</b>%(5/6)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 83"></td><td class="percentUnCovered" width="17.0"></td></tr></table></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>100</b>%(2/2)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 100"></td><td class="percentUnCovered" width="0.0"></td></tr></table></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>86</b>%(6/7)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 86"></td><td class="percentUnCovered" width="14.0"></td></tr></table></td></tr></table></td>
- </tr>
- </table>
- <p>
- <p>
- <table cellspacing="0" cellpadding="0"class="report" id="mcoverage">
- <tr class="report">
- <th class="report">hit count</th>
- <th class="report">method name</th>
- <th class="report">method modifiers</th>
- <th class="report">method signature</th>
- </tr>
- <tr class="report">
- <td class="reportValue_uncovered"><span class="text">0</span></td>
- <td class="reportText"><span class="text"><a href="#src_8"><init></a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">void <init>()</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">8</span></td>
- <td class="reportText"><span class="text"><a href="#src_11">tryClose</a></span></td>
- <td class="reportText"><span class="text">[public, static]</span></td>
- <td class="reportText"><span class="text">void tryClose(java.io.Closeable)</span></td>
- </tr>
- </table>
- <p>
- <table cellspacing="0" cellpadding="0" class="src">
- <tr>
- <td class="numLine"> 1</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">package</span> net.jaekl.qd.util;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 2</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 3</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> java.io.Closeable;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 4</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> java.io.IOException;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 5</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 6</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> net.jaekl.qd.QDException;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 7</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 8<a name="src_8"></a></td>
- <td class="nbHitsUncovered"> Block: 0/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">class</span> ExceptionUtils {</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 9</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">static</span> <span Class="keyword">void</span> tryClose(Closeable closeable) <span Class="keyword">throws</span> QDException {</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 10</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">try</span> {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 11<a name="src_11"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">if</span> (<span Class="keyword">null</span> != closeable) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 12</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> closeable.close();</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 13</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 14</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 15</td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">catch</span> (IOException ioe) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 16</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">throw</span> <span Class="keyword">new</span> QDException(ioe);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 17</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> }</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 18</td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> }</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 19</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- </table>
-<p>
-<p><table cellpadding="0" cellspacing="0" class="report"> <tr class="report"> <td class="reportText"><span class="text"> Report generated 11/12/14 11:31 PM </span></td> </tr></table>
-</body>
-</html>
+++ /dev/null
-<html>
-<head>
-<title>tests coverage</title>
-<link rel ="stylesheet" type="text/css" href="../../../../style.css" title="Style">
-<script type="text/javascript" src="../../../../sorttable.js"></script>
-<script type="text/javascript">
- targetPage = "" + window.location.search;
- if (targetPage != "" && targetPage != "undefined")
- targetPage = targetPage.substring(1);
- if (targetPage.indexOf(":") != -1 || (targetPage != "" && !validURL(targetPage)))
- targetPage = "undefined";
- function validURL(url) {
- var pos = url.indexOf(".html");
- if (pos == -1 || pos != url.length - 5)
- return false;
- var allowNumber = false;
- var allowSep = false;
- var seenDot = false;
- for (var i = 0; i < url.length - 5; i++) {
- var ch = url.charAt(i);
- if ('a' <= ch && ch <= 'z' ||
- 'A' <= ch && ch <= 'Z' ||
- ch == '$' ||
- ch == '_') {
- allowNumber = true;
- allowSep = true;
- } else if ('0' <= ch && ch <= '9' ||
- ch == '-') {
- if (!allowNumber)
- return false;
- } else if (ch == '/' || ch == '.') {
- if (!allowSep)
- return false;
- allowNumber = false;
- allowSep = false;
- if (ch == '.')
- seenDot = true;
- if (ch == '/' && seenDot)
- return false;
- } else {
- return false;
- }
- }
- return true;
- }
- function loadFrames() {
- if (targetPage != "" && targetPage != "undefined")
- top.classFrame.location = top.targetPage;
- }
-</script>
-</head>
-<body>
-<table>
-<tr>
-<td>
-<a href="../../../../index.html?net/jaekl/qd/util/ParseUtils.html" target="_top">Frames</a>
-<a href="ParseUtils.html" target="_top">No Frames</a>
-</td>
-</tr>
-</table>
-<p>
- <table cellspacing="0" cellpadding="0"class="report">
- <tr class="report">
- <th class="report"> </th>
- <th class="report">%method</th>
- <th class="report">%block</th>
- <th class="report">%branch</th>
- <th class="report">%line</th>
- </tr>
- <tr class="report">
- <td class="reportText"><span class="text">net.jaekl.qd.util.ParseUtils</span></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>67</b>%(2/3)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 67"></td><td class="percentUnCovered" width="33.0"></td></tr></table></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>91</b>%(10/11)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 91"></td><td class="percentUnCovered" width="9.0"></td></tr></table></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>100</b>%(8/8)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 100"></td><td class="percentUnCovered" width="0.0"></td></tr></table></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>91</b>%(10/11)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 91"></td><td class="percentUnCovered" width="9.0"></td></tr></table></td></tr></table></td>
- </tr>
- </table>
- <p>
- <p>
- <table cellspacing="0" cellpadding="0"class="report" id="mcoverage">
- <tr class="report">
- <th class="report">hit count</th>
- <th class="report">method name</th>
- <th class="report">method modifiers</th>
- <th class="report">method signature</th>
- </tr>
- <tr class="report">
- <td class="reportValue_uncovered"><span class="text">0</span></td>
- <td class="reportText"><span class="text"><a href="#src_3"><init></a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">void <init>()</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">44</span></td>
- <td class="reportText"><span class="text"><a href="#src_7">parseDouble</a></span></td>
- <td class="reportText"><span class="text">[public, static]</span></td>
- <td class="reportText"><span class="text">double parseDouble(java.lang.String)</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">17</span></td>
- <td class="reportText"><span class="text"><a href="#src_19">parseInt</a></span></td>
- <td class="reportText"><span class="text">[public, static]</span></td>
- <td class="reportText"><span class="text">int parseInt(java.lang.String)</span></td>
- </tr>
- </table>
- <p>
- <table cellspacing="0" cellpadding="0" class="src">
- <tr>
- <td class="numLine"> 1</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">package</span> net.jaekl.qd.util;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 2</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 3<a name="src_3"></a></td>
- <td class="nbHitsUncovered"> Block: 0/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">class</span> ParseUtils {</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 4</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// Attempt to parse the string as a double.</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 5</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// Treat errors as a zero value.</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 6</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">static</span> <span Class="keyword">double</span> parseDouble(String string) {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 7<a name="src_7"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">if</span> ((<span Class="keyword">null</span> == string) || (<span Class="string">""</span>.equals(string))) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 8</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 2/2 </td>
- <td class="src"><pre class="src"> <span Class="keyword">return</span> 0.0;</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 9</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 10</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">try</span> {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 11</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">return</span> Double.parseDouble(string);</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 12</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 13</td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">catch</span> (NumberFormatException exc) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 14</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">return</span> 0.0;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 15</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 16</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 17</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 18</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">static</span> <span Class="keyword">int</span> parseInt(String string) {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 19<a name="src_19"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">if</span> ((<span Class="keyword">null</span> == string) || (<span Class="string">""</span>.equals(string))) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 20</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 2/2 </td>
- <td class="src"><pre class="src"> <span Class="keyword">return</span> 0;</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 21</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 22</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">try</span> {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 23</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">return</span> Integer.parseInt(string);</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 24</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 25</td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">catch</span> (NumberFormatException exc) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 26</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">return</span> 0;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 27</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 28</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 29</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 30</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- </table>
-<p>
-<p><table cellpadding="0" cellspacing="0" class="report"> <tr class="report"> <td class="reportText"><span class="text"> Report generated 11/12/14 11:31 PM </span></td> </tr></table>
-</body>
-</html>
+++ /dev/null
-<html>
-<head>
-<title>tests coverage</title>
-<link rel ="stylesheet" type="text/css" href="../../../../style.css" title="Style">
-<script type="text/javascript" src="../../../../sorttable.js"></script>
-<script type="text/javascript">
- targetPage = "" + window.location.search;
- if (targetPage != "" && targetPage != "undefined")
- targetPage = targetPage.substring(1);
- if (targetPage.indexOf(":") != -1 || (targetPage != "" && !validURL(targetPage)))
- targetPage = "undefined";
- function validURL(url) {
- var pos = url.indexOf(".html");
- if (pos == -1 || pos != url.length - 5)
- return false;
- var allowNumber = false;
- var allowSep = false;
- var seenDot = false;
- for (var i = 0; i < url.length - 5; i++) {
- var ch = url.charAt(i);
- if ('a' <= ch && ch <= 'z' ||
- 'A' <= ch && ch <= 'Z' ||
- ch == '$' ||
- ch == '_') {
- allowNumber = true;
- allowSep = true;
- } else if ('0' <= ch && ch <= '9' ||
- ch == '-') {
- if (!allowNumber)
- return false;
- } else if (ch == '/' || ch == '.') {
- if (!allowSep)
- return false;
- allowNumber = false;
- allowSep = false;
- if (ch == '.')
- seenDot = true;
- if (ch == '/' && seenDot)
- return false;
- } else {
- return false;
- }
- }
- return true;
- }
- function loadFrames() {
- if (targetPage != "" && targetPage != "undefined")
- top.classFrame.location = top.targetPage;
- }
-</script>
-</head>
-<body>
-<table>
-<tr>
-<td>
-<a href="../../../../index.html?net/jaekl/qd/util/StringUtils.html" target="_top">Frames</a>
-<a href="StringUtils.html" target="_top">No Frames</a>
-</td>
-</tr>
-</table>
-<p>
- <table cellspacing="0" cellpadding="0"class="report">
- <tr class="report">
- <th class="report"> </th>
- <th class="report">%method</th>
- <th class="report">%block</th>
- <th class="report">%branch</th>
- <th class="report">%line</th>
- </tr>
- <tr class="report">
- <td class="reportText"><span class="text">net.jaekl.qd.util.StringUtils</span></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>50</b>%(1/2)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 50"></td><td class="percentUnCovered" width="50.0"></td></tr></table></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>86</b>%(6/7)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 86"></td><td class="percentUnCovered" width="14.0"></td></tr></table></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>100</b>%(4/4)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 100"></td><td class="percentUnCovered" width="0.0"></td></tr></table></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>75</b>%(3/4)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 75"></td><td class="percentUnCovered" width="25.0"></td></tr></table></td></tr></table></td>
- </tr>
- </table>
- <p>
- <p>
- <table cellspacing="0" cellpadding="0"class="report" id="mcoverage">
- <tr class="report">
- <th class="report">hit count</th>
- <th class="report">method name</th>
- <th class="report">method modifiers</th>
- <th class="report">method signature</th>
- </tr>
- <tr class="report">
- <td class="reportValue_uncovered"><span class="text">0</span></td>
- <td class="reportText"><span class="text"><a href="#src_3"><init></a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">void <init>()</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">18</span></td>
- <td class="reportText"><span class="text"><a href="#src_5">areEqual</a></span></td>
- <td class="reportText"><span class="text">[public, static]</span></td>
- <td class="reportText"><span class="text">boolean areEqual(java.lang.String,java.lang.String)</span></td>
- </tr>
- </table>
- <p>
- <table cellspacing="0" cellpadding="0" class="src">
- <tr>
- <td class="numLine"> 1</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">package</span> net.jaekl.qd.util;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 2</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 3<a name="src_3"></a></td>
- <td class="nbHitsUncovered"> Block: 0/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">class</span> StringUtils {</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 4</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">static</span> <span Class="keyword">boolean</span> areEqual(String a, String b) {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 5<a name="src_5"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">if</span> (<span Class="keyword">null</span> == a) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 6</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">return</span> (<span Class="keyword">null</span> == b);</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 7</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 8</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">return</span> a.equals(b);</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 9</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 10</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- </table>
-<p>
-<p><table cellpadding="0" cellspacing="0" class="report"> <tr class="report"> <td class="reportText"><span class="text"> Report generated 11/12/14 11:31 PM </span></td> </tr></table>
-</body>
-</html>
+++ /dev/null
-<html>
-<head>
-<title>coverage report</title>
-<link rel ="stylesheet" type="text/css" href="../../../../style.css" title="Style">
-</head>
-<body>
-<a href="package-summary.html" target="classFrame">net.jaekl.qd.util</a> <span class="text_italic"> 57% (4/7)</span><br>
-<p>
-<span class="title">All classes</span>
-<table>
-<tr>
-<td nowrap="nowrap">
-<a href="./ExceptionUtils.html" target="classFrame">ExceptionUtils</a><span class="text_italic"> 50% (1/2)</span><br>
-<a href="./ParseUtils.html" target="classFrame">ParseUtils</a><span class="text_italic"> 67% (2/3)</span><br>
-<a href="./StringUtils.html" target="classFrame">StringUtils</a><span class="text_italic"> 50% (1/2)</span><br>
-</td>
-</tr>
-</table>
-</body>
-</html>
+++ /dev/null
-<html>
-<head>
-<title>coverage report</title>
-<link rel ="stylesheet" type="text/css" href="../../../../style.css" title="Style">
-<script type="text/javascript" src="../../../../sorttable.js"></script>
-</head>
-<body>
-<span class="title">Coverage report </span>
-<p>
-<table class="report" cellpadding="0" cellspacing="0">
-<tr class="report">
-<th class="report"> </th>
-<th class="report">#classes</th>
-<th class="report">%method</th>
-<th class="report">%block</th>
-<th class="report">%branch</th>
-<th class="report">%line</th>
-</tr>
-<tr class="report">
-<td class="reportText">net.jaekl.qd.util</td>
-<td class="reportValue">3</td>
-<td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>57</b>%(4/7)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 57"></td><td class="percentUnCovered" width="43.0"></td></tr></table></td></tr></table></td>
-<td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>88</b>%(21/24)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 88"></td><td class="percentUnCovered" width="12.0"></td></tr></table></td></tr></table></td>
-<td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>100</b>%(14/14)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 100"></td><td class="percentUnCovered" width="0.0"></td></tr></table></td></tr></table></td>
-<td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>86</b>%(19/22)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 86"></td><td class="percentUnCovered" width="14.0"></td></tr></table></td></tr></table></td>
-</tr>
-</table>
-<p>
-<span class="title2">Classes</span><br>
-<table class="report" cellpadding="0" cellspacing="0" id="classes">
-<tr class="report">
-<th class="report">Name</th>
-<th class="report">%method</th>
-<th class="report">%block</th>
-<th class="report">%branch</th>
-<th class="report">%line</th>
-</tr>
-<tr class="report">
-<td class="reportText"><a href="ExceptionUtils.html">ExceptionUtils</a></td>
-<td class="reportValue"><b> 50</b>% (1/2)</td>
-<td class="reportValue"><b> 83</b>% (5/6)</td>
-<td class="reportValue"><b> 100</b>% (2/2)</td>
-<td class="reportValue"><b> 86</b>% (6/7)</td>
-</tr>
-<tr class="report">
-<td class="reportText"><a href="ParseUtils.html">ParseUtils</a></td>
-<td class="reportValue"><b> 67</b>% (2/3)</td>
-<td class="reportValue"><b> 91</b>% (10/11)</td>
-<td class="reportValue"><b> 100</b>% (8/8)</td>
-<td class="reportValue"><b> 91</b>% (10/11)</td>
-</tr>
-<tr class="report">
-<td class="reportText"><a href="StringUtils.html">StringUtils</a></td>
-<td class="reportValue"><b> 50</b>% (1/2)</td>
-<td class="reportValue"><b> 86</b>% (6/7)</td>
-<td class="reportValue"><b> 100</b>% (4/4)</td>
-<td class="reportValue"><b> 75</b>% (3/4)</td>
-</tr>
-</table>
-<p><table cellpadding="0" cellspacing="0" class="report"> <tr class="report"> <td class="reportText"><span class="text"> Report generated 11/12/14 11:31 PM </span></td> </tr></table>
-</body>
-</html>
+++ /dev/null
-<html>
-<head>
-<title>tests coverage</title>
-<link rel ="stylesheet" type="text/css" href="../../../../style.css" title="Style">
-<script type="text/javascript" src="../../../../sorttable.js"></script>
-<script type="text/javascript">
- targetPage = "" + window.location.search;
- if (targetPage != "" && targetPage != "undefined")
- targetPage = targetPage.substring(1);
- if (targetPage.indexOf(":") != -1 || (targetPage != "" && !validURL(targetPage)))
- targetPage = "undefined";
- function validURL(url) {
- var pos = url.indexOf(".html");
- if (pos == -1 || pos != url.length - 5)
- return false;
- var allowNumber = false;
- var allowSep = false;
- var seenDot = false;
- for (var i = 0; i < url.length - 5; i++) {
- var ch = url.charAt(i);
- if ('a' <= ch && ch <= 'z' ||
- 'A' <= ch && ch <= 'Z' ||
- ch == '$' ||
- ch == '_') {
- allowNumber = true;
- allowSep = true;
- } else if ('0' <= ch && ch <= '9' ||
- ch == '-') {
- if (!allowNumber)
- return false;
- } else if (ch == '/' || ch == '.') {
- if (!allowSep)
- return false;
- allowNumber = false;
- allowSep = false;
- if (ch == '.')
- seenDot = true;
- if (ch == '/' && seenDot)
- return false;
- } else {
- return false;
- }
- }
- return true;
- }
- function loadFrames() {
- if (targetPage != "" && targetPage != "undefined")
- top.classFrame.location = top.targetPage;
- }
-</script>
-</head>
-<body>
-<table>
-<tr>
-<td>
-<a href="../../../../index.html?net/jaekl/qd/xml/MismatchedTagsException.html" target="_top">Frames</a>
-<a href="MismatchedTagsException.html" target="_top">No Frames</a>
-</td>
-</tr>
-</table>
-<p>
- <table cellspacing="0" cellpadding="0"class="report">
- <tr class="report">
- <th class="report"> </th>
- <th class="report">%method</th>
- <th class="report">%block</th>
- <th class="report">%branch</th>
- <th class="report">%line</th>
- </tr>
- <tr class="report">
- <td class="reportText"><span class="text">net.jaekl.qd.xml.MismatchedTagsException</span></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>0</b>%(0/3)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 0"></td><td class="percentUnCovered" width="100.0"></td></tr></table></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>0</b>%(0/3)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 0"></td><td class="percentUnCovered" width="100.0"></td></tr></table></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>-</b>%</span></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>0</b>%(0/6)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 0"></td><td class="percentUnCovered" width="100.0"></td></tr></table></td></tr></table></td>
- </tr>
- </table>
- <p>
- <p>
- <table cellspacing="0" cellpadding="0"class="report" id="mcoverage">
- <tr class="report">
- <th class="report">hit count</th>
- <th class="report">method name</th>
- <th class="report">method modifiers</th>
- <th class="report">method signature</th>
- </tr>
- <tr class="report">
- <td class="reportValue_uncovered"><span class="text">0</span></td>
- <td class="reportText"><span class="text"><a href="#src_14"><init></a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">void <init>(java.lang.String,java.lang.String)</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_uncovered"><span class="text">0</span></td>
- <td class="reportText"><span class="text"><a href="#src_20">getActual</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">java.lang.String getActual()</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_uncovered"><span class="text">0</span></td>
- <td class="reportText"><span class="text"><a href="#src_19">getExpected</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">java.lang.String getExpected()</span></td>
- </tr>
- </table>
- <p>
- <table cellspacing="0" cellpadding="0" class="src">
- <tr>
- <td class="numLine"> 1</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// Copyright (C) 2004, 2014 Christian Jaekl</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 2</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 3</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">package</span> net.jaekl.qd.xml;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 4</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 5</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 6</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">class</span> MismatchedTagsException <span Class="keyword">extends</span> XmlParseException</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 7</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> {</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 8</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">private</span> <span Class="keyword">static</span> <span Class="keyword">final</span> <span Class="keyword">long</span> serialVersionUID = 1L;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 9</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 10</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> String m_expected;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 11</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> String m_actual;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 12</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 13</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> MismatchedTagsException(String expected, String actual) {</pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 14<a name="src_14"></a></td>
- <td class="nbHitsUncovered"> Block: 0/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">super</span>();</span></pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 15</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> m_expected = expected;</pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 16</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> m_actual = actual;</pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 17</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 18</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 19<a name="src_19"></a></td>
- <td class="nbHitsUncovered"> Block: 0/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> String getExpected() { <span Class="keyword">return</span> m_expected; }</span></pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 20<a name="src_20"></a></td>
- <td class="nbHitsUncovered"> Block: 0/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> String getActual() { <span Class="keyword">return</span> m_actual; }</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 21</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- </table>
-<p>
-<p><table cellpadding="0" cellspacing="0" class="report"> <tr class="report"> <td class="reportText"><span class="text"> Report generated 11/12/14 11:31 PM </span></td> </tr></table>
-</body>
-</html>
+++ /dev/null
-<html>
-<head>
-<title>tests coverage</title>
-<link rel ="stylesheet" type="text/css" href="../../../../style.css" title="Style">
-<script type="text/javascript" src="../../../../sorttable.js"></script>
-<script type="text/javascript">
- targetPage = "" + window.location.search;
- if (targetPage != "" && targetPage != "undefined")
- targetPage = targetPage.substring(1);
- if (targetPage.indexOf(":") != -1 || (targetPage != "" && !validURL(targetPage)))
- targetPage = "undefined";
- function validURL(url) {
- var pos = url.indexOf(".html");
- if (pos == -1 || pos != url.length - 5)
- return false;
- var allowNumber = false;
- var allowSep = false;
- var seenDot = false;
- for (var i = 0; i < url.length - 5; i++) {
- var ch = url.charAt(i);
- if ('a' <= ch && ch <= 'z' ||
- 'A' <= ch && ch <= 'Z' ||
- ch == '$' ||
- ch == '_') {
- allowNumber = true;
- allowSep = true;
- } else if ('0' <= ch && ch <= '9' ||
- ch == '-') {
- if (!allowNumber)
- return false;
- } else if (ch == '/' || ch == '.') {
- if (!allowSep)
- return false;
- allowNumber = false;
- allowSep = false;
- if (ch == '.')
- seenDot = true;
- if (ch == '/' && seenDot)
- return false;
- } else {
- return false;
- }
- }
- return true;
- }
- function loadFrames() {
- if (targetPage != "" && targetPage != "undefined")
- top.classFrame.location = top.targetPage;
- }
-</script>
-</head>
-<body>
-<table>
-<tr>
-<td>
-<a href="../../../../index.html?net/jaekl/qd/xml/MissingInfoException.html" target="_top">Frames</a>
-<a href="MissingInfoException.html" target="_top">No Frames</a>
-</td>
-</tr>
-</table>
-<p>
- <table cellspacing="0" cellpadding="0"class="report">
- <tr class="report">
- <th class="report"> </th>
- <th class="report">%method</th>
- <th class="report">%block</th>
- <th class="report">%branch</th>
- <th class="report">%line</th>
- </tr>
- <tr class="report">
- <td class="reportText"><span class="text">net.jaekl.qd.xml.MissingInfoException</span></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>100</b>%(5/5)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 100"></td><td class="percentUnCovered" width="0.0"></td></tr></table></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>100</b>%(11/11)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 100"></td><td class="percentUnCovered" width="0.0"></td></tr></table></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>100</b>%(4/4)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 100"></td><td class="percentUnCovered" width="0.0"></td></tr></table></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>100</b>%(19/19)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 100"></td><td class="percentUnCovered" width="0.0"></td></tr></table></td></tr></table></td>
- </tr>
- </table>
- <p>
- <p>
- <table cellspacing="0" cellpadding="0"class="report" id="mcoverage">
- <tr class="report">
- <th class="report">hit count</th>
- <th class="report">method name</th>
- <th class="report">method modifiers</th>
- <th class="report">method signature</th>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">3</span></td>
- <td class="reportText"><span class="text"><a href="#src_16"><init></a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">void <init>(java.lang.String)</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">2</span></td>
- <td class="reportText"><span class="text"><a href="#src_23">addMissingAttribute</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">void addMissingAttribute(java.lang.String)</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">2</span></td>
- <td class="reportText"><span class="text"><a href="#src_27">addMissingChild</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">void addMissingChild(java.lang.String)</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">3</span></td>
- <td class="reportText"><span class="text"><a href="#src_34">getMessage</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">java.lang.String getMessage()</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">4</span></td>
- <td class="reportText"><span class="text"><a href="#src_30">getTagName</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">java.lang.String getTagName()</span></td>
- </tr>
- </table>
- <p>
- <table cellspacing="0" cellpadding="0" class="src">
- <tr>
- <td class="numLine"> 1</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// Copyright (C) 2004, 2014 Christian Jaekl</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 2</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 3</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">package</span> net.jaekl.qd.xml;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 4</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 5</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> java.util.ArrayList;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 6</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 7</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">class</span> MissingInfoException <span Class="keyword">extends</span> XmlParseException</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 8</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> {</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 9</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">private</span> <span Class="keyword">static</span> <span Class="keyword">final</span> <span Class="keyword">long</span> serialVersionUID = 1L;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 10</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 11</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> String m_tagName;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 12</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> ArrayList<String> m_missingAttributes;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 13</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> ArrayList<String> m_missingChildTags;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 14</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 15</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> MissingInfoException(String tagName) {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 16<a name="src_16"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">super</span>();</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 17</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> m_tagName = tagName;</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 18</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> m_missingAttributes = <span Class="keyword">new</span> ArrayList<String>();</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 19</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> m_missingChildTags = <span Class="keyword">new</span> ArrayList<String>();</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 20</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 21</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 22</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">void</span> addMissingAttribute(String name) {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 23<a name="src_23"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> m_missingAttributes.add(name);</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 24</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 25</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 26</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">void</span> addMissingChild(String name) {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 27<a name="src_27"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> m_missingChildTags.add(name);</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 28</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 29</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 30<a name="src_30"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> String getTagName() { <span Class="keyword">return</span> m_tagName; }</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 31</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 32</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> @Override</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 33</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> String getMessage() {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 34<a name="src_34"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> StringBuilder sb = <span Class="keyword">new</span> StringBuilder();</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 35</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 36</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> sb.append(<span Class="string">"Tag: \""</span> + getTagName() + <span Class="string">"\""</span>);</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 37</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 38</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">for</span> (String attr : m_missingAttributes) {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 39</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> sb.append(<span Class="string">"\n Attribute: \""</span> + attr + <span Class="string">"\""</span>);</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 40</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 41</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 42</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">for</span> (String child : m_missingChildTags) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 43</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> sb.append(<span Class="string">"\n Child tag: \""</span> + child + <span Class="string">"\""</span>);</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 44</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 45</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">return</span> sb.toString();</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 46</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 47</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- </table>
-<p>
-<p><table cellpadding="0" cellspacing="0" class="report"> <tr class="report"> <td class="reportText"><span class="text"> Report generated 11/12/14 11:31 PM </span></td> </tr></table>
-</body>
-</html>
+++ /dev/null
-<html>
-<head>
-<title>tests coverage</title>
-<link rel ="stylesheet" type="text/css" href="../../../../style.css" title="Style">
-<script type="text/javascript" src="../../../../sorttable.js"></script>
-<script type="text/javascript">
- targetPage = "" + window.location.search;
- if (targetPage != "" && targetPage != "undefined")
- targetPage = targetPage.substring(1);
- if (targetPage.indexOf(":") != -1 || (targetPage != "" && !validURL(targetPage)))
- targetPage = "undefined";
- function validURL(url) {
- var pos = url.indexOf(".html");
- if (pos == -1 || pos != url.length - 5)
- return false;
- var allowNumber = false;
- var allowSep = false;
- var seenDot = false;
- for (var i = 0; i < url.length - 5; i++) {
- var ch = url.charAt(i);
- if ('a' <= ch && ch <= 'z' ||
- 'A' <= ch && ch <= 'Z' ||
- ch == '$' ||
- ch == '_') {
- allowNumber = true;
- allowSep = true;
- } else if ('0' <= ch && ch <= '9' ||
- ch == '-') {
- if (!allowNumber)
- return false;
- } else if (ch == '/' || ch == '.') {
- if (!allowSep)
- return false;
- allowNumber = false;
- allowSep = false;
- if (ch == '.')
- seenDot = true;
- if (ch == '/' && seenDot)
- return false;
- } else {
- return false;
- }
- }
- return true;
- }
- function loadFrames() {
- if (targetPage != "" && targetPage != "undefined")
- top.classFrame.location = top.targetPage;
- }
-</script>
-</head>
-<body>
-<table>
-<tr>
-<td>
-<a href="../../../../index.html?net/jaekl/qd/xml/ParseHandler.html" target="_top">Frames</a>
-<a href="ParseHandler.html" target="_top">No Frames</a>
-</td>
-</tr>
-</table>
-<p>
- <table cellspacing="0" cellpadding="0"class="report">
- <tr class="report">
- <th class="report"> </th>
- <th class="report">%method</th>
- <th class="report">%block</th>
- <th class="report">%branch</th>
- <th class="report">%line</th>
- </tr>
- <tr class="report">
- <td class="reportText"><span class="text">net.jaekl.qd.xml.ParseHandler</span></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>75</b>%(9/12)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 75"></td><td class="percentUnCovered" width="25.0"></td></tr></table></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>80</b>%(24/30)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 80"></td><td class="percentUnCovered" width="20.0"></td></tr></table></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>100</b>%(12/12)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 100"></td><td class="percentUnCovered" width="0.0"></td></tr></table></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>79</b>%(33/42)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 79"></td><td class="percentUnCovered" width="21.0"></td></tr></table></td></tr></table></td>
- </tr>
- </table>
- <p>
- <p>
- <table cellspacing="0" cellpadding="0"class="report" id="mcoverage">
- <tr class="report">
- <th class="report">hit count</th>
- <th class="report">method name</th>
- <th class="report">method modifiers</th>
- <th class="report">method signature</th>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">12</span></td>
- <td class="reportText"><span class="text"><a href="#src_16"><init></a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">void <init>(net.jaekl.qd.xml.ParseResult)</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">204</span></td>
- <td class="reportText"><span class="text"><a href="#src_24">characters</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">void characters(char[],int,int)</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">12</span></td>
- <td class="reportText"><span class="text"><a href="#src_77">endDocument</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">void endDocument()</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">235</span></td>
- <td class="reportText"><span class="text"><a href="#src_40">endElement</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">void endElement(java.lang.String,java.lang.String,java.lang.String)</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">48</span></td>
- <td class="reportText"><span class="text"><a href="#src_86">endPrefixMapping</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">void endPrefixMapping(java.lang.String)</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_uncovered"><span class="text">0</span></td>
- <td class="reportText"><span class="text"><a href="#src_93">ignorableWhitespace</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">void ignorableWhitespace(char[],int,int)</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_uncovered"><span class="text">0</span></td>
- <td class="reportText"><span class="text"><a href="#src_100">processingInstruction</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">void processingInstruction(java.lang.String,java.lang.String)</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">12</span></td>
- <td class="reportText"><span class="text"><a href="#src_105">setDocumentLocator</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">void setDocumentLocator(org.xml.sax.Locator)</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_uncovered"><span class="text">0</span></td>
- <td class="reportText"><span class="text"><a href="#src_110">skippedEntity</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">void skippedEntity(java.lang.String)</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">12</span></td>
- <td class="reportText"><span class="text"><a href="#src_115">startDocument</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">void startDocument()</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">235</span></td>
- <td class="reportText"><span class="text"><a href="#src_64">startElement</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">void startElement(java.lang.String,java.lang.String,java.lang.String,org.xml.sax.Attributes)</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">48</span></td>
- <td class="reportText"><span class="text"><a href="#src_122">startPrefixMapping</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">void startPrefixMapping(java.lang.String,java.lang.String)</span></td>
- </tr>
- </table>
- <p>
- <table cellspacing="0" cellpadding="0" class="src">
- <tr>
- <td class="numLine"> 1</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// Copyright (C) 2004, 2014 Christian Jaekl</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 2</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 3</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">package</span> net.jaekl.qd.xml;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 4</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 5</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> java.util.Stack;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 6</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 7</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> org.xml.sax.Attributes;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 8</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> org.xml.sax.ContentHandler;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 9</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> org.xml.sax.Locator;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 10</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> org.xml.sax.SAXException;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 11</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 12</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">class</span> ParseHandler <span Class="keyword">implements</span> ContentHandler</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 13</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> {</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 14</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> Stack<ParseResult> m_stack;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 15</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 16<a name="src_16"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> ParseHandler(ParseResult root) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 17</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> m_stack = <span Class="keyword">new</span> Stack<ParseResult>();</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 18</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> m_stack.push(root);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 19</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 20</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 21</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> @Override </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 22</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">void</span> characters(<span Class="keyword">char</span>[] ch, <span Class="keyword">int</span> start, <span Class="keyword">int</span> length) <span Class="keyword">throws</span> SAXException</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 23</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 24<a name="src_24"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">if</span> (m_stack.isEmpty()) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 25</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">return</span>;</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 26</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 27</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 28</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">try</span> {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 29</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> m_stack.peek().characters(ch, start, length);</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 30</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 31</td>
- <td class="nbHitsUncovered"> Block: 0/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">catch</span> (XmlParseException xpe) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 32</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">throw</span> <span Class="keyword">new</span> SAXException(xpe);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 33</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 34</td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> }</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 35</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 36</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> @Override </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 37</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">void</span> endElement(String uri, String localName, String qName) <span Class="keyword">throws</span> SAXException</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 38</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> {</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 39</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">try</span> {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 40<a name="src_40"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">if</span> (m_stack.isEmpty()) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 41</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">return</span>;</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 42</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 43</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 44</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">boolean</span> pop = m_stack.peek().endElement(uri, localName, qName);</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 45</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">if</span> (pop) {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 46</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> m_stack.pop();</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 47</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 48</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">if</span> (m_stack.isEmpty()) {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 49</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">return</span>;</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 50</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 51</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 52</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> m_stack.peek().endExternal(uri, localName, qName);</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 53</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 54</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 55</td>
- <td class="nbHitsUncovered"> Block: 0/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">catch</span> (XmlParseException xpe) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 56</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">throw</span> <span Class="keyword">new</span> SAXException(xpe);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 57</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> }</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 58</td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> }</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 59</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 60</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> @Override</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 61</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">void</span> startElement(String uri, String localName, String qName, Attributes attributes) <span Class="keyword">throws</span> SAXException</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 62</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> {</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 63</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">try</span> {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 64<a name="src_64"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> ParseResult current = m_stack.peek();</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 65</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> ParseResult next = current.startElement(uri, localName, qName, attributes);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 66</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">if</span> (next != current) {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 67</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> m_stack.push(next);</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 68</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 69</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 70</td>
- <td class="nbHitsUncovered"> Block: 0/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">catch</span> (XmlParseException xpe) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 71</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">throw</span> <span Class="keyword">new</span> SAXException(xpe);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 72</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> }</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 73</td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> }</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 74</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 75</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> @Override</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 76</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">void</span> endDocument() <span Class="keyword">throws</span> SAXException {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 77<a name="src_77"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">if</span> (! m_stack.isEmpty()) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 78</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> String missingTag = m_stack.peek().getTagName();</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 79</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">throw</span> <span Class="keyword">new</span> SAXException(<span Class="keyword">new</span> MissingInfoException(missingTag));</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 80</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 81</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> }</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 82</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 83</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> @Override</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 84</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">void</span> endPrefixMapping(String prefix) <span Class="keyword">throws</span> SAXException {</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 85</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// no-op</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 86<a name="src_86"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> }</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 87</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 88</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> @Override</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 89</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">void</span> ignorableWhitespace(<span Class="keyword">char</span>[] ch, <span Class="keyword">int</span> start, <span Class="keyword">int</span> length)</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 90</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">throws</span> SAXException </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 91</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> {</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 92</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// no-op</span></pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 93<a name="src_93"></a></td>
- <td class="nbHitsUncovered"> Block: 0/1 </td>
- <td class="src"><pre class="src"> }</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 94</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 95</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> @Override</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 96</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">void</span> processingInstruction(String target, String data)</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 97</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">throws</span> SAXException </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 98</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> {</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 99</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// no-op</span></pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 100<a name="src_100"></a></td>
- <td class="nbHitsUncovered"> Block: 0/1 </td>
- <td class="src"><pre class="src"> }</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 101</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 102</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> @Override</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 103</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">void</span> setDocumentLocator(Locator locator) {</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 104</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// no-op</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 105<a name="src_105"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> }</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 106</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 107</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> @Override</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 108</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">void</span> skippedEntity(String name) <span Class="keyword">throws</span> SAXException {</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 109</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// no-op</span></pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 110<a name="src_110"></a></td>
- <td class="nbHitsUncovered"> Block: 0/1 </td>
- <td class="src"><pre class="src"> }</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 111</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 112</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> @Override</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 113</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">void</span> startDocument() <span Class="keyword">throws</span> SAXException {</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 114</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// no-op</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 115<a name="src_115"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> }</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 116</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 117</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> @Override</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 118</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">void</span> startPrefixMapping(String prefix, String uri)</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 119</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">throws</span> SAXException </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 120</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> {</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 121</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// no-op</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 122<a name="src_122"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> }</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 123</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- </table>
-<p>
-<p><table cellpadding="0" cellspacing="0" class="report"> <tr class="report"> <td class="reportText"><span class="text"> Report generated 11/12/14 11:31 PM </span></td> </tr></table>
-</body>
-</html>
+++ /dev/null
-<html>
-<head>
-<title>tests coverage</title>
-<link rel ="stylesheet" type="text/css" href="../../../../style.css" title="Style">
-<script type="text/javascript" src="../../../../sorttable.js"></script>
-<script type="text/javascript">
- targetPage = "" + window.location.search;
- if (targetPage != "" && targetPage != "undefined")
- targetPage = targetPage.substring(1);
- if (targetPage.indexOf(":") != -1 || (targetPage != "" && !validURL(targetPage)))
- targetPage = "undefined";
- function validURL(url) {
- var pos = url.indexOf(".html");
- if (pos == -1 || pos != url.length - 5)
- return false;
- var allowNumber = false;
- var allowSep = false;
- var seenDot = false;
- for (var i = 0; i < url.length - 5; i++) {
- var ch = url.charAt(i);
- if ('a' <= ch && ch <= 'z' ||
- 'A' <= ch && ch <= 'Z' ||
- ch == '$' ||
- ch == '_') {
- allowNumber = true;
- allowSep = true;
- } else if ('0' <= ch && ch <= '9' ||
- ch == '-') {
- if (!allowNumber)
- return false;
- } else if (ch == '/' || ch == '.') {
- if (!allowSep)
- return false;
- allowNumber = false;
- allowSep = false;
- if (ch == '.')
- seenDot = true;
- if (ch == '/' && seenDot)
- return false;
- } else {
- return false;
- }
- }
- return true;
- }
- function loadFrames() {
- if (targetPage != "" && targetPage != "undefined")
- top.classFrame.location = top.targetPage;
- }
-</script>
-</head>
-<body>
-<table>
-<tr>
-<td>
-<a href="../../../../index.html?net/jaekl/qd/xml/ParseResult.html" target="_top">Frames</a>
-<a href="ParseResult.html" target="_top">No Frames</a>
-</td>
-</tr>
-</table>
-<p>
- <table cellspacing="0" cellpadding="0"class="report">
- <tr class="report">
- <th class="report"> </th>
- <th class="report">%method</th>
- <th class="report">%block</th>
- <th class="report">%branch</th>
- <th class="report">%line</th>
- </tr>
- <tr class="report">
- <td class="reportText"><span class="text">net.jaekl.qd.xml.ParseResult</span></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>89</b>%(8/9)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 89"></td><td class="percentUnCovered" width="11.0"></td></tr></table></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>81</b>%(38/47)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 81"></td><td class="percentUnCovered" width="19.0"></td></tr></table></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>74</b>%(25/34)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 74"></td><td class="percentUnCovered" width="26.0"></td></tr></table></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>91</b>%(60/66)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 91"></td><td class="percentUnCovered" width="9.0"></td></tr></table></td></tr></table></td>
- </tr>
- </table>
- <p>
- <p>
- <table cellspacing="0" cellpadding="0"class="report" id="mcoverage">
- <tr class="report">
- <th class="report">hit count</th>
- <th class="report">method name</th>
- <th class="report">method modifiers</th>
- <th class="report">method signature</th>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">1</span></td>
- <td class="reportText"><span class="text"><a href="#src_19"><clinit></a></span></td>
- <td class="reportText"><span class="text">[static]</span></td>
- <td class="reportText"><span class="text">void <clinit>()</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">45</span></td>
- <td class="reportText"><span class="text"><a href="#src_32"><init></a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">void <init>(java.lang.String,java.lang.String[],java.lang.Object[][])</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">195</span></td>
- <td class="reportText"><span class="text"><a href="#src_61">characters</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">void characters(char[],int,int)</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">20</span></td>
- <td class="reportText"><span class="text"><a href="#src_65">collectParsedChildren</a></span></td>
- <td class="reportText"><span class="text">[protected]</span></td>
- <td class="reportText"><span class="text">net.jaekl.qd.xml.ParseResult[] collectParsedChildren(java.lang.Class)</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">216</span></td>
- <td class="reportText"><span class="text"><a href="#src_82">endElement</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">boolean endElement(java.lang.String,java.lang.String,java.lang.String)</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">1</span></td>
- <td class="reportText"><span class="text"><a href="#src_56">getTagName</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">java.lang.String getTagName()</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_uncovered"><span class="text">0</span></td>
- <td class="reportText"><span class="text"><a href="#src_57">haveSeenMyTag</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">boolean haveSeenMyTag()</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">255</span></td>
- <td class="reportText"><span class="text"><a href="#src_116">startElement</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">net.jaekl.qd.xml.ParseResult startElement(java.lang.String,java.lang.String,java.lang.String,org.xml.sax.Attributes)</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">31</span></td>
- <td class="reportText"><span class="text"><a href="#src_164">validate</a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">void validate()</span></td>
- </tr>
- </table>
- <p>
- <table cellspacing="0" cellpadding="0" class="src">
- <tr>
- <td class="numLine"> 1</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// Copyright (C) 2004, 2014 Christian Jaekl</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 2</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 3</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// Abstract class representing the result of parsing an XML Element.</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 4</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// A class derived from this one will know how to parse a subtree inside an XML file, and </span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 5</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// will contain the result of that parse within itself when the parse has completed.</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 6</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">//</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 7</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// Note that this code will need to be augmented and fixed if XML namespace support is desired.</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 8</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 9</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">package</span> net.jaekl.qd.xml;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 10</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 11</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> java.util.ArrayList;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 12</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> java.util.HashMap;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 13</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> java.util.HashSet;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 14</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> java.util.Iterator;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 15</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> java.util.Stack;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 16</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 17</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> org.xml.sax.Attributes;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 18</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 19<a name="src_19"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">abstract</span> <span Class="keyword">class</span> ParseResult</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 20</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> {</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 21</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> Stack<String> m_current; <span Class="comment">// Name of the element that we're currently inside</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 22</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> StringBuilder m_chars; <span Class="comment">// character content of m_current.peek()</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 23</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> ArrayList<ParseResult> m_childParsers; <span Class="comment">// Set of all child parsers</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 24</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">boolean</span> m_haveSeenMyTag; <span Class="comment">// Have I encountered my own (root) tag yet?</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 25</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 26</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> String m_tagName; <span Class="comment">// Name of the (root) element tag that I'm parsing</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 27</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> HashSet<String> m_internal; <span Class="comment">// Tags that we will store as members of this class instance</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 28</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> HashMap<String,Class<? <span Class="keyword">extends</span> ParseResult>> m_external; <span Class="comment">// Tags that we will store as child ParseResult-derived objects</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 29</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 30</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> @SuppressWarnings(<span Class="string">"unchecked"</span>)</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 31</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> ParseResult(String tagName, String[] internalMemberTags, Object[][] externalParserTags)</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 32<a name="src_32"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> {</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 33</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> m_current = <span Class="keyword">new</span> Stack<String>();</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 34</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> m_chars = <span Class="keyword">new</span> StringBuilder();</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 35</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> m_childParsers = <span Class="keyword">new</span> ArrayList<ParseResult>();</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 36</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> m_haveSeenMyTag = <span Class="keyword">false</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 37</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 38</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> m_tagName = tagName;</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 39</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> m_internal = <span Class="keyword">new</span> HashSet<String>();</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 40</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> m_external = <span Class="keyword">new</span> HashMap<String, Class<? <span Class="keyword">extends</span> ParseResult>>();</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 41</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 42</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">for</span> (String internalTag : internalMemberTags) {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 43</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> m_internal.add(internalTag);</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 44</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 45</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 46</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">for</span> (<span Class="keyword">int</span> idx = 0; idx < externalParserTags.length; ++idx) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 47</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> String externalTag = (String)externalParserTags[idx][0];</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 48</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> Class<? <span Class="keyword">extends</span> ParseResult> parserClass = (Class<? <span Class="keyword">extends</span> ParseResult>)externalParserTags[idx][1];</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 49</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> m_external.put(externalTag, parserClass);</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 50</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 51</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> }</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 52</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 53</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">abstract</span> <span Class="keyword">void</span> endContents(String uri, String localName, String qName, String chars) <span Class="keyword">throws</span> XmlParseException;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 54</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">abstract</span> <span Class="keyword">void</span> endExternal(String uri, String localName, String qName) <span Class="keyword">throws</span> XmlParseException;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 55</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 56<a name="src_56"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> String getTagName() { <span Class="keyword">return</span> m_tagName; }</span></pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 57<a name="src_57"></a></td>
- <td class="nbHitsUncovered"> Block: 0/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">boolean</span> haveSeenMyTag() { <span Class="keyword">return</span> m_haveSeenMyTag; }</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 58</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 59</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">void</span> characters(<span Class="keyword">char</span>[] ch, <span Class="keyword">int</span> start, <span Class="keyword">int</span> length) <span Class="keyword">throws</span> XmlParseException</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 60</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 61<a name="src_61"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> m_chars.append(ch, start, length);</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 62</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 63</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 64</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">protected</span> ParseResult[] collectParsedChildren(Class<? <span Class="keyword">extends</span> ParseResult> cls) {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 65<a name="src_65"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> ArrayList<ParseResult> collection = <span Class="keyword">new</span> ArrayList<ParseResult>();</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 66</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> Iterator<ParseResult> iter = m_childParsers.iterator();</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 67</td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">while</span> (iter.hasNext()) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 68</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> ParseResult pr = iter.next();</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 69</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">if</span> (pr.getClass().isAssignableFrom(cls)) {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 70</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> collection.add(pr);</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 71</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> iter.remove();</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 72</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 73</td>
- <td class="nbHitsUncovered"> Block: 1/1 Branch: 0/1 </td>
- <td class="src"><pre class="src"> }</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 74</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 75</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> ParseResult[] result = <span Class="keyword">new</span> ParseResult[collection.size()];</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 76</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">return</span> collection.toArray(result);</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 77</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 78</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 79</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// returns true if this ParseResult's context has ended with this endElement() call</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 80</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">boolean</span> endElement(String uri, String localName, String qName) <span Class="keyword">throws</span> XmlParseException</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 81</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 82<a name="src_82"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">assert</span> (<span Class="keyword">null</span> != localName);</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 83</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 84</td>
- <td class="nbHitsUncovered"> Block: 1/1 Branch: 1/2 </td>
- <td class="src"><pre class="src"> <span Class="keyword">boolean</span> isInternal = m_internal.contains(localName);</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 85</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 86</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">if</span> (! m_haveSeenMyTag) {</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 87</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// We're in some unrecognised prologue. Ignore it and move on.</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 88</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">return</span> <span Class="keyword">false</span>;</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 89</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 90</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 91</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">if</span> (m_tagName.equals(localName)) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 92</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> validate();</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 93</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">return</span> <span Class="keyword">true</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 94</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 95</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 96</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">if</span> (!isInternal) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 97</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// Unrecognized tag. Ignore it.</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 98</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">return</span> <span Class="keyword">false</span>;</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 99</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 100</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 101</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> String tag = m_current.pop();</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 102</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">if</span> ( ! tag.equals(localName) ) {</pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 103</td>
- <td class="nbHitsUncovered"> Block: 0/1 Branch: 0/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">throw</span> <span Class="keyword">new</span> MismatchedTagsException(tag, localName);</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 104</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 105</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 106</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> String chars = m_chars.toString();</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 107</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> endContents(uri, localName, qName, chars);</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 108</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 109</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">return</span> <span Class="keyword">false</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 110</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 111</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 112</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// returns either itself, or a new ParseResult-derived object, whichever should handle parsing the inside of this element</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 113</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> ParseResult startElement(String uri, String localName, String qName, Attributes attributes) </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 114</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">throws</span> XmlParseException</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 115</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 116<a name="src_116"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">assert</span> (<span Class="keyword">null</span> != localName);</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 117</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 118</td>
- <td class="nbHitsUncovered"> Block: 1/1 Branch: 1/2 </td>
- <td class="src"><pre class="src"> m_chars.setLength(0);</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 119</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 120</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">if</span> (! m_haveSeenMyTag) {</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 121</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// Have we opened our own (root) tag yet?</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 122</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 123</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">if</span> (m_tagName.equals(localName)) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 124</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> m_haveSeenMyTag = <span Class="keyword">true</span>;</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 125</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">return</span> <span Class="keyword">this</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 126</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 127</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">else</span> {</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 128</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// One of two things has happened here.</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 129</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// Either (a) we've got some sort of wrapper here, and have not yet reach our own tag, </span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 130</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// or (b) we're parsing XML that doesn't match expectations.</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 131</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// In either case, we're going to ignore this tag, and scan forward looking for our own root.</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 132</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">return</span> <span Class="keyword">this</span>;</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 133</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 134</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 135</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 136</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">if</span> (m_internal.contains(localName)) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 137</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> m_current.push(localName);</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 138</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">return</span> <span Class="keyword">this</span>;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 139</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 140</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 141</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> Class<? <span Class="keyword">extends</span> ParseResult> parserClass = m_external.get(localName);</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 142</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">if</span> (<span Class="keyword">null</span> != parserClass) {</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 143</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">try</span> {</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 144</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> ParseResult childParser = (ParseResult) parserClass.newInstance();</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 145</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> m_childParsers.add(childParser);</pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 146</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">return</span> childParser.startElement(uri, localName, qName, attributes);</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 147</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 148</td>
- <td class="nbHitsUncovered"> Block: 0/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">catch</span> (IllegalAccessException iae) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 149</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">throw</span> <span Class="keyword">new</span> XmlParseException(iae);</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 150</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 151</td>
- <td class="nbHitsUncovered"> Block: 0/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">catch</span> (InstantiationException ie) {</span></pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 152</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">throw</span> <span Class="keyword">new</span> XmlParseException(ie);</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 153</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 154</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 155</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 156</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// Not a recognized tag. Ignore it, rather than complaining. </span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 157</td>
- <td class="nbHitsCovered"> Block: 1/1 Branch: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">return</span> <span Class="keyword">this</span>;</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 158</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 159</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 160</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">void</span> validate() <span Class="keyword">throws</span> XmlParseException</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 161</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> {</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 162</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// Default implementation is a no-op.</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 163</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// Override if you want to validate on endElement()</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 164<a name="src_164"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> }</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 165</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 166</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- </table>
-<p>
-<p><table cellpadding="0" cellspacing="0" class="report"> <tr class="report"> <td class="reportText"><span class="text"> Report generated 11/12/14 11:31 PM </span></td> </tr></table>
-</body>
-</html>
+++ /dev/null
-<html>
-<head>
-<title>tests coverage</title>
-<link rel ="stylesheet" type="text/css" href="../../../../style.css" title="Style">
-<script type="text/javascript" src="../../../../sorttable.js"></script>
-<script type="text/javascript">
- targetPage = "" + window.location.search;
- if (targetPage != "" && targetPage != "undefined")
- targetPage = targetPage.substring(1);
- if (targetPage.indexOf(":") != -1 || (targetPage != "" && !validURL(targetPage)))
- targetPage = "undefined";
- function validURL(url) {
- var pos = url.indexOf(".html");
- if (pos == -1 || pos != url.length - 5)
- return false;
- var allowNumber = false;
- var allowSep = false;
- var seenDot = false;
- for (var i = 0; i < url.length - 5; i++) {
- var ch = url.charAt(i);
- if ('a' <= ch && ch <= 'z' ||
- 'A' <= ch && ch <= 'Z' ||
- ch == '$' ||
- ch == '_') {
- allowNumber = true;
- allowSep = true;
- } else if ('0' <= ch && ch <= '9' ||
- ch == '-') {
- if (!allowNumber)
- return false;
- } else if (ch == '/' || ch == '.') {
- if (!allowSep)
- return false;
- allowNumber = false;
- allowSep = false;
- if (ch == '.')
- seenDot = true;
- if (ch == '/' && seenDot)
- return false;
- } else {
- return false;
- }
- }
- return true;
- }
- function loadFrames() {
- if (targetPage != "" && targetPage != "undefined")
- top.classFrame.location = top.targetPage;
- }
-</script>
-</head>
-<body>
-<table>
-<tr>
-<td>
-<a href="../../../../index.html?net/jaekl/qd/xml/XmlParseException.html" target="_top">Frames</a>
-<a href="XmlParseException.html" target="_top">No Frames</a>
-</td>
-</tr>
-</table>
-<p>
- <table cellspacing="0" cellpadding="0"class="report">
- <tr class="report">
- <th class="report"> </th>
- <th class="report">%method</th>
- <th class="report">%block</th>
- <th class="report">%branch</th>
- <th class="report">%line</th>
- </tr>
- <tr class="report">
- <td class="reportText"><span class="text">net.jaekl.qd.xml.XmlParseException</span></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>50</b>%(1/2)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 50"></td><td class="percentUnCovered" width="50.0"></td></tr></table></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>50</b>%(1/2)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 50"></td><td class="percentUnCovered" width="50.0"></td></tr></table></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>-</b>%</span></td></tr></table></td>
- <td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>50</b>%(2/4)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 50"></td><td class="percentUnCovered" width="50.0"></td></tr></table></td></tr></table></td>
- </tr>
- </table>
- <p>
- <p>
- <table cellspacing="0" cellpadding="0"class="report" id="mcoverage">
- <tr class="report">
- <th class="report">hit count</th>
- <th class="report">method name</th>
- <th class="report">method modifiers</th>
- <th class="report">method signature</th>
- </tr>
- <tr class="report">
- <td class="reportValue_covered"><span class="text">3</span></td>
- <td class="reportText"><span class="text"><a href="#src_9"><init></a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">void <init>()</span></td>
- </tr>
- <tr class="report">
- <td class="reportValue_uncovered"><span class="text">0</span></td>
- <td class="reportText"><span class="text"><a href="#src_14"><init></a></span></td>
- <td class="reportText"><span class="text">[public]</span></td>
- <td class="reportText"><span class="text">void <init>(java.lang.Throwable)</span></td>
- </tr>
- </table>
- <p>
- <table cellspacing="0" cellpadding="0" class="src">
- <tr>
- <td class="numLine"> 1</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">package</span> net.jaekl.qd.xml;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 2</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 3</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">import</span> net.jaekl.qd.QDException;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 4</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 5</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> <span Class="keyword">class</span> XmlParseException <span Class="keyword">extends</span> QDException </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 6</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> {</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 7</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">private</span> <span Class="keyword">static</span> <span Class="keyword">final</span> <span Class="keyword">long</span> serialVersionUID = 1L;</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 8</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 9<a name="src_9"></a></td>
- <td class="nbHitsCovered"> Block: 1/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> XmlParseException() {</span></pre></td>
- </tr>
- <tr>
- <td class="numLine"> 10</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="comment">// no-op</span></pre></td>
- </tr>
- <tr>
- <td class="numLineCover"> 11</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 12</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 13</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> <span Class="keyword">public</span> XmlParseException(Throwable t) {</pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 14<a name="src_14"></a></td>
- <td class="nbHitsUncovered"> Block: 0/1 </td>
- <td class="src"><pre class="src"> <span Class="keyword">super</span>(t);</span></pre></td>
- </tr>
- <tr>
- <td class="numLineUnCover"> 15</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- <tr>
- <td class="numLine"> 16</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> </pre></td>
- </tr>
- <tr>
- <td class="numLine"> 17</td>
- <td class="nbHits"> </td>
- <td class="src"><pre class="src"> }</pre></td>
- </tr>
- </table>
-<p>
-<p><table cellpadding="0" cellspacing="0" class="report"> <tr class="report"> <td class="reportText"><span class="text"> Report generated 11/12/14 11:31 PM </span></td> </tr></table>
-</body>
-</html>
+++ /dev/null
-<html>
-<head>
-<title>coverage report</title>
-<link rel ="stylesheet" type="text/css" href="../../../../style.css" title="Style">
-</head>
-<body>
-<a href="package-summary.html" target="classFrame">net.jaekl.qd.xml</a> <span class="text_italic"> 74% (23/31)</span><br>
-<p>
-<span class="title">All classes</span>
-<table>
-<tr>
-<td nowrap="nowrap">
-<a href="./MismatchedTagsException.html" target="classFrame">MismatchedTagsException</a><span class="text_italic"> 0% (0/3)</span><br>
-<a href="./MissingInfoException.html" target="classFrame">MissingInfoException</a><span class="text_italic"> 100% (5/5)</span><br>
-<a href="./ParseHandler.html" target="classFrame">ParseHandler</a><span class="text_italic"> 75% (9/12)</span><br>
-<a href="./ParseResult.html" target="classFrame">ParseResult</a><span class="text_italic"> 89% (8/9)</span><br>
-<a href="./XmlParseException.html" target="classFrame">XmlParseException</a><span class="text_italic"> 50% (1/2)</span><br>
-</td>
-</tr>
-</table>
-</body>
-</html>
+++ /dev/null
-<html>
-<head>
-<title>coverage report</title>
-<link rel ="stylesheet" type="text/css" href="../../../../style.css" title="Style">
-<script type="text/javascript" src="../../../../sorttable.js"></script>
-</head>
-<body>
-<span class="title">Coverage report </span>
-<p>
-<table class="report" cellpadding="0" cellspacing="0">
-<tr class="report">
-<th class="report"> </th>
-<th class="report">#classes</th>
-<th class="report">%method</th>
-<th class="report">%block</th>
-<th class="report">%branch</th>
-<th class="report">%line</th>
-</tr>
-<tr class="report">
-<td class="reportText">net.jaekl.qd.xml</td>
-<td class="reportValue">5</td>
-<td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>74</b>%(23/31)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 74"></td><td class="percentUnCovered" width="26.0"></td></tr></table></td></tr></table></td>
-<td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>80</b>%(74/93)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 80"></td><td class="percentUnCovered" width="20.0"></td></tr></table></td></tr></table></td>
-<td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>82</b>%(41/50)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 82"></td><td class="percentUnCovered" width="18.0"></td></tr></table></td></tr></table></td>
-<td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>83</b>%(114/137)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 83"></td><td class="percentUnCovered" width="17.0"></td></tr></table></td></tr></table></td>
-</tr>
-</table>
-<p>
-<span class="title2">Classes</span><br>
-<table class="report" cellpadding="0" cellspacing="0" id="classes">
-<tr class="report">
-<th class="report">Name</th>
-<th class="report">%method</th>
-<th class="report">%block</th>
-<th class="report">%branch</th>
-<th class="report">%line</th>
-</tr>
-<tr class="report">
-<td class="reportText"><a href="MismatchedTagsException.html">MismatchedTagsException</a></td>
-<td class="reportValue"><b> 0</b>% (0/3)</td>
-<td class="reportValue"><b> 0</b>% (0/3)</td>
-<td class="reportValue"> -</td>
-<td class="reportValue"><b> 0</b>% (0/6)</td>
-</tr>
-<tr class="report">
-<td class="reportText"><a href="MissingInfoException.html">MissingInfoException</a></td>
-<td class="reportValue"><b> 100</b>% (5/5)</td>
-<td class="reportValue"><b> 100</b>% (11/11)</td>
-<td class="reportValue"><b> 100</b>% (4/4)</td>
-<td class="reportValue"><b> 100</b>% (19/19)</td>
-</tr>
-<tr class="report">
-<td class="reportText"><a href="ParseHandler.html">ParseHandler</a></td>
-<td class="reportValue"><b> 75</b>% (9/12)</td>
-<td class="reportValue"><b> 80</b>% (24/30)</td>
-<td class="reportValue"><b> 100</b>% (12/12)</td>
-<td class="reportValue"><b> 79</b>% (33/42)</td>
-</tr>
-<tr class="report">
-<td class="reportText"><a href="ParseResult.html">ParseResult</a></td>
-<td class="reportValue"><b> 89</b>% (8/9)</td>
-<td class="reportValue"><b> 81</b>% (38/47)</td>
-<td class="reportValue"><b> 74</b>% (25/34)</td>
-<td class="reportValue"><b> 91</b>% (60/66)</td>
-</tr>
-<tr class="report">
-<td class="reportText"><a href="XmlParseException.html">XmlParseException</a></td>
-<td class="reportValue"><b> 50</b>% (1/2)</td>
-<td class="reportValue"><b> 50</b>% (1/2)</td>
-<td class="reportValue"> -</td>
-<td class="reportValue"><b> 50</b>% (2/4)</td>
-</tr>
-</table>
-<p><table cellpadding="0" cellspacing="0" class="report"> <tr class="report"> <td class="reportText"><span class="text"> Report generated 11/12/14 11:31 PM </span></td> </tr></table>
-</body>
-</html>
+++ /dev/null
-<html>
-<head>
-<title>coverage report</title>
-<link rel ="stylesheet" type="text/css" href="style.css" title="Style">
-</head>
-<body>
-<span class="title">Coverage report</span><br>
-<table>
-<tr>
-<td nowrap="nowrap">
-<a href="overview-summary.html" target="classFrame">Overview</a><br>
-<a href="allclasses-frame.html" target="packageFrame">All classes</a>
-</td>
-</tr>
-</table>
-<p>
-<table>
-<tr>
-<td nowrap="nowrap"><span class="title2">All packages</span></td>
-</tr>
-<tr>
-<td nowrap="nowrap">
-<a href="net/jaekl/frank/package-frame.html" target="packageFrame" onClick="parent.frames[2].location.href='net/jaekl/frank/package-summary.html';">net.jaekl.frank</a><br>
-<a href="net/jaekl/frank/octranspo/package-frame.html" target="packageFrame" onClick="parent.frames[2].location.href='net/jaekl/frank/octranspo/package-summary.html';">net.jaekl.frank.octranspo</a><br>
-<a href="net/jaekl/qd/package-frame.html" target="packageFrame" onClick="parent.frames[2].location.href='net/jaekl/qd/package-summary.html';">net.jaekl.qd</a><br>
-<a href="net/jaekl/qd/http/package-frame.html" target="packageFrame" onClick="parent.frames[2].location.href='net/jaekl/qd/http/package-summary.html';">net.jaekl.qd.http</a><br>
-<a href="net/jaekl/qd/util/package-frame.html" target="packageFrame" onClick="parent.frames[2].location.href='net/jaekl/qd/util/package-summary.html';">net.jaekl.qd.util</a><br>
-<a href="net/jaekl/qd/xml/package-frame.html" target="packageFrame" onClick="parent.frames[2].location.href='net/jaekl/qd/xml/package-summary.html';">net.jaekl.qd.xml</a><br>
-</td>
-</tr>
-</table>
-</body>
-</html>
+++ /dev/null
-<html>
-<head>
-<title>coverage report</title>
-<link rel ="stylesheet" type="text/css" href="style.css" title="Style">
-<script type="text/javascript" src="sorttable.js"></script>
-</head>
-<body>
-<span class="title">Coverage report </span>
-<p>
-<table class="report" cellpadding="0" cellspacing="0">
-<tr class="report">
-<th class="report"> </th>
-<th class="report">#classes</th>
-<th class="report">%method</th>
-<th class="report">%block</th>
-<th class="report">%branch</th>
-<th class="report">%line</th>
-</tr>
-<tr class="report">
-<td class="reportText">Overall statistics</td>
-<td class="reportValue">21</td>
-<td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>86</b>%(95/111)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 86"></td><td class="percentUnCovered" width="14.0"></td></tr></table></td></tr></table></td>
-<td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>77</b>%(253/329)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 77"></td><td class="percentUnCovered" width="23.0"></td></tr></table></td></tr></table></td>
-<td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>72</b>%(127/176)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 72"></td><td class="percentUnCovered" width="28.0"></td></tr></table></td></tr></table></td>
-<td class="reportValue"><table class="percentGraph" cellpadding="0" cellspacing="0" align="right"><tr><td><span class="text"><b>82</b>%(443/539)</span></td><td><table class="percentGraph" cellpadding="0" cellspacing="0"><tr><td class="percentCovered" width=" 82"></td><td class="percentUnCovered" width="18.0"></td></tr></table></td></tr></table></td>
-</tr>
-</table>
-<p>
-<span class="title2">Packages</span><br>
-<table class="report" cellpadding="0" cellspacing="0" id="packages">
-<tr class="report">
-<th class="report">Name</th>
-<th class="report">#classes</th>
-<th class="report">%method</th>
-<th class="report">%block</th>
-<th class="report">%branch</th>
-<th class="report">%line</th>
-</tr>
-<tr class="report">
-<td class="reportText"><a href="net/jaekl/frank/package-summary.html">net.jaekl.frank</a></td>
-<td class="reportValue">4</td>
-<td class="reportValue"><b> 83</b>% (15/18)</td>
-<td class="reportValue"><b> 64</b>% (38/59)</td>
-<td class="reportValue"><b> 57</b>% (16/28)</td>
-<td class="reportValue"><b> 77</b>% (114/148)</td>
-</tr>
-<tr class="report">
-<td class="reportText"><a href="net/jaekl/frank/octranspo/package-summary.html">net.jaekl.frank.octranspo</a></td>
-<td class="reportValue">6</td>
-<td class="reportValue"><b> 98</b>% (43/44)</td>
-<td class="reportValue"><b> 84</b>% (97/115)</td>
-<td class="reportValue"><b> 70</b>% (49/70)</td>
-<td class="reportValue"><b> 94</b>% (150/159)</td>
-</tr>
-<tr class="report">
-<td class="reportText"><a href="net/jaekl/qd/package-summary.html">net.jaekl.qd</a></td>
-<td class="reportValue">2</td>
-<td class="reportValue"><b> 100</b>% (5/5)</td>
-<td class="reportValue"><b> 90</b>% (9/10)</td>
-<td class="reportValue"><b> 75</b>% (3/4)</td>
-<td class="reportValue"><b> 100</b>% (15/15)</td>
-</tr>
-<tr class="report">
-<td class="reportText"><a href="net/jaekl/qd/http/package-summary.html">net.jaekl.qd.http</a></td>
-<td class="reportValue">1</td>
-<td class="reportValue"><b> 83</b>% (5/6)</td>
-<td class="reportValue"><b> 50</b>% (14/28)</td>
-<td class="reportValue"><b> 40</b>% (4/10)</td>
-<td class="reportValue"><b> 53</b>% (31/58)</td>
-</tr>
-<tr class="report">
-<td class="reportText"><a href="net/jaekl/qd/util/package-summary.html">net.jaekl.qd.util</a></td>
-<td class="reportValue">3</td>
-<td class="reportValue"><b> 57</b>% (4/7)</td>
-<td class="reportValue"><b> 88</b>% (21/24)</td>
-<td class="reportValue"><b> 100</b>% (14/14)</td>
-<td class="reportValue"><b> 86</b>% (19/22)</td>
-</tr>
-<tr class="report">
-<td class="reportText"><a href="net/jaekl/qd/xml/package-summary.html">net.jaekl.qd.xml</a></td>
-<td class="reportValue">5</td>
-<td class="reportValue"><b> 74</b>% (23/31)</td>
-<td class="reportValue"><b> 80</b>% (74/93)</td>
-<td class="reportValue"><b> 82</b>% (41/50)</td>
-<td class="reportValue"><b> 83</b>% (114/137)</td>
-</tr>
-</table>
-<p><table cellpadding="0" cellspacing="0" class="report"> <tr class="report"> <td class="reportText"><span class="text"> Report generated 11/12/14 11:31 PM </span></td> </tr></table>
-</body>
-</html>
+++ /dev/null
-/*
- * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation. Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-addEvent(window, "load", sortables_init);
-
-var SORT_COLUMN_INDEX;
-
-function sortables_init() {
- // Find all tables with class sortable and make them sortable
- if (!document.getElementsByTagName) return;
- tbls = document.getElementsByTagName("table");
- for (ti=0;ti<tbls.length;ti++) {
- thisTbl = tbls[ti];
- if (((' '+thisTbl.className+' ').indexOf("report") != -1) && (thisTbl.id)) {
- //initTable(thisTbl.id);
- ts_makeSortable(thisTbl);
- }
- }
-}
-
-function ts_makeSortable(table) {
- if (table.rows && table.rows.length > 0) {
- var firstRow = table.rows[0];
- }
- if (!firstRow) return;
-
- // We have a first row: assume it's the header, and make its contents clickable links
- for (var i=0;i<firstRow.cells.length;i++) {
- var cell = firstRow.cells[i];
- var txt = ts_getInnerText(cell);
- cell.innerHTML = '<a href="#" class="sortheader" '+
- 'onclick="ts_resortTable(this, '+i+');return false;">' +
- txt+'<span class="sortarrow"> </span></a>';
- }
-}
-
-function ts_getInnerText(el) {
- if (typeof el == "string") return el;
- if (typeof el == "undefined") { return el };
- if (el.innerText) return el.innerText; //Not needed but it is faster
- var str = "";
-
- var cs = el.childNodes;
- var l = cs.length;
- for (var i = 0; i < l; i++) {
- switch (cs[i].nodeType) {
- case 1: //ELEMENT_NODE
- str += ts_getInnerText(cs[i]);
- break;
- case 3: //TEXT_NODE
- str += cs[i].nodeValue;
- break;
- }
- }
- return str;
-}
-
-function ts_resortTable(lnk,clid) {
- // get the span
- var span;
- for (var ci=0;ci<lnk.childNodes.length;ci++) {
- if (lnk.childNodes[ci].tagName && lnk.childNodes[ci].tagName.toLowerCase() == 'span') span = lnk.childNodes[ci];
- }
- var spantext = ts_getInnerText(span);
- var td = lnk.parentNode;
- var column = clid || td.cellIndex;
- var table = getParent(td,'TABLE');
-
- // Work out a type for the column
- if (table.rows.length <= 1) return;
- var itm = ts_getInnerText(table.rows[1].cells[column]);
- sortfn = ts_sort_caseinsensitive;
- if (itm.match(/%/)) sortfn = ts_sort_percentage;
- if (itm.match(/^\d\d[\/-]\d\d[\/-]\d\d\d\d$/)) sortfn = ts_sort_date;
- if (itm.match(/^\d\d[\/-]\d\d[\/-]\d\d$/)) sortfn = ts_sort_date;
- if (itm.match(/^[£$]/)) sortfn = ts_sort_currency;
- if (itm.match(/^[\d\.]+$/)) sortfn = ts_sort_numeric;
- SORT_COLUMN_INDEX = column;
- var firstRow = new Array();
- var newRows = new Array();
- for (i=0;i<table.rows[0].length;i++) { firstRow[i] = table.rows[0][i]; }
- for (j=1;j<table.rows.length;j++) { newRows[j-1] = table.rows[j]; }
-
- newRows.sort(sortfn);
-
- if (span.getAttribute("sortdir") == 'down') {
- ARROW = ' ↑';
- newRows.reverse();
- span.setAttribute('sortdir','up');
- } else {
- ARROW = ' ↓';
- span.setAttribute('sortdir','down');
- }
-
- // We appendChild rows that already exist to the tbody, so it moves them rather than creating new ones
- // don't do sortbottom rows
- for (i=0;i<newRows.length;i++) { if (!newRows[i].className || (newRows[i].className && (newRows[i].className.indexOf('sortbottom') == -1))) table.tBodies[0].appendChild(newRows[i]);}
- // do sortbottom rows only
- for (i=0;i<newRows.length;i++) { if (newRows[i].className && (newRows[i].className.indexOf('sortbottom') != -1)) table.tBodies[0].appendChild(newRows[i]);}
-
- // Delete any other arrows there may be showing
- var allspans = document.getElementsByTagName("span");
- for (var ci=0;ci<allspans.length;ci++) {
- if (allspans[ci].className == 'sortarrow') {
- if (getParent(allspans[ci],"table") == getParent(lnk,"table")) { // in the same table as us?
- allspans[ci].innerHTML = ' ';
- }
- }
- }
-
- span.innerHTML = ARROW;
-}
-
-function getParent(el, pTagName) {
- if (el == null) return null;
- else if (el.nodeType == 1 && el.tagName.toLowerCase() == pTagName.toLowerCase()) // Gecko bug, supposed to be uppercase
- return el;
- else
- return getParent(el.parentNode, pTagName);
-}
-function ts_sort_date(a,b) {
- // y2k notes: two digit years less than 50 are treated as 20XX, greater than 50 are treated as 19XX
- aa = ts_getInnerText(a.cells[SORT_COLUMN_INDEX]);
- bb = ts_getInnerText(b.cells[SORT_COLUMN_INDEX]);
- if (aa.length == 10) {
- dt1 = aa.substr(6,4)+aa.substr(3,2)+aa.substr(0,2);
- } else {
- yr = aa.substr(6,2);
- if (parseInt(yr) < 50) { yr = '20'+yr; } else { yr = '19'+yr; }
- dt1 = yr+aa.substr(3,2)+aa.substr(0,2);
- }
- if (bb.length == 10) {
- dt2 = bb.substr(6,4)+bb.substr(3,2)+bb.substr(0,2);
- } else {
- yr = bb.substr(6,2);
- if (parseInt(yr) < 50) { yr = '20'+yr; } else { yr = '19'+yr; }
- dt2 = yr+bb.substr(3,2)+bb.substr(0,2);
- }
- if (dt1==dt2) return 0;
- if (dt1<dt2) return -1;
- return 1;
-}
-
-function ts_sort_currency(a,b) {
- aa = ts_getInnerText(a.cells[SORT_COLUMN_INDEX]).replace(/[^0-9.]/g,'');
- bb = ts_getInnerText(b.cells[SORT_COLUMN_INDEX]).replace(/[^0-9.]/g,'');
- return parseFloat(aa) - parseFloat(bb);
-}
-
-function ts_sort_numeric(a,b) {
- aa = parseFloat(ts_getInnerText(a.cells[SORT_COLUMN_INDEX]));
- if (isNaN(aa)) aa = 0;
- bb = parseFloat(ts_getInnerText(b.cells[SORT_COLUMN_INDEX]));
- if (isNaN(bb)) bb = 0;
- return aa-bb;
-}
-
-function ts_sort_percentage(a,b) {
-
- var s = ts_getInnerText(a.cells[SORT_COLUMN_INDEX]);
- var i = s.indexOf( "%" );
- if (i != -1) {
- s = s.substr( 0, i );
- }
- aa = parseFloat(s);
- if (isNaN(aa)) aa = 0;
-
- var s = ts_getInnerText(b.cells[SORT_COLUMN_INDEX]);
- var i = s.indexOf( "%" );
- if (i != -1) {
- s = s.substr( 0, i );
- }
- bb = parseFloat(s);
- if (isNaN(bb)) bb = 0;
-
- return bb-aa;
-}
-
-function ts_sort_caseinsensitive(a,b) {
- aa = ts_getInnerText(a.cells[SORT_COLUMN_INDEX]).toLowerCase();
- bb = ts_getInnerText(b.cells[SORT_COLUMN_INDEX]).toLowerCase();
- if (aa==bb) return 0;
- if (aa<bb) return -1;
- return 1;
-}
-
-function ts_sort_default(a,b) {
- aa = ts_getInnerText(a.cells[SORT_COLUMN_INDEX]);
- bb = ts_getInnerText(b.cells[SORT_COLUMN_INDEX]);
- if (aa==bb) return 0;
- if (aa<bb) return -1;
- return 1;
-}
-
-
-function addEvent(elm, evType, fn, useCapture)
-// addEvent and removeEvent
-// cross-browser event handling for IE5+, NS6 and Mozilla
-// By Scott Andrew
-{
- if (elm.addEventListener){
- elm.addEventListener(evType, fn, useCapture);
- return true;
- } else if (elm.attachEvent){
- var r = elm.attachEvent("on"+evType, fn);
- return r;
- } else {
- alert("Handler could not be removed");
- }
-}
+++ /dev/null
-/*
- * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation. Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-body {
- font-family: verdana, arial, sans-serif
- font-size: 12px;
-}
-
-a {
- font-size: 12px;
-}
-
-table.src {
- font-size: 12px;
- border-left: #dcdcdc 1px solid;
- border-right: #dcdcdc 1px solid;
- border-bottom: #dcdcdc 1px solid;
- border-top: #dcdcdc 1px solid;
-}
-
-table.report {
- font-size: 12px !important;
- border-collapse: collapse;
- width: 100%;
-}
-
-tr.report {
- border: #dcdcdc 1px solid;
-}
-
-table.percentGraph {
- height: 10px;
- width: 100px;
-}
-
-th.report {
- background: #F0F0F0;
- font-size: inherit !important;
- font-weight: bold;
- border: #dcdcdc 1px solid;
- cursor: default;
-}
-
-
-th.report:hover {
- background: #dcdcdc;
-}
-
-table.report a.sortheader {
- color: black;
- text-decoration: none;
- display: block;
-}
-table.report span.sortarrow {
- color: black;
- text-decoration: none;
-}
-
-
-
-
-td.reportText {
- font-size: inherit !important;
- border: #dcdcdc 1px solid;
-}
-
-td.reportValue {
- font-size: inherit !important;
- border: #dcdcdc 1px solid;
- text-align: right;
-}
-
-td.reportValue_covered {
- font-size: inherit !important;
- border: #dcdcdc 1px solid;
- text-align: right;
- background: #80ff80;
-}
-
-td.reportValue_uncovered {
- font-size: inherit !important;
- border: #dcdcdc 1px solid;
- text-align: right;
- background: #FF3030;
-}
-
-td.spacer {
- border-left: #FF0000 0px none;
- border-right: #FF0000 0px none;
- height: 30px;
- padding-top: 15px;
-}
-
-td.percentCovered {
- background: #00FF00;
- empty-cells: show;
-}
-
-td.percentUnCovered {
- background: #FF0000;
- empty-cells: show;
-}
-
-td.numLine {
- background: #F0F0F0;
- border-right: #dcdcdc 1px solid;
- padding-right: 3px;
- text-align: right;
-}
-
-td.numLineCover {
- background: #80ff80;
- border-right: #dcdcdc 1px solid;
- padding-right: 3px;
- text-align: right;
-}
-
-td.numLineUnCover {
- background: #FF3030;
- border-right: #dcdcdc 1px solid;
- padding-right: 3px;
- text-align: right;
-}
-
-td.nbHits {
- background: #F0F0F0;
- border-right: #dcdcdc 1px solid;
- padding-right: 3px;
- text-align: left;
-}
-
-td.nbHitsCovered {
- background: #80ff80;
- border-right: #dcdcdc 1px solid;
- padding-right: 3px;
- text-align: left;
-}
-
-td.nbHitsUncovered {
- background: #FF3030;
- border-right: #dcdcdc 1px solid;
- padding-right: 3px;
- text-align: left;
-}
-
-td.src {
- width: 100%;
-}
-
-pre.src {
- background: #ffffff;
- margin-top: 0px;
- margin-bottom: 0px;
-}
-
-span.srcUncovered {
- background: #FF3030;
- border-right: #dcdcdc 1px solid;
- padding-right: 3px;
- text-align: right;
-}
-
-span.keyword {
- color: #0000ff;
-}
-
-span.comment {
- color: #008080;
- font-style: italic;
-}
-
-span.string {
- color: #000000;
-}
-
-span.title {
- font-weight: bold;
- font-size: 16px;
-}
-
-span.title2 {
- font-weight: bold;
- font-size: 14px;
-}
-span.text {
- font-size: 12px;
-}
-
-span.text_italic {
- font-size: 12px;
- font-style: italic;
-}