Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
add DBUnit data for testing glossary
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Huang committed Oct 23, 2012
1 parent 69716b4 commit efa9a16
Show file tree
Hide file tree
Showing 2 changed files with 93 additions and 3 deletions.
19 changes: 16 additions & 3 deletions zanata-war/src/test/java/org/zanata/DBUnitDataExtractor.java
Expand Up @@ -43,15 +43,16 @@ private void generateTestData(String dataSetName, List<Map.Entry<String, String>
dataSet.addTable(entry.getKey(), entry.getValue());
}

log.info("+++++ writing DBUnit data set to : {}", TEMP_DIR);
FlatDtdDataSet.write(dataSet, new FileOutputStream(new File(TEMP_DIR, dataSetName + ".dbunit.dtd")));
FlatXmlDataSet.write(dataSet, new FileOutputStream(new File(TEMP_DIR, dataSetName + ".dbunit.xml")));
File dbunitFile = new File(TEMP_DIR, dataSetName + ".dbunit.xml");
FlatXmlDataSet.write(dataSet, new FileOutputStream(dbunitFile));
log.info("dbunit file: {}", dbunitFile.getAbsolutePath());

jdbcConnection.close();
}

@Test
public void run() throws Exception
public void getTextFlowsAndTargets() throws Exception
{
List<Map.Entry<String, String>> tableNameAndQuery = Lists.newArrayList();

Expand All @@ -70,6 +71,18 @@ public void run() throws Exception
generateTestData("GetTransUnitListHandlerPerformanceTest", tableNameAndQuery);
}

@Test
public void getGlossary() throws Exception
{
List<Map.Entry<String, String>> tableNameAndQuery = Lists.newArrayList();

addEntry(tableNameAndQuery, "HLocale", "SELECT * FROM HLocale where id in (2, 5)");
addEntry(tableNameAndQuery, "HGlossaryEntry", "SELECT * FROM HGlossaryEntry");
addEntry(tableNameAndQuery, "HGlossaryTerm", "SELECT * FROM HGlossaryTerm");

generateTestData("GlossaryTest", tableNameAndQuery);
}

private static void addEntry(List<Map.Entry<String, String>> tableNameAndQuery, String table, String query)
{
tableNameAndQuery.add(new AbstractMap.SimpleEntry<String, String>(table, query));
Expand Down
77 changes: 77 additions & 0 deletions zanata-war/src/test/resources/performance/GlossaryTest.dbunit.xml
@@ -0,0 +1,77 @@
<?xml version='1.0' encoding='UTF-8'?>
<dataset>
<HLocale id="2" creationDate="2012-04-03 15:17:00.0" lastChanged="2012-04-03 15:17:00.0" versionNum="0" active="true" localeId="zh" enabledByDefault="true"/>
<HLocale id="5" creationDate="2012-04-03 15:26:34.0" lastChanged="2012-04-03 15:26:34.0" versionNum="0" active="true" localeId="en-US" enabledByDefault="true"/>
<HGlossaryEntry id="1" creationDate="2012-09-19 08:49:36.0" lastChanged="2012-09-19 08:49:36.0" versionNum="0" srcLocaleId="5" sourceRef=""/>
<HGlossaryEntry id="2" creationDate="2012-09-19 08:49:36.0" lastChanged="2012-09-19 08:49:36.0" versionNum="0" srcLocaleId="5" sourceRef=""/>
<HGlossaryEntry id="3" creationDate="2012-09-19 08:49:36.0" lastChanged="2012-09-19 08:49:36.0" versionNum="0" srcLocaleId="5" sourceRef=""/>
<HGlossaryEntry id="4" creationDate="2012-09-19 08:49:36.0" lastChanged="2012-09-19 08:49:36.0" versionNum="0" srcLocaleId="5" sourceRef=""/>
<HGlossaryEntry id="5" creationDate="2012-09-19 08:49:36.0" lastChanged="2012-09-19 08:49:36.0" versionNum="0" srcLocaleId="5" sourceRef=""/>
<HGlossaryEntry id="6" creationDate="2012-09-19 08:49:36.0" lastChanged="2012-09-19 08:49:36.0" versionNum="0" srcLocaleId="5" sourceRef=""/>
<HGlossaryEntry id="7" creationDate="2012-09-19 08:49:36.0" lastChanged="2012-09-19 08:49:36.0" versionNum="0" srcLocaleId="5" sourceRef=""/>
<HGlossaryEntry id="8" creationDate="2012-09-19 08:49:36.0" lastChanged="2012-09-19 08:49:36.0" versionNum="0" srcLocaleId="5" sourceRef=""/>
<HGlossaryEntry id="9" creationDate="2012-09-19 08:49:36.0" lastChanged="2012-09-19 08:49:36.0" versionNum="0" srcLocaleId="5" sourceRef=""/>
<HGlossaryEntry id="10" creationDate="2012-09-19 08:49:36.0" lastChanged="2012-09-19 08:49:36.0" versionNum="0" srcLocaleId="5" sourceRef=""/>
<HGlossaryEntry id="11" creationDate="2012-09-19 08:49:36.0" lastChanged="2012-09-19 08:49:36.0" versionNum="0" srcLocaleId="5" sourceRef=""/>
<HGlossaryEntry id="12" creationDate="2012-09-19 08:49:36.0" lastChanged="2012-09-19 08:49:36.0" versionNum="0" srcLocaleId="5" sourceRef=""/>
<HGlossaryEntry id="13" creationDate="2012-09-19 08:49:36.0" lastChanged="2012-09-19 08:49:36.0" versionNum="0" srcLocaleId="5" sourceRef=""/>
<HGlossaryEntry id="14" creationDate="2012-09-19 08:49:36.0" lastChanged="2012-09-19 08:49:36.0" versionNum="0" srcLocaleId="5" sourceRef=""/>
<HGlossaryEntry id="15" creationDate="2012-09-19 08:49:36.0" lastChanged="2012-09-19 08:49:36.0" versionNum="0" srcLocaleId="5" sourceRef=""/>
<HGlossaryEntry id="16" creationDate="2012-09-19 08:49:37.0" lastChanged="2012-09-19 08:49:37.0" versionNum="0" srcLocaleId="5" sourceRef=""/>
<HGlossaryEntry id="17" creationDate="2012-09-19 08:49:37.0" lastChanged="2012-09-19 08:49:37.0" versionNum="0" srcLocaleId="5" sourceRef=""/>
<HGlossaryEntry id="18" creationDate="2012-09-19 08:49:37.0" lastChanged="2012-09-19 08:49:37.0" versionNum="0" srcLocaleId="5" sourceRef=""/>
<HGlossaryEntry id="19" creationDate="2012-09-19 08:49:37.0" lastChanged="2012-09-19 08:49:37.0" versionNum="0" srcLocaleId="5" sourceRef=""/>
<HGlossaryEntry id="20" creationDate="2012-09-19 08:49:37.0" lastChanged="2012-09-19 08:49:37.0" versionNum="0" srcLocaleId="5" sourceRef=""/>
<HGlossaryEntry id="21" creationDate="2012-09-19 08:49:37.0" lastChanged="2012-09-19 08:49:37.0" versionNum="0" srcLocaleId="5" sourceRef=""/>
<HGlossaryEntry id="22" creationDate="2012-09-19 08:49:37.0" lastChanged="2012-09-19 08:49:37.0" versionNum="0" srcLocaleId="5" sourceRef=""/>
<HGlossaryEntry id="23" creationDate="2012-09-19 08:49:37.0" lastChanged="2012-09-19 08:49:37.0" versionNum="0" srcLocaleId="5" sourceRef=""/>
<HGlossaryEntry id="24" creationDate="2012-09-19 08:49:37.0" lastChanged="2012-09-19 08:49:37.0" versionNum="0" srcLocaleId="5" sourceRef=""/>
<HGlossaryTerm id="1" glossaryEntryId="1" localeId="2" content="Fedora 是一个开放的、创新的、前瞻性的操作系统和平台,基于 Linux,允许任何人自由地使用、修改和重发布,无论现在还是将来。它由一个庞大的社群开发,这个社群的成员以自己的不懈努力,提供并维护自由、开放源码的软件和开放的标准。Fedora 是 Fedora Project 的一部分,得到了 Red Hat, Inc. 的支持。" creationDate="2012-09-19 08:49:36.0" lastChanged="2012-09-19 08:49:36.0" versionNum="0"/>
<HGlossaryTerm id="2" glossaryEntryId="1" localeId="5" content="Fedora is an open, innovative, forward looking operating system and platform, based on Linux, that is always free for anyone to use, modify and distribute, now and forever. It is developed by a large community of people who strive to provide and maintain the very best in free, open source software and standards. Fedora is part of the Fedora Project, sponsored by Red Hat, Inc." creationDate="2012-09-19 08:49:36.0" lastChanged="2012-09-19 08:49:36.0" versionNum="0"/>
<HGlossaryTerm id="3" glossaryEntryId="2" localeId="2" content="访问 Fedora 社区 Wiki &lt;ulink url=&quot;http://fedoraproject.org/wiki/&quot; /&gt;" creationDate="2012-09-19 08:49:36.0" lastChanged="2012-09-19 08:49:36.0" versionNum="0"/>
<HGlossaryTerm id="4" glossaryEntryId="2" localeId="5" content="Visit the Fedora community Wiki at &lt;ulink url=&quot;http://fedoraproject.org/wiki/&quot; /&gt;." creationDate="2012-09-19 08:49:36.0" lastChanged="2012-09-19 08:49:36.0" versionNum="0"/>
<HGlossaryTerm id="5" glossaryEntryId="3" localeId="2" content="Fedora 文档" creationDate="2012-09-19 08:49:36.0" lastChanged="2012-09-19 08:49:36.0" versionNum="0"/>
<HGlossaryTerm id="6" glossaryEntryId="3" localeId="5" content="Fedora Documentation" creationDate="2012-09-19 08:49:36.0" lastChanged="2012-09-19 08:49:36.0" versionNum="0"/>
<HGlossaryTerm id="7" glossaryEntryId="4" localeId="2" content="Fedora 文档项目提供了 100% 自由开源软件(FLOSS)的内容、服务和工具。我们欢迎各种水平的志愿者和贡献者加入。请访问项目页面&lt;ulink url=&quot;http://fedoraproject.org/wiki/DocsProject&quot; /&gt;" creationDate="2012-09-19 08:49:36.0" lastChanged="2012-09-19 08:49:36.0" versionNum="0"/>
<HGlossaryTerm id="8" glossaryEntryId="4" localeId="5" content="The Fedora Documentation Project provides 100% Free/Libre Open Source Software (FLOSS) content, services, and tools for documentation. We welcome volunteers and contributors of all skill levels. Visit our Web page at &lt;ulink url=&quot;http://fedoraproject.org/wiki/DocsProject&quot; /&gt;." creationDate="2012-09-19 08:49:36.0" lastChanged="2012-09-19 08:49:36.0" versionNum="0"/>
<HGlossaryTerm id="9" glossaryEntryId="5" localeId="2" content="Fedora 翻译" creationDate="2012-09-19 08:49:36.0" lastChanged="2012-09-19 08:49:36.0" versionNum="0"/>
<HGlossaryTerm id="10" glossaryEntryId="5" localeId="5" content="Fedora Translation" creationDate="2012-09-19 08:49:36.0" lastChanged="2012-09-19 08:49:36.0" versionNum="0"/>
<HGlossaryTerm id="11" glossaryEntryId="6" localeId="2" content="Fedora 翻译项目的目标是翻译 Fedora 项目有关的软件和文档。请访问项目页面&lt;ulink url=&quot;http://fedoraproject.org/wiki/Translation&quot; /&gt;" creationDate="2012-09-19 08:49:36.0" lastChanged="2012-09-19 08:49:36.0" versionNum="0"/>
<HGlossaryTerm id="12" glossaryEntryId="6" localeId="5" content="The goal of the Translation Project is to translate the software and the documentation associated with the Fedora Project. Visit our Web page at &lt;ulink url=&quot;http://fedoraproject.org/wiki/Translation&quot; /&gt;." creationDate="2012-09-19 08:49:36.0" lastChanged="2012-09-19 08:49:36.0" versionNum="0"/>
<HGlossaryTerm id="13" glossaryEntryId="7" localeId="2" content="Fedora 除虫小组" creationDate="2012-09-19 08:49:36.0" lastChanged="2012-09-19 08:49:36.0" versionNum="0"/>
<HGlossaryTerm id="14" glossaryEntryId="7" localeId="5" content="Fedora Bug Squad" creationDate="2012-09-19 08:49:36.0" lastChanged="2012-09-19 08:49:36.0" versionNum="0"/>
<HGlossaryTerm id="15" glossaryEntryId="8" localeId="2" content="Fedora Bug Squad 的主要任务是跟踪和清除 &lt;ulink url=&quot;https://bugzilla.redhat.com/bugzilla&quot;&gt;Bugzilla&lt;/ulink&gt; 中与 Fedora 有关的bug,并做为用户和开发者间的桥梁。请访问页面&lt;ulink url=&quot;http://fedoraproject.org/wiki/BugZappers&quot; /&gt;" creationDate="2012-09-19 08:49:36.0" lastChanged="2012-09-19 08:49:36.0" versionNum="0"/>
<HGlossaryTerm id="16" glossaryEntryId="8" localeId="5" content="The primary mission of the Fedora Bug Squad is to track down and clear bugs in &lt;ulink url=&quot;https://bugzilla.redhat.com/bugzilla&quot;&gt;Bugzilla&lt;/ulink&gt; that are related to Fedora, and act as a bridge between users and developers. Visit our Web page at &lt;ulink url=&quot;http://fedoraproject.org/wiki/BugZappers&quot; /&gt;." creationDate="2012-09-19 08:49:36.0" lastChanged="2012-09-19 08:49:36.0" versionNum="0"/>
<HGlossaryTerm id="17" glossaryEntryId="9" localeId="2" content="Fedora 营销" creationDate="2012-09-19 08:49:36.0" lastChanged="2012-09-19 08:49:36.0" versionNum="0"/>
<HGlossaryTerm id="18" glossaryEntryId="9" localeId="5" content="Fedora Marketing" creationDate="2012-09-19 08:49:36.0" lastChanged="2012-09-19 08:49:36.0" versionNum="0"/>
<HGlossaryTerm id="19" glossaryEntryId="10" localeId="2" content="" creationDate="2012-09-19 08:49:36.0" lastChanged="2012-09-19 08:49:36.0" versionNum="0"/>
<HGlossaryTerm id="20" glossaryEntryId="10" localeId="5" content="The Fedora Marketing Project is the Fedora Project&amp;#39;s public voice. Our goal is to promote Fedora and to help promote other Linux and open source projects. Visit our Web page at &lt;ulink url=&quot;http://fedoraproject.org/wiki/Marketing&quot; /&gt;." creationDate="2012-09-19 08:49:36.0" lastChanged="2012-09-19 08:49:36.0" versionNum="0"/>
<HGlossaryTerm id="21" glossaryEntryId="11" localeId="2" content="Fedora 大使" creationDate="2012-09-19 08:49:36.0" lastChanged="2012-09-19 08:49:36.0" versionNum="0"/>
<HGlossaryTerm id="22" glossaryEntryId="11" localeId="5" content="Fedora Ambassadors" creationDate="2012-09-19 08:49:36.0" lastChanged="2012-09-19 08:49:36.0" versionNum="0"/>
<HGlossaryTerm id="23" glossaryEntryId="12" localeId="2" content="Fedora 大使是在其他 Linux 用户或潜在用户的聚集地,宣传 Fedora &amp;mdash; 包括项目和发行版本身 &amp;mdash; 的人。请访问页面&lt;ulink url=&quot;http://fedoraproject.org/wiki/Ambassadors&quot; /&gt;" creationDate="2012-09-19 08:49:36.0" lastChanged="2012-09-19 08:49:36.0" versionNum="0"/>
<HGlossaryTerm id="24" glossaryEntryId="12" localeId="5" content="Fedora Ambassadors are people who go to places where other Linux users and potential converts gather and tell them about Fedora &amp;mdash; the project and the distribution. Visit our Web page at &lt;ulink url=&quot;http://fedoraproject.org/wiki/Ambassadors&quot; /&gt;." creationDate="2012-09-19 08:49:36.0" lastChanged="2012-09-19 08:49:36.0" versionNum="0"/>
<HGlossaryTerm id="25" glossaryEntryId="13" localeId="2" content="Fedora 基础设施" creationDate="2012-09-19 08:49:36.0" lastChanged="2012-09-19 08:49:36.0" versionNum="0"/>
<HGlossaryTerm id="26" glossaryEntryId="13" localeId="5" content="Fedora Infrastructure" creationDate="2012-09-19 08:49:36.0" lastChanged="2012-09-19 08:49:36.0" versionNum="0"/>
<HGlossaryTerm id="27" glossaryEntryId="14" localeId="2" content="Fedora 基础设施项目是为了帮助所有 Fedora 贡献者以最少的代价和最高的效率完成自己的工作。信息技术这个保护伞包括构建系统 &lt;ulink url=&quot;http://fedoraproject.org/wiki/Infrastructure/AccountSystem&quot;&gt;Fedora用户系统&lt;/ulink&gt;&lt;ulink url=&quot;http://cvs.fedoraproject.org/&quot;&gt;CVS仓库&lt;/ulink&gt;&lt;ulink url=&quot;http://fedoraproject.org/wiki/Communicate&quot;&gt;邮件列表&lt;/ulink&gt;&lt;ulink url=&quot;http://fedoraproject.org/wiki/Websites&quot;&gt;网站&lt;/ulink&gt; 基础设施。请访问我们位于 &lt;ulink url=&quot;http://fedoraproject.org/wiki/Infrastructure&quot; /&gt;的网页。" creationDate="2012-09-19 08:49:36.0" lastChanged="2012-09-19 08:49:36.0" versionNum="0"/>
<HGlossaryTerm id="28" glossaryEntryId="14" localeId="5" content="The Fedora Infrastructure Project is about helping all Fedora contributors get their work done with minimum hassle and maximum efficiency. Information technology this umbrella include the build system, the &lt;ulink url=&quot;http://fedoraproject.org/wiki/Infrastructure/AccountSystem&quot;&gt;Fedora Account System&lt;/ulink&gt;, the &lt;ulink url=&quot;http://cvs.fedoraproject.org/&quot;&gt;CVS repositories&lt;/ulink&gt;, the &lt;ulink url=&quot;http://fedoraproject.org/wiki/Communicate&quot;&gt;mailing lists&lt;/ulink&gt;, and the &lt;ulink url=&quot;http://fedoraproject.org/wiki/Websites&quot;&gt;Websites&lt;/ulink&gt; infrastructure. Visit our Web site at &lt;ulink url=&quot;http://fedoraproject.org/wiki/Infrastructure&quot; /&gt;." creationDate="2012-09-19 08:49:36.0" lastChanged="2012-09-19 08:49:36.0" versionNum="0"/>
<HGlossaryTerm id="29" glossaryEntryId="15" localeId="2" content="Fedora 网站" creationDate="2012-09-19 08:49:36.0" lastChanged="2012-09-19 08:49:36.0" versionNum="0"/>
<HGlossaryTerm id="30" glossaryEntryId="15" localeId="5" content="Fedora Websites" creationDate="2012-09-19 08:49:36.0" lastChanged="2012-09-19 08:49:36.0" versionNum="0"/>
<HGlossaryTerm id="31" glossaryEntryId="16" localeId="2" content="Fedora 网站项目的创立目标是为了在互联网上推广 Fedora。关键的目标包括: " creationDate="2012-09-19 08:49:37.0" lastChanged="2012-09-19 08:49:37.0" versionNum="0"/>
<HGlossaryTerm id="32" glossaryEntryId="16" localeId="5" content="The Fedora Websites initiative aims to improve Fedora&amp;#39;s image on the Internet. The key goals of this effort include:" creationDate="2012-09-19 08:49:37.0" lastChanged="2012-09-19 08:49:37.0" versionNum="0"/>
<HGlossaryTerm id="33" glossaryEntryId="17" localeId="2" content="将所有关键的 Fedora 网站联合起来,成为统一的风格" creationDate="2012-09-19 08:49:37.0" lastChanged="2012-09-19 08:49:37.0" versionNum="0"/>
<HGlossaryTerm id="34" glossaryEntryId="17" localeId="5" content="Trying to consolidate all the key Fedora websites onto one uniform scheme" creationDate="2012-09-19 08:49:37.0" lastChanged="2012-09-19 08:49:37.0" versionNum="0"/>
<HGlossaryTerm id="35" glossaryEntryId="18" localeId="2" content="维护不属于任何特殊分类的内容" creationDate="2012-09-19 08:49:37.0" lastChanged="2012-09-19 08:49:37.0" versionNum="0"/>
<HGlossaryTerm id="36" glossaryEntryId="18" localeId="5" content="Maintaining the content that doesn&amp;#39;t fall under any particular sub-project" creationDate="2012-09-19 08:49:37.0" lastChanged="2012-09-19 08:49:37.0" versionNum="0"/>
<HGlossaryTerm id="37" glossaryEntryId="19" localeId="2" content="最后,将网站变得如同项目本身一般快乐而激动人心!" creationDate="2012-09-19 08:49:37.0" lastChanged="2012-09-19 08:49:37.0" versionNum="0"/>
<HGlossaryTerm id="38" glossaryEntryId="19" localeId="5" content="Generally, making the sites as fun and exciting as the project they represent!" creationDate="2012-09-19 08:49:37.0" lastChanged="2012-09-19 08:49:37.0" versionNum="0"/>
<HGlossaryTerm id="39" glossaryEntryId="20" localeId="2" content="请访问页面&lt;ulink url=&quot;http://fedoraproject.org/wiki/Websites&quot; /&gt;" creationDate="2012-09-19 08:49:37.0" lastChanged="2012-09-19 08:49:37.0" versionNum="0"/>
<HGlossaryTerm id="40" glossaryEntryId="20" localeId="5" content="Visit our Web page at &lt;ulink url=&quot;http://fedoraproject.org/wiki/Websites&quot; /&gt;." creationDate="2012-09-19 08:49:37.0" lastChanged="2012-09-19 08:49:37.0" versionNum="0"/>
<HGlossaryTerm id="41" glossaryEntryId="21" localeId="2" content="Fedora 美工" creationDate="2012-09-19 08:49:37.0" lastChanged="2012-09-19 08:49:37.0" versionNum="0"/>
<HGlossaryTerm id="42" glossaryEntryId="21" localeId="5" content="Fedora Artwork" creationDate="2012-09-19 08:49:37.0" lastChanged="2012-09-19 08:49:37.0" versionNum="0"/>
<HGlossaryTerm id="43" glossaryEntryId="22" localeId="2" content="把它变得漂亮一点是这里的主要任务。图标、桌面背景还有主题,这些都是 Fedora 美工项目的内容。请访问项目页面 &lt;ulink url=&quot;http://fedoraproject.org/wiki/Artwork&quot; /&gt;" creationDate="2012-09-19 08:49:37.0" lastChanged="2012-09-19 08:49:37.0" versionNum="0"/>
<HGlossaryTerm id="44" glossaryEntryId="22" localeId="5" content="Making things look pretty is the name of the game. Icons, desktop backgrounds, and themes are all parts of the Fedora Artwork Project. Visit our Web page at &lt;ulink url=&quot;http://fedoraproject.org/wiki/Artwork&quot; /&gt;." creationDate="2012-09-19 08:49:37.0" lastChanged="2012-09-19 08:49:37.0" versionNum="0"/>
<HGlossaryTerm id="45" glossaryEntryId="23" localeId="2" content="Fedora 博客聚集" creationDate="2012-09-19 08:49:37.0" lastChanged="2012-09-19 08:49:37.0" versionNum="0"/>
<HGlossaryTerm id="46" glossaryEntryId="23" localeId="5" content="Planet Fedora" creationDate="2012-09-19 08:49:37.0" lastChanged="2012-09-19 08:49:37.0" versionNum="0"/>
<HGlossaryTerm id="47" glossaryEntryId="24" localeId="2" content="您可以在我们的聚集页面,阅读许多 Fedora 贡献者的博客文章,位于 &lt;ulink url=&quot;http://planet.fedoraproject.org/&quot; /&gt;" creationDate="2012-09-19 08:49:37.0" lastChanged="2012-09-19 08:49:37.0" versionNum="0"/>
<HGlossaryTerm id="48" glossaryEntryId="24" localeId="5" content="You can read weblogs of many Fedora contributors at our official aggregator, &lt;ulink url=&quot;http://planet.fedoraproject.org/&quot; /&gt;." creationDate="2012-09-19 08:49:37.0" lastChanged="2012-09-19 08:49:37.0" versionNum="0"/>
</dataset>

0 comments on commit efa9a16

Please sign in to comment.