diff options
Diffstat (limited to 'tests/org.eclipse.wst.xml.xpath2.processor.tests/coverageReport/_files/1627.html')
-rw-r--r-- | tests/org.eclipse.wst.xml.xpath2.processor.tests/coverageReport/_files/1627.html | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/org.eclipse.wst.xml.xpath2.processor.tests/coverageReport/_files/1627.html b/tests/org.eclipse.wst.xml.xpath2.processor.tests/coverageReport/_files/1627.html deleted file mode 100644 index 066098b6..00000000 --- a/tests/org.eclipse.wst.xml.xpath2.processor.tests/coverageReport/_files/1627.html +++ /dev/null @@ -1 +0,0 @@ -<HTML><HEAD><META CONTENT="text/html; charset=UTF-8" HTTP-EQUIV="Content-Type"/><TITLE>EMMA Coverage Report</TITLE><STYLE TYPE="text/css"> TABLE,TD,TH {border-style:solid; border-color:black;} TD,TH {background:white;margin:0;line-height:100%;padding-left:0.5em;padding-right:0.5em;} TD {border-width:0 1px 0 0;} TH {border-width:1px 1px 1px 0;} TR TD.h {color:red;} TABLE {border-spacing:0; border-collapse:collapse;border-width:0 0 1px 1px;} P,H1,H2,H3,TH {font-family:verdana,arial,sans-serif;font-size:10pt;} TD {font-family:courier,monospace;font-size:10pt;} TABLE.hdft {border-spacing:0;border-collapse:collapse;border-style:none;} TABLE.hdft TH,TABLE.hdft TD {border-style:none;line-height:normal;} TABLE.hdft TH.tl,TABLE.hdft TD.tl {background:#6699CC;color:white;} TABLE.hdft TD.nv {background:#6633DD;color:white;} .nv A:link {color:white;} .nv A:visited {color:white;} .nv A:active {color:yellow;} TABLE.hdft A:link {color:white;} TABLE.hdft A:visited {color:white;} TABLE.hdft A:active {color:yellow;} .in {color:#356085;} TABLE.s TD {padding-left:0.25em;padding-right:0.25em;} TABLE.s TD.l {padding-left:0.25em;padding-right:0.25em;text-align:right;background:#F0F0F0;} TABLE.s TR.z TD {background:#FF9999;} TABLE.s TR.p TD {background:#FFFF88;} TABLE.s TR.c TD {background:#CCFFCC;} A:link {color:#0000EE;text-decoration:none;} A:visited {color:#0000EE;text-decoration:none;} A:hover {color:#0000EE;text-decoration:underline;} TABLE.cn {border-width:0 0 1px 0;} TABLE.s {border-width:1px 0 1px 1px;} TD.h {color:red;border-width:0 1px 0 0;} TD.f {border-width:0 1px 0 1px;} TD.hf {color:red;border-width:0 1px 0 1px;} TH.f {border-width:1px 1px 1px 1px;} TR.cis TD {background:#F0F0F0;} TR.cis TD {border-width:1px 1px 1px 0;} TR.cis TD.h {color:red;border-width:1px 1px 1px 0;} TR.cis TD.f {border-width:1px 1px 1px 1px;} TR.cis TD.hf {color:red;border-width:1px 1px 1px 1px;} TD.b {border-style:none;background:transparent;line-height:50%;} TD.bt {border-width:1px 0 0 0;background:transparent;line-height:50%;} TR.o TD {background:#F0F0F0;}TABLE.it {border-style:none;}TABLE.it TD,TABLE.it TH {border-style:none;}</STYLE></HEAD><BODY><TABLE CLASS="hdft" CELLSPACING="0" WIDTH="100%"><TR><TH CLASS="tl"><A HREF="http://www.eclemma.org/">EMMA</A> Coverage Report (generated Tue Jun 09 19:59:05 GMT 2009)</TH></TR><TR><TD CLASS="nv">[<A HREF="../xslUnitTestCoverage.html">all classes</A>][<A HREF="203.html">org.eclipse.wst.xml.catalog.tests.internal</A>]</TD></TR></TABLE><H2>COVERAGE SUMMARY FOR SOURCE FILE [<SPAN CLASS="in">CatalogContributorRegistryReaderTest.java</SPAN>]</H2><TABLE CELLSPACING="0" WIDTH="100%"><TR><TH>name</TH><TH>class, %</TH><TH>method, %</TH><TH>block, %</TH><TH>line, %</TH></TR><TR><TD>CatalogContributorRegistryReaderTest.java</TD><TD CLASS="h">0% (0/1)</TD><TD CLASS="h">0% (0/4)</TD><TD CLASS="h">0% (0/311)</TD><TD CLASS="h">0% (0/73)</TD></TR></TABLE><H3>COVERAGE BREAKDOWN BY CLASS AND METHOD</H3><TABLE CLASS="cn" CELLSPACING="0" WIDTH="100%"><TR><TH CLASS="f">name</TH><TH>class, %</TH><TH>method, %</TH><TH>block, %</TH><TH>line, %</TH></TR><TR><TD CLASS="b"> </TD><TD CLASS="b"> </TD><TD CLASS="b"> </TD><TD CLASS="b"> </TD><TD CLASS="b"> </TD></TR><TR CLASS="cis"><TD CLASS="f">class <A HREF="#0">CatalogContributorRegistryReaderTest</A></TD><TD CLASS="h">0% (0/1)</TD><TD CLASS="h">0% (0/4)</TD><TD CLASS="h">0% (0/311)</TD><TD CLASS="h">0% (0/73)</TD></TR><TR><TD CLASS="f"><A HREF="#1">CatalogContributorRegistryReaderTest (String): void</A></TD><TD> </TD><TD CLASS="h">0% (0/1)</TD><TD CLASS="h">0% (0/4)</TD><TD CLASS="h">0% (0/2)</TD></TR><TR CLASS="o"><TD CLASS="f"><A HREF="#0">setUp (): void</A></TD><TD> </TD><TD CLASS="h">0% (0/1)</TD><TD CLASS="h">0% (0/3)</TD><TD CLASS="h">0% (0/2)</TD></TR><TR><TD CLASS="f"><A HREF="#3">tearDown (): void</A></TD><TD> </TD><TD CLASS="h">0% (0/1)</TD><TD CLASS="h">0% (0/3)</TD><TD CLASS="h">0% (0/2)</TD></TR><TR CLASS="o"><TD CLASS="f"><A HREF="#4">testReadRegistry (): void</A></TD><TD> </TD><TD CLASS="h">0% (0/1)</TD><TD CLASS="h">0% (0/301)</TD><TD CLASS="h">0% (0/67)</TD></TR></TABLE><P></P><TABLE CLASS="s" CELLSPACING="0" WIDTH="100%"><TR><TD CLASS="l">1</TD><TD>/*******************************************************************************</TD></TR><TR><TD CLASS="l">2</TD><TD> * Copyright (c) 2008 IBM Corporation and others.</TD></TR><TR><TD CLASS="l">3</TD><TD> * All rights reserved. This program and the accompanying materials</TD></TR><TR><TD CLASS="l">4</TD><TD> * are made available under the terms of the Eclipse Public License v1.0</TD></TR><TR><TD CLASS="l">5</TD><TD> * which accompanies this distribution, and is available at</TD></TR><TR><TD CLASS="l">6</TD><TD> * http://www.eclipse.org/legal/epl-v10.html</TD></TR><TR><TD CLASS="l">7</TD><TD> * </TD></TR><TR><TD CLASS="l">8</TD><TD> * Contributors:</TD></TR><TR><TD CLASS="l">9</TD><TD> * IBM Corporation - initial API and implementation</TD></TR><TR><TD CLASS="l">10</TD><TD> *******************************************************************************/</TD></TR><TR><TD CLASS="l">11</TD><TD> </TD></TR><TR><TD CLASS="l">12</TD><TD>package org.eclipse.wst.xml.catalog.tests.internal;</TD></TR><TR><TD CLASS="l">13</TD><TD> </TD></TR><TR><TD CLASS="l">14</TD><TD>import java.util.List;</TD></TR><TR><TD CLASS="l">15</TD><TD> </TD></TR><TR><TD CLASS="l">16</TD><TD>import org.eclipse.wst.xml.core.internal.XMLCorePlugin;</TD></TR><TR><TD CLASS="l">17</TD><TD>import org.eclipse.wst.xml.core.internal.catalog.provisional.ICatalog;</TD></TR><TR><TD CLASS="l">18</TD><TD>import org.eclipse.wst.xml.core.internal.catalog.provisional.ICatalogEntry;</TD></TR><TR><TD CLASS="l">19</TD><TD>import org.eclipse.wst.xml.core.internal.catalog.provisional.INextCatalog;</TD></TR><TR><TD CLASS="l">20</TD><TD> </TD></TR><TR><TD CLASS="l">21</TD><TD> </TD></TR><TR><TD CLASS="l">22</TD><TD> </TD></TR><TR><TD CLASS="l"><A NAME="0">23</A></TD><TD>public class CatalogContributorRegistryReaderTest extends AbstractCatalogTest</TD></TR><TR><TD CLASS="l">24</TD><TD>{</TD></TR><TR><TD CLASS="l">25</TD><TD> protected void setUp() throws Exception</TD></TR><TR><TD CLASS="l">26</TD><TD> {</TD></TR><TR CLASS="z"><TD CLASS="l">27</TD><TD> super.setUp();</TD></TR><TR CLASS="z"><TD CLASS="l"><A NAME="3">28</A></TD><TD> }</TD></TR><TR><TD CLASS="l">29</TD><TD> </TD></TR><TR><TD CLASS="l">30</TD><TD> protected void tearDown() throws Exception</TD></TR><TR><TD CLASS="l">31</TD><TD> {</TD></TR><TR CLASS="z"><TD CLASS="l">32</TD><TD> super.tearDown();</TD></TR><TR CLASS="z"><TD CLASS="l"><A NAME="1">33</A></TD><TD> }</TD></TR><TR><TD CLASS="l">34</TD><TD> </TD></TR><TR><TD CLASS="l">35</TD><TD> public CatalogContributorRegistryReaderTest(String name)</TD></TR><TR><TD CLASS="l">36</TD><TD> {</TD></TR><TR CLASS="z"><TD CLASS="l">37</TD><TD> super(name);</TD></TR><TR CLASS="z"><TD CLASS="l"><A NAME="4">38</A></TD><TD> }</TD></TR><TR><TD CLASS="l">39</TD><TD> </TD></TR><TR><TD CLASS="l">40</TD><TD> public final void testReadRegistry() throws Exception</TD></TR><TR><TD CLASS="l">41</TD><TD> {</TD></TR><TR CLASS="z"><TD CLASS="l">42</TD><TD> assertNotNull(defaultCatalog);</TD></TR><TR CLASS="z"><TD CLASS="l">43</TD><TD> assertEquals(XMLCorePlugin.DEFAULT_CATALOG_ID, defaultCatalog.getId());</TD></TR><TR CLASS="z"><TD CLASS="l">44</TD><TD> assertEquals(2, defaultCatalog.getNextCatalogs().length);</TD></TR><TR><TD CLASS="l">45</TD><TD> </TD></TR><TR CLASS="z"><TD CLASS="l">46</TD><TD> String pluginId = TestPlugin.getDefault().getBundle().getSymbolicName();</TD></TR><TR><TD CLASS="l">47</TD><TD> </TD></TR><TR><TD CLASS="l">48</TD><TD> // test system entries</TD></TR><TR CLASS="z"><TD CLASS="l">49</TD><TD> assertNotNull(systemCatalog);</TD></TR><TR CLASS="z"><TD CLASS="l">50</TD><TD> List entries = CatalogTest.getCatalogEntries(systemCatalog, ICatalogEntry.ENTRY_TYPE_SYSTEM);</TD></TR><TR CLASS="z"><TD CLASS="l">51</TD><TD> for (int i = 0; i < entries.size(); i++)</TD></TR><TR><TD CLASS="l">52</TD><TD> {</TD></TR><TR CLASS="z"><TD CLASS="l">53</TD><TD> ICatalogEntry entry = (ICatalogEntry)entries.get(i);</TD></TR><TR CLASS="z"><TD CLASS="l">54</TD><TD> if("testSystemId".equals(entry.getId()))</TD></TR><TR><TD CLASS="l">55</TD><TD> {</TD></TR><TR CLASS="z"><TD CLASS="l">56</TD><TD> String resolvedURI = resolvePath(pluginId, "data/Personal/personal.dtd");</TD></TR><TR CLASS="z"><TD CLASS="l">57</TD><TD> assertEquals(resolvedURI, entry.getURI());</TD></TR><TR CLASS="z"><TD CLASS="l">58</TD><TD> assertEquals("http://personal/personal.dtd", entry.getKey());</TD></TR><TR><TD CLASS="l">59</TD><TD> }</TD></TR><TR><TD CLASS="l">60</TD><TD> }</TD></TR><TR><TD CLASS="l">61</TD><TD> </TD></TR><TR><TD CLASS="l">62</TD><TD> // test public entries</TD></TR><TR CLASS="z"><TD CLASS="l">63</TD><TD> entries = CatalogTest.getCatalogEntries(systemCatalog, ICatalogEntry.ENTRY_TYPE_PUBLIC); </TD></TR><TR CLASS="z"><TD CLASS="l">64</TD><TD> for (int i = 0; i < entries.size(); i++)</TD></TR><TR><TD CLASS="l">65</TD><TD> {</TD></TR><TR CLASS="z"><TD CLASS="l">66</TD><TD> ICatalogEntry entry = (ICatalogEntry)entries.get(i);</TD></TR><TR CLASS="z"><TD CLASS="l">67</TD><TD> if("testPublicId1".equals(entry.getId()))</TD></TR><TR><TD CLASS="l">68</TD><TD> {</TD></TR><TR CLASS="z"><TD CLASS="l">69</TD><TD> String resolvedURI = resolvePath(pluginId, "data/Invoice/Invoice.dtd");</TD></TR><TR CLASS="z"><TD CLASS="l">70</TD><TD> assertEquals(resolvedURI, entry.getURI());</TD></TR><TR CLASS="z"><TD CLASS="l">71</TD><TD> assertEquals("InvoiceId_test", entry.getKey());</TD></TR><TR><TD CLASS="l">72</TD><TD> // test user defined attributes</TD></TR><TR CLASS="z"><TD CLASS="l">73</TD><TD> assertEquals("http://org.eclipse.wst.xml.example/Invoice.dtd", entry.getAttributeValue("webURL"));</TD></TR><TR><TD CLASS="l">74</TD><TD> </TD></TR><TR><TD CLASS="l">75</TD><TD> }</TD></TR><TR><TD CLASS="l">76</TD><TD> </TD></TR><TR CLASS="z"><TD CLASS="l">77</TD><TD> else if("testMappingInfo".equals(entry.getId()))</TD></TR><TR><TD CLASS="l">78</TD><TD> {</TD></TR><TR CLASS="z"><TD CLASS="l">79</TD><TD> String resolvedURI = resolvePath(pluginId, "platform:/plugin/org.eclipse.xsd/cache/www.w3.org/2001/XMLSchema.xsd");</TD></TR><TR CLASS="z"><TD CLASS="l">80</TD><TD> assertEquals(resolvedURI, entry.getURI());</TD></TR><TR CLASS="z"><TD CLASS="l">81</TD><TD> assertEquals("http://www.w3.org/2001/XMLSchema1", entry.getKey());</TD></TR><TR><TD CLASS="l">82</TD><TD> }</TD></TR><TR><TD CLASS="l">83</TD><TD> </TD></TR><TR><TD CLASS="l">84</TD><TD> }</TD></TR><TR><TD CLASS="l">85</TD><TD> </TD></TR><TR><TD CLASS="l">86</TD><TD> // test uri entries</TD></TR><TR CLASS="z"><TD CLASS="l">87</TD><TD> entries = CatalogTest.getCatalogEntries(systemCatalog, ICatalogEntry.ENTRY_TYPE_URI);</TD></TR><TR CLASS="z"><TD CLASS="l">88</TD><TD> for (int i = 0; i < entries.size(); i++)</TD></TR><TR><TD CLASS="l">89</TD><TD> {</TD></TR><TR CLASS="z"><TD CLASS="l">90</TD><TD> ICatalogEntry entry = (ICatalogEntry)entries.get(i);</TD></TR><TR CLASS="z"><TD CLASS="l">91</TD><TD> if("testURIId1".equals(entry.getId()))</TD></TR><TR><TD CLASS="l">92</TD><TD> {</TD></TR><TR CLASS="z"><TD CLASS="l">93</TD><TD> String resolvedURI = resolvePath(pluginId, "data/example/example.xsd");</TD></TR><TR CLASS="z"><TD CLASS="l">94</TD><TD> assertEquals(resolvedURI, entry.getURI());</TD></TR><TR CLASS="z"><TD CLASS="l">95</TD><TD> assertEquals("http://apache.org/xml/xcatalog/example", entry.getKey());</TD></TR><TR><TD CLASS="l">96</TD><TD> }</TD></TR><TR CLASS="z"><TD CLASS="l">97</TD><TD> else if("testURIId2".equals(entry.getId()))</TD></TR><TR><TD CLASS="l">98</TD><TD> {</TD></TR><TR CLASS="z"><TD CLASS="l">99</TD><TD> String resolvedURI = resolvePath(pluginId, "platform:/plugin/org.eclipse.xsd/cache/www.w3.org/2001/XMLSchema.xsd");</TD></TR><TR CLASS="z"><TD CLASS="l">100</TD><TD> assertEquals(resolvedURI, entry.getURI());</TD></TR><TR CLASS="z"><TD CLASS="l">101</TD><TD> assertEquals("http://www.w3.org/2001/XMLSchema", entry.getKey());</TD></TR><TR><TD CLASS="l">102</TD><TD> }</TD></TR><TR CLASS="z"><TD CLASS="l">103</TD><TD> else if("testURIId3".equals(entry.getId()))</TD></TR><TR><TD CLASS="l">104</TD><TD> {</TD></TR><TR CLASS="z"><TD CLASS="l">105</TD><TD> String resolvedURI = resolvePath(pluginId, "jar:platform:/plugin/org.eclipse.wst.xml.catalog.tests/data/schemas.jar!/data/catalog.xsd");</TD></TR><TR CLASS="z"><TD CLASS="l">106</TD><TD> assertEquals(resolvedURI, entry.getURI());</TD></TR><TR CLASS="z"><TD CLASS="l">107</TD><TD> assertEquals("http://oasis.names.tc.entity.xmlns.xml.catalog", entry.getKey());</TD></TR><TR><TD CLASS="l">108</TD><TD> }</TD></TR><TR><TD CLASS="l">109</TD><TD> }</TD></TR><TR><TD CLASS="l">110</TD><TD> </TD></TR><TR><TD CLASS="l">111</TD><TD> // test tested catalog</TD></TR><TR CLASS="z"><TD CLASS="l">112</TD><TD> INextCatalog[] nextCatalogEntries = systemCatalog.getNextCatalogs();</TD></TR><TR CLASS="z"><TD CLASS="l">113</TD><TD> for (int i = 0; i < nextCatalogEntries.length; i++)</TD></TR><TR><TD CLASS="l">114</TD><TD> {</TD></TR><TR CLASS="z"><TD CLASS="l">115</TD><TD> INextCatalog nextCatalogEntry = (INextCatalog) nextCatalogEntries[i];</TD></TR><TR CLASS="z"><TD CLASS="l">116</TD><TD> if("testNestedCatalog".equals(nextCatalogEntry.getId()))</TD></TR><TR><TD CLASS="l">117</TD><TD> {</TD></TR><TR CLASS="z"><TD CLASS="l">118</TD><TD> String resolvedURI = resolvePath(pluginId, "data/catalog1.xml");</TD></TR><TR CLASS="z"><TD CLASS="l">119</TD><TD> assertEquals(resolvedURI, nextCatalogEntry.getCatalogLocation());</TD></TR><TR CLASS="z"><TD CLASS="l">120</TD><TD> ICatalog nextCatalog = nextCatalogEntry.getReferencedCatalog();</TD></TR><TR CLASS="z"><TD CLASS="l">121</TD><TD> assertNotNull(nextCatalog);</TD></TR><TR CLASS="z"><TD CLASS="l">122</TD><TD> assertEquals(3, nextCatalog.getCatalogEntries().length);</TD></TR><TR><TD CLASS="l">123</TD><TD> // test public entries</TD></TR><TR CLASS="z"><TD CLASS="l">124</TD><TD> entries = CatalogTest.getCatalogEntries(nextCatalog,</TD></TR><TR CLASS="z"><TD CLASS="l">125</TD><TD> ICatalogEntry.ENTRY_TYPE_PUBLIC);</TD></TR><TR CLASS="z"><TD CLASS="l">126</TD><TD> assertEquals(1, entries.size());</TD></TR><TR CLASS="z"><TD CLASS="l">127</TD><TD> ICatalogEntry entry = (ICatalogEntry) entries.get(0);</TD></TR><TR><TD CLASS="l">128</TD><TD> //URI uri = URIHelper.getURIForFilePath(resolvedURI);</TD></TR><TR><TD CLASS="l">129</TD><TD> //resolvedURI = URIHelper.makeAbsolute(uri.toURL(), "./Invoice/Invoice.dtd");</TD></TR><TR CLASS="z"><TD CLASS="l">130</TD><TD> assertEquals(getFileLocation("data/Invoice/Invoice.dtd"), entry.getURI());</TD></TR><TR CLASS="z"><TD CLASS="l">131</TD><TD> assertEquals("InvoiceId_test", entry.getKey());</TD></TR><TR><TD CLASS="l">132</TD><TD> // test system entries</TD></TR><TR CLASS="z"><TD CLASS="l">133</TD><TD> entries = CatalogTest.getCatalogEntries(nextCatalog,</TD></TR><TR CLASS="z"><TD CLASS="l">134</TD><TD> ICatalogEntry.ENTRY_TYPE_SYSTEM);</TD></TR><TR CLASS="z"><TD CLASS="l">135</TD><TD> assertEquals(1, entries.size());</TD></TR><TR CLASS="z"><TD CLASS="l">136</TD><TD> entry = (ICatalogEntry) entries.get(0);</TD></TR><TR CLASS="z"><TD CLASS="l">137</TD><TD> assertEquals(getFileLocation("data/Invoice/Invoice.dtd"), entry.getURI());</TD></TR><TR CLASS="z"><TD CLASS="l">138</TD><TD> assertEquals("Invoice.dtd", entry.getKey());</TD></TR><TR><TD CLASS="l">139</TD><TD> // test uri entries</TD></TR><TR CLASS="z"><TD CLASS="l">140</TD><TD> entries = CatalogTest.getCatalogEntries(nextCatalog,</TD></TR><TR CLASS="z"><TD CLASS="l">141</TD><TD> ICatalogEntry.ENTRY_TYPE_URI);</TD></TR><TR CLASS="z"><TD CLASS="l">142</TD><TD> assertEquals(1, entries.size());</TD></TR><TR CLASS="z"><TD CLASS="l">143</TD><TD> entry = (ICatalogEntry) entries.get(0);</TD></TR><TR CLASS="z"><TD CLASS="l">144</TD><TD> assertEquals(getFileLocation("data/Invoice/Invoice.dtd"), entry.getURI());</TD></TR><TR CLASS="z"><TD CLASS="l">145</TD><TD> assertEquals("http://www.test.com/Invoice.dtd", entry.getKey());</TD></TR><TR><TD CLASS="l">146</TD><TD> }</TD></TR><TR><TD CLASS="l">147</TD><TD> }</TD></TR><TR CLASS="z"><TD CLASS="l">148</TD><TD> }</TD></TR><TR><TD CLASS="l">149</TD><TD>}</TD></TR></TABLE><P></P><TABLE CLASS="hdft" CELLSPACING="0" WIDTH="100%"><TR><TD CLASS="nv">[<A HREF="../xslUnitTestCoverage.html">all classes</A>][<A HREF="203.html">org.eclipse.wst.xml.catalog.tests.internal</A>]</TD></TR><TR><TD CLASS="tl"><A HREF="http://www.eclemma.org/support.html">EMMA 2.0.5312 EclEmma Fix 1</A> (C) Vladimir Roubtsov</TD></TR></TABLE></BODY></HTML>
\ No newline at end of file |