Revision: 6612 Author: [email protected] Date: Tue Nov 3 12:16:32 2009 Log: Checkstyle fixes for UiBinder tests
Patch by jat review by rjrjr http://code.google.com/p/google-web-toolkit/source/detail?r=6612 Modified: /trunk/user/test/com/google/gwt/uibinder/All.java /trunk/user/test/com/google/gwt/uibinder/parsers/IntAttributeParserTest.java /trunk/user/test/com/google/gwt/uibinder/rebind/DummyMortalLogger.java /trunk/user/test/com/google/gwt/uibinder/test/client/EnumeratedLabel.java ======================================= --- /trunk/user/test/com/google/gwt/uibinder/All.java Mon Nov 2 12:47:15 2009 +++ /trunk/user/test/com/google/gwt/uibinder/All.java Tue Nov 3 12:16:32 2009 @@ -1,3 +1,18 @@ +/* + * Copyright 2009 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ package com.google.gwt.uibinder; import com.google.gwt.junit.tools.GWTTestSuite; @@ -9,6 +24,10 @@ * does not end in Suite to keep ant from running it redundantly. */ public class All { + + /** + * @return a test suite containing all the UiBinder tests. + */ public static Test suite() { GWTTestSuite suite = new GWTTestSuite("All UiBinder tests"); ======================================= --- /trunk/user/test/com/google/gwt/uibinder/parsers/IntAttributeParserTest.java Mon Nov 2 12:47:15 2009 +++ /trunk/user/test/com/google/gwt/uibinder/parsers/IntAttributeParserTest.java Tue Nov 3 12:16:32 2009 @@ -1,3 +1,18 @@ +/* + * Copyright 2009 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ package com.google.gwt.uibinder.parsers; import com.google.gwt.core.ext.UnableToCompleteException; @@ -5,6 +20,9 @@ import junit.framework.TestCase; +/** + * Test parsing integer attributes. + */ public class IntAttributeParserTest extends TestCase { private IntAttributeParser parser; private DummyMortalLogger logger; ======================================= --- /trunk/user/test/com/google/gwt/uibinder/rebind/DummyMortalLogger.java Mon Nov 2 12:47:15 2009 +++ /trunk/user/test/com/google/gwt/uibinder/rebind/DummyMortalLogger.java Tue Nov 3 12:16:32 2009 @@ -15,6 +15,9 @@ */ package com.google.gwt.uibinder.rebind; +/** + * A MortalLogger using a dummy logger. + */ public class DummyMortalLogger extends MortalLogger { public DummyMortalLogger() { super(new DummyTreeLogger()); ======================================= --- /trunk/user/test/com/google/gwt/uibinder/test/client/EnumeratedLabel.java Mon Nov 2 20:08:34 2009 +++ /trunk/user/test/com/google/gwt/uibinder/test/client/EnumeratedLabel.java Tue Nov 3 12:16:32 2009 @@ -1,8 +1,30 @@ +/* + * Copyright 2009 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ package com.google.gwt.uibinder.test.client; import com.google.gwt.user.client.ui.Label; +/** + * A label that has an enum, to test UiBinder enum parsing. + */ public class EnumeratedLabel extends Label { + + /** + * An enum representing the suffix type. + */ public enum Suffix { ending, suffix, tail} private Suffix suffix = Suffix.ending; --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~----------~----~----~----~------~----~------~--~---
