blob: 1a683ad3730b6771bf8ec4e60ead2f2f3d2b266e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package com.vaadin.v7.ui;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
public class AbstractLegacyComponentTest {
AbstractLegacyComponent component = new AbstractLegacyComponent() {
};
@Test
public void testImmediate() {
assertTrue("Component should be immediate by default",
component.isImmediate());
component.setImmediate(false);
assertFalse(
"Explicitly non-immediate component should not be immediate",
component.isImmediate());
}
}
|