|
16 | 16 | // under the License. |
17 | 17 | package com.cloud.upgrade; |
18 | 18 |
|
19 | | -import java.sql.SQLException; |
| 19 | +import static org.junit.Assert.assertArrayEquals; |
| 20 | +import static org.junit.Assert.assertEquals; |
| 21 | +import static org.junit.Assert.assertFalse; |
| 22 | +import static org.junit.Assert.assertNotNull; |
| 23 | +import static org.junit.Assert.assertTrue; |
| 24 | + |
20 | 25 | import java.lang.reflect.Field; |
21 | 26 | import java.sql.Connection; |
22 | 27 | import java.sql.PreparedStatement; |
23 | 28 | import java.sql.ResultSet; |
| 29 | +import java.sql.SQLException; |
24 | 30 |
|
25 | 31 | import javax.sql.DataSource; |
26 | 32 |
|
27 | 33 | import org.apache.cloudstack.utils.CloudStackVersion; |
28 | | -import org.checkerframework.checker.nullness.qual.NonNull; |
29 | | -import org.junit.Test; |
30 | | -import org.junit.Before; |
31 | 34 | import org.junit.After; |
| 35 | +import org.junit.Before; |
| 36 | +import org.junit.Test; |
32 | 37 | import org.junit.runner.RunWith; |
33 | | - |
34 | 38 | import org.mockito.ArgumentMatchers; |
35 | 39 | import org.mockito.Mock; |
36 | 40 | import org.mockito.Mockito; |
|
56 | 60 | import com.cloud.upgrade.dao.Upgrade471to480; |
57 | 61 | import com.cloud.upgrade.dao.Upgrade480to481; |
58 | 62 | import com.cloud.upgrade.dao.Upgrade490to4910; |
59 | | - |
60 | 63 | import com.cloud.utils.db.TransactionLegacy; |
61 | 64 |
|
62 | | -import static org.junit.Assert.assertTrue; |
63 | | -import static org.junit.Assert.assertFalse; |
64 | | -import static org.junit.Assert.assertNotNull; |
65 | | -import static org.junit.Assert.assertEquals; |
66 | | -import static org.junit.Assert.assertArrayEquals; |
67 | | - |
68 | 65 |
|
69 | 66 | @RunWith(MockitoJUnitRunner.class) |
70 | 67 | public class DatabaseUpgradeCheckerTest { |
|
0 commit comments