1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 package de.bea.domingo;
24
25
26 /***
27 * @author MarcusT
28 */
29 public abstract class BaseItemProxyTest extends BaseProxyTest {
30
31 private String itemName = "TX_Test_for_domingo";
32
33 /***
34 * @param name the name of this test.
35 */
36 protected BaseItemProxyTest(String name) {
37 super(name);
38 }
39
40 /***
41 * Tests getName.
42 */
43 public final void testGetName() {
44 System.out.println("-> BaseItemProxy.testGetName");
45
46 DBaseItem item = createDBaseItem();
47 assertEquals("Received and expected name do not match.", itemName, item.getName());
48 }
49
50 /*** This method shall create a valid DBaseItem to test in this superior class.
51 * @return DBaseItem a valid instance.
52 */
53 protected abstract DBaseItem createDBaseItem();
54
55 /***
56 * Sets up the environment for every test.
57 */
58 public final void setUp() {
59 baseSetUp();
60 }
61
62 /*** @return a unique item name. */
63 public final String getItemName() {
64 return itemName;
65 }
66 }