1 package com.melloware.jukes.db;
2
3 import org.apache.commons.lang.SystemUtils;
4
5 import com.melloware.jukes.AbstractTestCase;
6
7
8
9
10
11
12
13
14
15 public class DatabaseTest
16 extends AbstractTestCase {
17
18
19
20
21
22 public DatabaseTest(String arg0) {
23 super(arg0);
24 }
25
26 public static void main(String[] args) {
27 junit.textui.TestRunner.run(DatabaseTest.class);
28 }
29
30
31
32
33 public final void testGetJdbcURL() {
34 Database.startup(SystemUtils.JAVA_IO_TMPDIR + "db/db", "test");
35 Database.shutdown();
36 String url = Database.getJdbcURL();
37 assertNotNull(url);
38 }
39
40
41
42
43 public final void testSetWriteDelay() {
44
45
46
47 }
48
49
50
51
52 public final void testShutdown() {
53 Database.startup(SystemUtils.JAVA_IO_TMPDIR + "db/db", "test");
54 Database.shutdown();
55
56 }
57
58
59
60
61 public final void testStartup() {
62 Database.startup(SystemUtils.JAVA_IO_TMPDIR + "db/db", "test");
63 Database.shutdown();
64
65 }
66
67
68
69
70 protected void setUp()
71 throws Exception {
72 super.setUp();
73 }
74
75
76
77
78 protected void tearDown()
79 throws Exception {
80 super.tearDown();
81 }
82
83 }