blob: 4a9e4f989161bf77c0ee8161712fe293a8573e4e (
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
package com.vaadin.data.util;
/**
* Automated test for {@link AbstractBeanContainer}.
*
* Only a limited subset of the functionality is tested here, the rest in tests
* of subclasses including {@link BeanItemContainer} and {@link BeanContainer}.
*/
public abstract class AbstractBeanContainerTestBase
extends AbstractInMemoryContainerTestBase {
public static class Person {
private String name;
public Person(String name) {
setName(name);
}
public void setName(String name) {
this.name = name;
}
public String getName() {
return name;
}
}
public static class ClassName {
// field names match constants in parent test class
private String fullyQualifiedName;
private String simpleName;
private String reverseFullyQualifiedName;
private Integer idNumber;
public ClassName(String fullyQualifiedName, Integer idNumber) {
this.fullyQualifiedName = fullyQualifiedName;
simpleName = AbstractContainerTestBase
.getSimpleName(fullyQualifiedName);
reverseFullyQualifiedName = reverse(fullyQualifiedName);
this.idNumber = idNumber;
}
public String getFullyQualifiedName() {
return fullyQualifiedName;
}
public void setFullyQualifiedName(String fullyQualifiedName) {
this.fullyQualifiedName = fullyQualifiedName;
}
public String getSimpleName() {
return simpleName;
}
public void setSimpleName(String simpleName) {
this.simpleName = simpleName;
}
public String getReverseFullyQualifiedName() {
return reverseFullyQualifiedName;
}
public void setReverseFullyQualifiedName(
String reverseFullyQualifiedName) {
this.reverseFullyQualifiedName = reverseFullyQualifiedName;
}
public Integer getIdNumber() {
return idNumber;
}
public void setIdNumber(Integer idNumber) {
this.idNumber = idNumber;
}
}
}
|