blob: 7ad70ef9ed6ce85ef5ac98a7cdb25be85d110957 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
package com.vaadin.tests.design.designroot;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import org.junit.Test;
public class DesignRootTest {
@Test
public void designAnnotationWithoutFilename() {
DesignWithEmptyAnnotation d = new DesignWithEmptyAnnotation();
assertNotNull(d.ok);
assertNotNull(d.CaNCEL);
assertEquals("original", d.preInitializedField.getValue());
}
@Test
public void designAnnotationWithFilename() {
DesignWithAnnotation d = new DesignWithAnnotation();
assertNotNull(d.ok);
assertNotNull(d.cancel);
assertEquals("original", d.preInitializedField.getValue());
}
@Test
public void extendedDesignAnnotationWithoutFilename() {
DesignWithEmptyAnnotation d = new ExtendedDesignWithEmptyAnnotation();
assertNotNull(d.ok);
assertNotNull(d.CaNCEL);
assertEquals("original", d.preInitializedField.getValue());
}
@Test
public void extendedDesignAnnotationWithFilename() {
DesignWithAnnotation d = new ExtendedDesignWithAnnotation();
assertNotNull(d.ok);
assertNotNull(d.cancel);
assertEquals("original", d.preInitializedField.getValue());
}
}
|