diff options
author | Artur Signell <artur@vaadin.com> | 2013-03-13 11:14:24 +0200 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2013-03-13 11:40:07 +0200 |
commit | 5cba827316eed64508ffb254edb95f303f44eab9 (patch) | |
tree | c0f54bcc226b3b2c24c16e459261be70305af836 /uitest/src/com/vaadin/tests/components/AbstractTestUIWithLog.java | |
parent | 499e13878e3cb3711b21c21406166cee72ba98bf (diff) | |
download | vaadin-framework-5cba827316eed64508ffb254edb95f303f44eab9.tar.gz vaadin-framework-5cba827316eed64508ffb254edb95f303f44eab9.zip |
Fixed client-server value sync problem in CheckBox (#11028)
Change-Id: I1bac8e8a746bcc97b3ce929e76cf3476ad793bf6
Diffstat (limited to 'uitest/src/com/vaadin/tests/components/AbstractTestUIWithLog.java')
-rw-r--r-- | uitest/src/com/vaadin/tests/components/AbstractTestUIWithLog.java | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/components/AbstractTestUIWithLog.java b/uitest/src/com/vaadin/tests/components/AbstractTestUIWithLog.java new file mode 100644 index 0000000000..cace7c3404 --- /dev/null +++ b/uitest/src/com/vaadin/tests/components/AbstractTestUIWithLog.java @@ -0,0 +1,36 @@ +/* + * Copyright 2000-2013 Vaadin Ltd. + * + * 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.vaadin.tests.components; + +import com.vaadin.server.VaadinRequest; +import com.vaadin.tests.util.Log; +import com.vaadin.ui.VerticalLayout; + +public abstract class AbstractTestUIWithLog extends AbstractTestUI { + + protected Log log = new Log(5); + + @Override + public void init(VaadinRequest request) { + super.init(request); + ((VerticalLayout) getContent()).addComponent(log, 0); + } + + protected void log(String message) { + log.log(message); + } + +} |