@Override
public void render(RendererCellReference cell, Object data) {
- if (!warned) {
+ if (!warned && !(data instanceof String)) {
getLogger().warning(
Column.this.toString() + ": "
+ DEFAULT_RENDERER_WARNING);
import org.junit.Before;
import org.junit.Test;
+import com.vaadin.testbench.By;
import com.vaadin.testbench.elements.GridElement;
import com.vaadin.testbench.elements.NotificationElement;
import com.vaadin.testbench.elements.ServerClass;
@Before
public void init() {
+ setDebug(true);
openTestURL();
grid = $(MyGridElement.class).first();
assertFalse("There was an unexpected notification during init",
assertEquals("Second cell should've been populated ", "string", grid
.getCell(1, 0).getText());
}
+
+ @Test
+ public void testWarningShouldNotBeInDebugLog() {
+ assertFalse("Warning visible with string content.",
+ isElementPresent(By.xpath("//span[contains(.,'attached:#1')]")));
+ }
}