summaryrefslogtreecommitdiffstats
path: root/asdctool/src/main
diff options
context:
space:
mode:
authorvasraz <vasyl.razinkov@est.tech>2021-02-22 14:01:13 +0000
committerVasyl Razinkov <vasyl.razinkov@est.tech>2021-02-22 15:10:48 +0000
commit72b29baac0c1f08b610fd4daf2078b43ee74b3d8 (patch)
tree4d1bb5a225899fea804f109e0c0439f9d8f3944e /asdctool/src/main
parent1e12c6b9b28c49ed02ab8d2f156a6cf52cc305d7 (diff)
Remove testNG dependencies
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: Ib7632106f9fc0703a90ec3c41cebd5d22471adfd Issue-ID: SDC-3108
Diffstat (limited to 'asdctool/src/main')
-rw-r--r--asdctool/src/main/java/org/openecomp/sdc/asdctool/migration/core/DBVersion.java14
1 files changed, 4 insertions, 10 deletions
diff --git a/asdctool/src/main/java/org/openecomp/sdc/asdctool/migration/core/DBVersion.java b/asdctool/src/main/java/org/openecomp/sdc/asdctool/migration/core/DBVersion.java
index 17c3aea42c..a18ea69c4e 100644
--- a/asdctool/src/main/java/org/openecomp/sdc/asdctool/migration/core/DBVersion.java
+++ b/asdctool/src/main/java/org/openecomp/sdc/asdctool/migration/core/DBVersion.java
@@ -21,14 +21,16 @@
package org.openecomp.sdc.asdctool.migration.core;
import java.math.BigInteger;
+import lombok.Getter;
+@Getter
public class DBVersion implements Comparable<DBVersion>{
private static final String VERSION_PARTS_SEPARATOR = "\\.";
private static final int MAJOR_PART_IDX = 0;
private static final int MINOR_PART_IDX = 1;
- private BigInteger major;
- private BigInteger minor;
+ private final BigInteger major;
+ private final BigInteger minor;
/**
* The current db version. should be tested against real db to verify it is compatible to the db version
@@ -45,14 +47,6 @@ public class DBVersion implements Comparable<DBVersion>{
this.minor = BigInteger.valueOf(minor);
}
- public BigInteger getMajor() {
- return major;
- }
-
- public BigInteger getMinor() {
- return minor;
- }
-
public static DBVersion from(BigInteger major, BigInteger minor) {
return new DBVersion(major, minor);
}