File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed
src/test/java/org/utplsql/api Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 4
4
5
5
import java .sql .SQLException ;
6
6
7
- import static org .junit .jupiter .api .Assertions .assertEquals ;
8
7
import static org .junit .jupiter .api .Assertions .assertNotNull ;
8
+ import static org .junit .jupiter .api .Assertions .assertTrue ;
9
9
10
10
public class DBHelperIT extends AbstractDatabaseTest {
11
11
12
12
@ Test
13
13
public void getFrameworkVersion () throws SQLException {
14
14
Version v = DBHelper .getDatabaseFrameworkVersion (getConnection ());
15
- assertEquals (true , v .isValid ());
15
+ assertTrue (v .isValid ());
16
+ System .out .println (v .getNormalizedString () + " - " + v .toString ());
16
17
}
17
18
18
19
@ Test
Original file line number Diff line number Diff line change @@ -19,6 +19,18 @@ public void versionPatternRecognitionFull() {
19
19
assertEquals ("3.1.3.1234" , v .getNormalizedString ());
20
20
}
21
21
22
+ @ Test
23
+ public void versionPatternRecognitionDevelop () {
24
+ Version v = new Version ("v3.1.3.2140-develop" );
25
+
26
+ assertEquals (3 , (long )v .getMajor ());
27
+ assertEquals (1 , (long )v .getMinor ());
28
+ assertEquals (3 , (long )v .getBugfix ());
29
+ assertEquals (2140 , (long )v .getBuild ());
30
+ assertTrue (v .isValid ());
31
+ assertEquals ("3.1.3.2140" , v .getNormalizedString ());
32
+ }
33
+
22
34
@ Test
23
35
public void versionPatternRecognitionPartial () {
24
36
Version v = new Version ("3.1.etc" );
You can’t perform that action at this time.
0 commit comments