Commit c7c5604
Fix some tests (xerial#377)
* BusyHandlerTest should now be deterministic.
* Removed BusyHandlerTest.testInterrupt as it probably didn't test
what it was supposed to. The other two tests should be enough.
(The "expected" SQLException was a "query does not return ResultSet"
error because of executeQuery for insert instead of execute.)
* More verification in SQLiteJDBCLoaderTest.
* Make tests faster (run all tests in less than 2s instead of 20s).1 parent 2df4a6c commit c7c5604Copy full SHA for c7c5604
3 files changed
+56-67Lines changed: 56 additions & 67 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- src/test/java/org/sqlite
Expand file treeCollapse file tree
Open diff view settings
Collapse file
src/test/java/org/sqlite/BusyHandlerTest.java
Copy file name to clipboardExpand all lines: src/test/java/org/sqlite/BusyHandlerTest.java+49-67Lines changed: 49 additions & 67 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
8 | 8 | |
9 | 9 | |
10 | 10 | |
| 11 | + |
| 12 | + |
11 | 13 | |
12 | 14 | |
13 | 15 | |
| ||
31 | 33 | |
32 | 34 | |
33 | 35 | |
| 36 | + |
| 37 | + |
34 | 38 | |
35 | 39 | |
36 | 40 | |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
37 | 53 | |
38 | 54 | |
39 | 55 | |
40 | 56 | |
41 | 57 | |
42 | 58 | |
43 | | - |
44 | 59 | |
45 | | - |
46 | | - |
47 | | - |
48 | | - |
49 | | - |
50 | | - |
51 | | - |
52 | | - |
53 | | - |
54 | | - |
55 | | - |
56 | | - |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | + |
57 | 64 | |
58 | | - |
59 | | - |
60 | | - |
61 | | - |
62 | 65 | |
63 | 66 | |
64 | 67 | |
65 | | - |
66 | | - |
67 | | - |
68 | | - |
| 68 | + |
69 | 69 | |
70 | 70 | |
71 | 71 | |
72 | | - |
| 72 | + |
73 | 73 | |
74 | 74 | |
75 | 75 | |
| ||
94 | 94 | |
95 | 95 | |
96 | 96 | |
97 | | - |
98 | | - |
| 97 | + |
| 98 | + |
99 | 99 | |
100 | | - |
101 | | - |
102 | | - |
103 | | - |
104 | | - |
105 | | - |
| 100 | + |
| 101 | + |
| 102 | + |
| 103 | + |
| 104 | + |
106 | 105 | |
107 | 106 | |
108 | | - |
| 107 | + |
| 108 | + |
109 | 109 | |
110 | 110 | |
111 | 111 | |
| ||
128 | 128 | |
129 | 129 | |
130 | 130 | |
131 | | - |
132 | | - |
133 | | - |
134 | | - |
135 | | - |
136 | | - |
137 | | - |
138 | | - |
| 131 | + |
| 132 | + |
| 133 | + |
| 134 | + |
| 135 | + |
| 136 | + |
| 137 | + |
139 | 138 | |
| 139 | + |
| 140 | + |
140 | 141 | |
141 | 142 | |
142 | 143 | |
143 | 144 | |
144 | 145 | |
145 | 146 | |
146 | | - |
147 | | - |
148 | | - |
149 | | - |
150 | | - |
151 | | - |
152 | | - |
153 | | - |
| 147 | + |
| 148 | + |
| 149 | + |
| 150 | + |
| 151 | + |
| 152 | + |
| 153 | + |
154 | 154 | |
155 | 155 | |
156 | | - |
| 156 | + |
| 157 | + |
157 | 158 | |
158 | 159 | |
159 | | - |
160 | | - |
161 | | - |
162 | | - |
163 | | - |
164 | | - |
165 | | - |
166 | | - |
167 | | - |
168 | | - |
169 | | - |
170 | | - |
171 | | - |
172 | | - |
173 | | - |
174 | | - |
175 | | - |
176 | | - |
177 | | - |
178 | 160 | |
Collapse file
src/test/java/org/sqlite/SQLiteJDBCLoaderTest.java
Copy file name to clipboardExpand all lines: src/test/java/org/sqlite/SQLiteJDBCLoaderTest.java+5Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
36 | 36 | |
37 | 37 | |
38 | 38 | |
| 39 | + |
39 | 40 | |
40 | 41 | |
41 | 42 | |
| ||
117 | 118 | |
118 | 119 | |
119 | 120 | |
| 121 | + |
120 | 122 | |
121 | 123 | |
122 | 124 | |
| ||
136 | 138 | |
137 | 139 | |
138 | 140 | |
| 141 | + |
139 | 142 | |
140 | 143 | |
141 | 144 | |
| 145 | + |
142 | 146 | |
| 147 | + |
143 | 148 | |
144 | 149 | |
Collapse file
src/test/java/org/sqlite/TransactionTest.java
Copy file name to clipboardExpand all lines: src/test/java/org/sqlite/TransactionTest.java+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
80 | 80 | |
81 | 81 | |
82 | 82 | |
| 83 | + |
83 | 84 | |
84 | 85 | |
85 | 86 | |
| ||
308 | 309 | |
309 | 310 | |
310 | 311 | |
| 312 | + |
311 | 313 | |
312 | 314 | |
313 | 315 | |
|
0 commit comments