Revision: 6555 Author: rj...@google.com Date: Thu Oct 29 22:03:43 2009 Log: Fixes warnings in XMLElementTest, and fixes UiBinderJreSuite to actually run the parser tests.
TBR rice http://code.google.com/p/google-web-toolkit/source/detail?r=6555 Modified: /trunk/user/test/com/google/gwt/uibinder/UiBinderJreSuite.java /trunk/user/test/com/google/gwt/uibinder/rebind/XMLElementTest.java ======================================= --- /trunk/user/test/com/google/gwt/uibinder/UiBinderJreSuite.java Tue Oct 6 09:46:04 2009 +++ /trunk/user/test/com/google/gwt/uibinder/UiBinderJreSuite.java Thu Oct 29 22:03:43 2009 @@ -15,6 +15,10 @@ */ package com.google.gwt.uibinder; +import com.google.gwt.uibinder.parsers.FieldReferenceConverterTest; +import com.google.gwt.uibinder.parsers.SimpleAttributeParserTest; +import com.google.gwt.uibinder.parsers.StrictAttributeParserTest; +import com.google.gwt.uibinder.parsers.StringAttributeParserTest; import com.google.gwt.uibinder.rebind.GwtResourceEntityResolverTest; import com.google.gwt.uibinder.rebind.HandlerEvaluatorTest; import com.google.gwt.uibinder.rebind.TokenatorTest; @@ -44,6 +48,12 @@ suite.addTestSuite(OwnerFieldClassTest.class); suite.addTestSuite(OwnerFieldTest.class); + // parsers + suite.addTestSuite(FieldReferenceConverterTest.class); + suite.addTestSuite(SimpleAttributeParserTest.class); + suite.addTestSuite(StrictAttributeParserTest.class); + suite.addTestSuite(StringAttributeParserTest.class); + return suite; } ======================================= --- /trunk/user/test/com/google/gwt/uibinder/rebind/XMLElementTest.java Thu Oct 29 21:43:40 2009 +++ /trunk/user/test/com/google/gwt/uibinder/rebind/XMLElementTest.java Thu Oct 29 22:03:43 2009 @@ -115,7 +115,7 @@ } private void appendText(final String text) { - Text t = doc.createTextNode(STRING_WITH_DOUBLEQUOTE); + Text t = doc.createTextNode(text); item.appendChild(t); } @@ -129,13 +129,11 @@ assertEquals("", elm.consumeUnescapedInnerText()); } - public void testEmptyStringOnMissingAttribute() - throws ParserConfigurationException, SAXException, IOException { + public void testEmptyStringOnMissingAttribute() { assertEquals("", elm.consumeAttribute("fnord")); } - public void testIterator() throws ParserConfigurationException, SAXException, - IOException { + public void testIterator() { String[] expecteds = {"attr1", "attr2"}; Set<String> seen = new HashSet<String>(); for (int i = elm.getAttributeCount() - 1; i >= 0; i--) { --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~----------~----~----~----~------~----~------~--~---