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 44
55import java .sql .SQLException ;
66
7- import static org .junit .jupiter .api .Assertions .assertEquals ;
87import static org .junit .jupiter .api .Assertions .assertNotNull ;
8+ import static org .junit .jupiter .api .Assertions .assertTrue ;
99
1010public class DBHelperIT extends AbstractDatabaseTest {
1111
1212 @ Test
1313 public void getFrameworkVersion () throws SQLException {
1414 Version v = DBHelper .getDatabaseFrameworkVersion (getConnection ());
15- assertEquals (true , v .isValid ());
15+ assertTrue (v .isValid ());
16+ System .out .println (v .getNormalizedString () + " - " + v .toString ());
1617 }
1718
1819 @ Test
Original file line number Diff line number Diff line change @@ -19,6 +19,18 @@ public void versionPatternRecognitionFull() {
1919 assertEquals ("3.1.3.1234" , v .getNormalizedString ());
2020 }
2121
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+
2234 @ Test
2335 public void versionPatternRecognitionPartial () {
2436 Version v = new Version ("3.1.etc" );
You can’t perform that action at this time.
0 commit comments