summaryrefslogtreecommitdiffstats
path: root/asdctool/src/test
diff options
context:
space:
mode:
authorTal Gitelman <tg851x@intl.att.com>2018-04-30 19:06:20 +0300
committerYuli Shlosberg <ys9693@att.com>2018-05-01 11:31:43 +0000
commit2ef3886c9b0223f4813ac1385318d6f2e600a4a8 (patch)
tree7d03279f2302ddd7e36d23a1d501df296c6a4a60 /asdctool/src/test
parent4e1599dabb55107466892405bb856396522ff132 (diff)
Remove dead code asdctool
Change-Id: I467f70b442a02a15b8a18b160309bac9a8ab3f9a Issue-ID: SDC-1270 Signed-off-by: Tal Gitelman <tg851x@intl.att.com>
Diffstat (limited to 'asdctool/src/test')
-rw-r--r--asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/config/ValidationConfigManagerTest.java10
-rw-r--r--asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/config/ValidationToolConfigurationTest.java40
-rw-r--r--asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/executers/ServiceValidatorExecuterTest.java2
-rw-r--r--asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/executers/TopologyTemplateValidatorExecuterTest.java4
-rw-r--r--asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/executers/VfValidatorExecuterTest.java2
-rw-r--r--asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/tasks/artifacts/ArtifactsVertexResultTest.java4
-rw-r--r--asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/utils/ElementTypeEnumTest.java12
-rw-r--r--asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/utils/ValidationTaskResultTest.java12
-rw-r--r--asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/utils/VertexResultTest.java6
-rw-r--r--asdctool/src/test/java/org/openecomp/sdc/asdctool/migration/core/DBVersionTest.java2
-rw-r--r--asdctool/src/test/java/org/openecomp/sdc/asdctool/migration/core/SdcMigrationToolTest.java8
-rw-r--r--asdctool/src/test/java/org/openecomp/sdc/asdctool/migration/core/execution/MigrationExecutorImplTest.java2
-rw-r--r--asdctool/src/test/java/org/openecomp/sdc/asdctool/migration/core/task/MigrationResultTest.java8
-rw-r--r--asdctool/src/test/java/org/openecomp/sdc/asdctool/migration/resolver/SpringBeansMigrationResolverTest.java8
-rw-r--r--asdctool/src/test/java/org/openecomp/sdc/asdctool/migration/service/SdcRepoServiceTest.java8
-rw-r--r--asdctool/src/test/java/org/openecomp/sdc/asdctool/migration/task/MigrationTasksTest.java6
-rw-r--r--asdctool/src/test/java/org/openecomp/sdc/asdctool/servlets/EntryPointTest.java2
17 files changed, 68 insertions, 68 deletions
diff --git a/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/config/ValidationConfigManagerTest.java b/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/config/ValidationConfigManagerTest.java
index 6adbdccf1d..1dd5926cc5 100644
--- a/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/config/ValidationConfigManagerTest.java
+++ b/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/config/ValidationConfigManagerTest.java
@@ -13,7 +13,7 @@ public class ValidationConfigManagerTest {
@Test
- public void testGetOutputFilePath() throws Exception {
+ public void testGetOutputFilePath() {
String result;
// default test
@@ -21,7 +21,7 @@ public class ValidationConfigManagerTest {
}
@Test
- public void testGetCsvReportFilePath() throws Exception {
+ public void testGetCsvReportFilePath() {
String result;
// default test
@@ -30,7 +30,7 @@ public class ValidationConfigManagerTest {
@Test
- public void testSetCsvReportFilePath() throws Exception {
+ public void testSetCsvReportFilePath() {
String outputPath = "";
// default test
@@ -39,7 +39,7 @@ public class ValidationConfigManagerTest {
@Test
- public void testSetValidationConfiguration() throws Exception {
+ public void testSetValidationConfiguration() {
String path = "";
Properties result;
@@ -49,7 +49,7 @@ public class ValidationConfigManagerTest {
@Test
- public void testGetValidationConfiguration() throws Exception {
+ public void testGetValidationConfiguration() {
Properties result;
// default test
diff --git a/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/config/ValidationToolConfigurationTest.java b/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/config/ValidationToolConfigurationTest.java
index fb916541c0..8dc2c4f0ec 100644
--- a/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/config/ValidationToolConfigurationTest.java
+++ b/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/config/ValidationToolConfigurationTest.java
@@ -32,7 +32,7 @@ public class ValidationToolConfigurationTest {
@Test
- public void testBasicServiceValidator() throws Exception {
+ public void testBasicServiceValidator() {
ValidationToolConfiguration testSubject;
ServiceValidatorExecuter result;
@@ -43,7 +43,7 @@ public class ValidationToolConfigurationTest {
@Test
- public void testVfArtifactValidationTask() throws Exception {
+ public void testVfArtifactValidationTask() {
ValidationToolConfiguration testSubject;
VfArtifactValidationTask result;
@@ -54,7 +54,7 @@ public class ValidationToolConfigurationTest {
@Test
- public void testServiceArtifactValidationTask() throws Exception {
+ public void testServiceArtifactValidationTask() {
ValidationToolConfiguration testSubject;
ServiceArtifactValidationTask result;
@@ -65,7 +65,7 @@ public class ValidationToolConfigurationTest {
@Test
- public void testModuleJsonTask() throws Exception {
+ public void testModuleJsonTask() {
ValidationToolConfiguration testSubject;
ModuleJsonTask result;
@@ -76,7 +76,7 @@ public class ValidationToolConfigurationTest {
@Test
- public void testValidationToolBL() throws Exception {
+ public void testValidationToolBL() {
ValidationToolConfiguration testSubject;
ValidationToolBL result;
@@ -87,7 +87,7 @@ public class ValidationToolConfigurationTest {
@Test
- public void testBasicVfValidator() throws Exception {
+ public void testBasicVfValidator() {
ValidationToolConfiguration testSubject;
VfValidatorExecuter result;
@@ -97,7 +97,7 @@ public class ValidationToolConfigurationTest {
}
@Test
- public void testArtifactCassandraDao() throws Exception {
+ public void testArtifactCassandraDao() {
ValidationToolConfiguration testSubject;
ArtifactCassandraDao result;
@@ -108,7 +108,7 @@ public class ValidationToolConfigurationTest {
@Test
- public void testArtifactValidationUtils() throws Exception {
+ public void testArtifactValidationUtils() {
ValidationToolConfiguration testSubject;
ArtifactValidationUtils result;
@@ -119,7 +119,7 @@ public class ValidationToolConfigurationTest {
@Test
- public void testJsonGroupsOperation() throws Exception {
+ public void testJsonGroupsOperation() {
ValidationToolConfiguration testSubject;
GroupsOperation result;
@@ -130,7 +130,7 @@ public class ValidationToolConfigurationTest {
@Test
- public void testCassandraClient() throws Exception {
+ public void testCassandraClient() {
ValidationToolConfiguration testSubject;
CassandraClient result;
@@ -141,7 +141,7 @@ public class ValidationToolConfigurationTest {
@Test
- public void testDaoStrategy() throws Exception {
+ public void testDaoStrategy() {
ValidationToolConfiguration testSubject;
TitanClientStrategy result;
@@ -155,7 +155,7 @@ public class ValidationToolConfigurationTest {
@Test
- public void testToscaOperationFacade() throws Exception {
+ public void testToscaOperationFacade() {
ValidationToolConfiguration testSubject;
ToscaOperationFacade result;
@@ -166,7 +166,7 @@ public class ValidationToolConfigurationTest {
@Test
- public void testNodeTypeOperation() throws Exception {
+ public void testNodeTypeOperation() {
ValidationToolConfiguration testSubject;
DerivedNodeTypeResolver migrationDerivedNodeTypeResolver = null;
NodeTypeOperation result;
@@ -178,7 +178,7 @@ public class ValidationToolConfigurationTest {
@Test
- public void testTopologyTemplateOperation() throws Exception {
+ public void testTopologyTemplateOperation() {
ValidationToolConfiguration testSubject;
TopologyTemplateOperation result;
@@ -192,7 +192,7 @@ public class ValidationToolConfigurationTest {
@Test
- public void testMigrationDerivedNodeTypeResolver() throws Exception {
+ public void testMigrationDerivedNodeTypeResolver() {
ValidationToolConfiguration testSubject;
DerivedNodeTypeResolver result;
@@ -203,7 +203,7 @@ public class ValidationToolConfigurationTest {
@Test
- public void testTitanDao() throws Exception {
+ public void testTitanDao() {
ValidationToolConfiguration testSubject;
TitanGraphClient titanGraphClient = null;
TitanDao result;
@@ -215,7 +215,7 @@ public class ValidationToolConfigurationTest {
@Test
- public void testCategoryOperation() throws Exception {
+ public void testCategoryOperation() {
ValidationToolConfiguration testSubject;
CategoryOperation result;
@@ -226,7 +226,7 @@ public class ValidationToolConfigurationTest {
@Test
- public void testArtifactsOperation() throws Exception {
+ public void testArtifactsOperation() {
ValidationToolConfiguration testSubject;
ArtifactsOperations result;
@@ -237,7 +237,7 @@ public class ValidationToolConfigurationTest {
@Test
- public void testToscaDataOperation() throws Exception {
+ public void testToscaDataOperation() {
ValidationToolConfiguration testSubject;
ToscaDataOperation result;
@@ -248,7 +248,7 @@ public class ValidationToolConfigurationTest {
@Test
- public void testToscaElementLifecycleOperation() throws Exception {
+ public void testToscaElementLifecycleOperation() {
ValidationToolConfiguration testSubject;
ToscaElementLifecycleOperation result;
diff --git a/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/executers/ServiceValidatorExecuterTest.java b/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/executers/ServiceValidatorExecuterTest.java
index 05acd9aa6f..890bdfd002 100644
--- a/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/executers/ServiceValidatorExecuterTest.java
+++ b/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/executers/ServiceValidatorExecuterTest.java
@@ -14,7 +14,7 @@ public class ServiceValidatorExecuterTest {
@Test
- public void testGetName() throws Exception {
+ public void testGetName() {
ServiceValidatorExecuter testSubject;
String result;
diff --git a/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/executers/TopologyTemplateValidatorExecuterTest.java b/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/executers/TopologyTemplateValidatorExecuterTest.java
index 3747d7fd09..f3fdebe8e9 100644
--- a/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/executers/TopologyTemplateValidatorExecuterTest.java
+++ b/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/executers/TopologyTemplateValidatorExecuterTest.java
@@ -11,7 +11,7 @@ public class TopologyTemplateValidatorExecuterTest {
@Test
- public void testSetName() throws Exception {
+ public void testSetName() {
TopologyTemplateValidatorExecuter testSubject;
String name = "";
@@ -22,7 +22,7 @@ public class TopologyTemplateValidatorExecuterTest {
@Test
- public void testGetName() throws Exception {
+ public void testGetName() {
TopologyTemplateValidatorExecuter testSubject;
String result;
diff --git a/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/executers/VfValidatorExecuterTest.java b/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/executers/VfValidatorExecuterTest.java
index 12136df609..83dac8a35a 100644
--- a/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/executers/VfValidatorExecuterTest.java
+++ b/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/executers/VfValidatorExecuterTest.java
@@ -12,7 +12,7 @@ public class VfValidatorExecuterTest {
@Test
- public void testGetName() throws Exception {
+ public void testGetName() {
VfValidatorExecuter testSubject;
String result;
diff --git a/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/tasks/artifacts/ArtifactsVertexResultTest.java b/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/tasks/artifacts/ArtifactsVertexResultTest.java
index 8ba509cf9c..d16c3fc555 100644
--- a/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/tasks/artifacts/ArtifactsVertexResultTest.java
+++ b/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/tasks/artifacts/ArtifactsVertexResultTest.java
@@ -11,7 +11,7 @@ public class ArtifactsVertexResultTest {
@Test
- public void testAddNotFoundArtifact() throws Exception {
+ public void testAddNotFoundArtifact() {
ArtifactsVertexResult testSubject;
String artifactId = "";
@@ -22,7 +22,7 @@ public class ArtifactsVertexResultTest {
@Test
- public void testGetResult() throws Exception {
+ public void testGetResult() {
ArtifactsVertexResult testSubject;
String result;
diff --git a/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/utils/ElementTypeEnumTest.java b/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/utils/ElementTypeEnumTest.java
index 7467699fc0..e6e564e709 100644
--- a/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/utils/ElementTypeEnumTest.java
+++ b/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/utils/ElementTypeEnumTest.java
@@ -13,7 +13,7 @@ public class ElementTypeEnumTest {
@Test
- public void testGetByType() throws Exception {
+ public void testGetByType() {
String elementType = "";
ElementTypeEnum result;
@@ -23,7 +23,7 @@ public class ElementTypeEnumTest {
@Test
- public void testGetAllTypes() throws Exception {
+ public void testGetAllTypes() {
List<String> result;
// default test
@@ -32,7 +32,7 @@ public class ElementTypeEnumTest {
@Test
- public void testGetElementType() throws Exception {
+ public void testGetElementType() {
ElementTypeEnum testSubject;
String result;
@@ -43,7 +43,7 @@ public class ElementTypeEnumTest {
@Test
- public void testSetElementType() throws Exception {
+ public void testSetElementType() {
ElementTypeEnum testSubject;
String elementType = "";
@@ -54,7 +54,7 @@ public class ElementTypeEnumTest {
@Test
- public void testGetClazz() throws Exception {
+ public void testGetClazz() {
ElementTypeEnum testSubject;
Class result;
@@ -65,7 +65,7 @@ public class ElementTypeEnumTest {
@Test
- public void testSetClazz() throws Exception {
+ public void testSetClazz() {
ElementTypeEnum testSubject;
Class clazz = null;
diff --git a/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/utils/ValidationTaskResultTest.java b/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/utils/ValidationTaskResultTest.java
index d51075bc89..78ef2e629f 100644
--- a/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/utils/ValidationTaskResultTest.java
+++ b/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/utils/ValidationTaskResultTest.java
@@ -12,7 +12,7 @@ public class ValidationTaskResultTest {
@Test
- public void testGetName() throws Exception {
+ public void testGetName() {
ValidationTaskResult testSubject;
String result;
@@ -23,7 +23,7 @@ public class ValidationTaskResultTest {
@Test
- public void testSetName() throws Exception {
+ public void testSetName() {
ValidationTaskResult testSubject;
String name = "";
@@ -34,7 +34,7 @@ public class ValidationTaskResultTest {
@Test
- public void testGetResultMessage() throws Exception {
+ public void testGetResultMessage() {
ValidationTaskResult testSubject;
String result;
@@ -45,7 +45,7 @@ public class ValidationTaskResultTest {
@Test
- public void testSetResultMessage() throws Exception {
+ public void testSetResultMessage() {
ValidationTaskResult testSubject;
String resultMessage = "";
@@ -56,7 +56,7 @@ public class ValidationTaskResultTest {
@Test
- public void testIsSuccessful() throws Exception {
+ public void testIsSuccessful() {
ValidationTaskResult testSubject;
boolean result;
@@ -67,7 +67,7 @@ public class ValidationTaskResultTest {
@Test
- public void testSetSuccessful() throws Exception {
+ public void testSetSuccessful() {
ValidationTaskResult testSubject;
boolean successful = false;
diff --git a/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/utils/VertexResultTest.java b/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/utils/VertexResultTest.java
index 9b44eef1f5..d65fb001f8 100644
--- a/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/utils/VertexResultTest.java
+++ b/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/utils/VertexResultTest.java
@@ -11,7 +11,7 @@ public class VertexResultTest {
@Test
- public void testGetStatus() throws Exception {
+ public void testGetStatus() {
VertexResult testSubject;
boolean result;
@@ -22,7 +22,7 @@ public class VertexResultTest {
@Test
- public void testSetStatus() throws Exception {
+ public void testSetStatus() {
VertexResult testSubject;
boolean status = false;
@@ -33,7 +33,7 @@ public class VertexResultTest {
@Test
- public void testGetResult() throws Exception {
+ public void testGetResult() {
VertexResult testSubject;
String result;
diff --git a/asdctool/src/test/java/org/openecomp/sdc/asdctool/migration/core/DBVersionTest.java b/asdctool/src/test/java/org/openecomp/sdc/asdctool/migration/core/DBVersionTest.java
index afdd0d6da8..d5473cd121 100644
--- a/asdctool/src/test/java/org/openecomp/sdc/asdctool/migration/core/DBVersionTest.java
+++ b/asdctool/src/test/java/org/openecomp/sdc/asdctool/migration/core/DBVersionTest.java
@@ -51,7 +51,7 @@ public class DBVersionTest {
}
@Test(dataProvider = "versionComparisionProvider")
- public void testVersionCompareTo2(String firstVersion, String otherVersion, int expectedComparisionResult) throws Exception {
+ public void testVersionCompareTo2(String firstVersion, String otherVersion, int expectedComparisionResult) {
assertEquals(DBVersion.fromString(firstVersion).compareTo(DBVersion.fromString(otherVersion)), expectedComparisionResult);
}
}
diff --git a/asdctool/src/test/java/org/openecomp/sdc/asdctool/migration/core/SdcMigrationToolTest.java b/asdctool/src/test/java/org/openecomp/sdc/asdctool/migration/core/SdcMigrationToolTest.java
index fe74891950..8783071842 100644
--- a/asdctool/src/test/java/org/openecomp/sdc/asdctool/migration/core/SdcMigrationToolTest.java
+++ b/asdctool/src/test/java/org/openecomp/sdc/asdctool/migration/core/SdcMigrationToolTest.java
@@ -31,12 +31,12 @@ public class SdcMigrationToolTest {
private SdcRepoService sdcRepoServiceMock;
@BeforeMethod
- public void setUp() throws Exception {
+ public void setUp() {
MockitoAnnotations.initMocks(this);
}
@Test
- public void testMigrate_noMigrations() throws Exception {
+ public void testMigrate_noMigrations() {
when(migrationResolverMock.resolveMigrations()).thenReturn(Collections.emptyList());
testInstance.migrate(false);
verify(sdcRepoServiceMock, new Times(0)).clearTasksForCurrentMajor();
@@ -44,14 +44,14 @@ public class SdcMigrationToolTest {
}
@Test
- public void testMigrate_enforceFlag_removeAllMigrationTasksForCurrentVersion() throws Exception {
+ public void testMigrate_enforceFlag_removeAllMigrationTasksForCurrentVersion() {
when(migrationResolverMock.resolveMigrations()).thenReturn(Collections.emptyList());
testInstance.migrate(true);
verify(sdcRepoServiceMock, new Times(1)).clearTasksForCurrentMajor();
}
@Test
- public void testMigrate_stopAfterFirstFailure() throws Exception {
+ public void testMigrate_stopAfterFirstFailure() {
when(migrationResolverMock.resolveMigrations()).thenReturn(Arrays.asList(new SuccessfulMigration(), new FailedMigration(), new SuccessfulMigration()));
testInstance.migrate(false);
verify(sdcRepoServiceMock, new Times(0)).clearTasksForCurrentMajor();
diff --git a/asdctool/src/test/java/org/openecomp/sdc/asdctool/migration/core/execution/MigrationExecutorImplTest.java b/asdctool/src/test/java/org/openecomp/sdc/asdctool/migration/core/execution/MigrationExecutorImplTest.java
index 9547abc00f..3f9766d9c5 100644
--- a/asdctool/src/test/java/org/openecomp/sdc/asdctool/migration/core/execution/MigrationExecutorImplTest.java
+++ b/asdctool/src/test/java/org/openecomp/sdc/asdctool/migration/core/execution/MigrationExecutorImplTest.java
@@ -11,7 +11,7 @@ import org.testng.annotations.Test;
public class MigrationExecutorImplTest {
@Test
- public void testExecuteMigration() throws Exception {
+ public void testExecuteMigration() {
MigrationExecutionResult execute = new MigrationExecutorImpl().execute(DummyMigrationFactory.SUCCESSFUL_MIGRATION);
assertMigrationTaskEntryByMigrationExecutionResult(execute, DummyMigrationFactory.SUCCESSFUL_MIGRATION);
}
diff --git a/asdctool/src/test/java/org/openecomp/sdc/asdctool/migration/core/task/MigrationResultTest.java b/asdctool/src/test/java/org/openecomp/sdc/asdctool/migration/core/task/MigrationResultTest.java
index 04a8bd213b..8167b927e9 100644
--- a/asdctool/src/test/java/org/openecomp/sdc/asdctool/migration/core/task/MigrationResultTest.java
+++ b/asdctool/src/test/java/org/openecomp/sdc/asdctool/migration/core/task/MigrationResultTest.java
@@ -12,7 +12,7 @@ public class MigrationResultTest {
@Test
- public void testGetMsg() throws Exception {
+ public void testGetMsg() {
MigrationResult testSubject;
String result;
@@ -23,7 +23,7 @@ public class MigrationResultTest {
@Test
- public void testSetMsg() throws Exception {
+ public void testSetMsg() {
MigrationResult testSubject;
String msg = "";
@@ -34,7 +34,7 @@ public class MigrationResultTest {
@Test
- public void testGetMigrationStatus() throws Exception {
+ public void testGetMigrationStatus() {
MigrationResult testSubject;
MigrationStatus result;
@@ -45,7 +45,7 @@ public class MigrationResultTest {
@Test
- public void testSetMigrationStatus() throws Exception {
+ public void testSetMigrationStatus() {
MigrationResult testSubject;
MigrationStatus migrationStatus = null;
diff --git a/asdctool/src/test/java/org/openecomp/sdc/asdctool/migration/resolver/SpringBeansMigrationResolverTest.java b/asdctool/src/test/java/org/openecomp/sdc/asdctool/migration/resolver/SpringBeansMigrationResolverTest.java
index 360b3aab40..636b1c6744 100644
--- a/asdctool/src/test/java/org/openecomp/sdc/asdctool/migration/resolver/SpringBeansMigrationResolverTest.java
+++ b/asdctool/src/test/java/org/openecomp/sdc/asdctool/migration/resolver/SpringBeansMigrationResolverTest.java
@@ -31,13 +31,13 @@ public class SpringBeansMigrationResolverTest {
@BeforeMethod
- public void setUp() throws Exception {
+ public void setUp() {
MockitoAnnotations.initMocks(this);
testInstance.setMigrations(migrations);
}
@Test
- public void testResolveMigrations_getMigrationsWithVersionGreaterThanLatest() throws Exception {
+ public void testResolveMigrations_getMigrationsWithVersionGreaterThanLatest() {
when(sdcRepoServiceMock.getLatestDBVersion()).thenReturn(DBVersion.fromString("1710.2"));
testInstance.setPostMigrations(Collections.emptyList());
List<IMigrationStage> resolvedMigrations = testInstance.resolveMigrations();
@@ -47,7 +47,7 @@ public class SpringBeansMigrationResolverTest {
}
@Test
- public void testResolveMigration_noLatestVersionForCurrentMajorVersion() throws Exception {
+ public void testResolveMigration_noLatestVersionForCurrentMajorVersion() {
when(sdcRepoServiceMock.getLatestDBVersion()).thenReturn(DBVersion.fromString("1710.-1"));
testInstance.setPostMigrations(Collections.emptyList());
List<IMigrationStage> resolvedMigrations = testInstance.resolveMigrations();
@@ -58,7 +58,7 @@ public class SpringBeansMigrationResolverTest {
}
@Test
- public void testResolveMigrations_emptyMigrationsList() throws Exception {
+ public void testResolveMigrations_emptyMigrationsList() {
testInstance.setMigrations(Collections.emptyList());
testInstance.setPostMigrations(Collections.emptyList());
when(sdcRepoServiceMock.getLatestDBVersion()).thenReturn(DBVersion.fromString("1710.-1"));
diff --git a/asdctool/src/test/java/org/openecomp/sdc/asdctool/migration/service/SdcRepoServiceTest.java b/asdctool/src/test/java/org/openecomp/sdc/asdctool/migration/service/SdcRepoServiceTest.java
index 31e1a63689..2745f59006 100644
--- a/asdctool/src/test/java/org/openecomp/sdc/asdctool/migration/service/SdcRepoServiceTest.java
+++ b/asdctool/src/test/java/org/openecomp/sdc/asdctool/migration/service/SdcRepoServiceTest.java
@@ -25,12 +25,12 @@ public class SdcRepoServiceTest {
private MigrationTasksDao migrationTasksDaoMock;
@BeforeMethod
- public void setUp() throws Exception {
+ public void setUp() {
MockitoAnnotations.initMocks(this);
}
@Test
- public void testGetLatestVersion_noMinorVersionForCurrentVersion() throws Exception {
+ public void testGetLatestVersion_noMinorVersionForCurrentVersion() {
when(migrationTasksDaoMock.getLatestMinorVersion(DBVersion.CURRENT_VERSION.getMajor())).thenReturn(null);
DBVersion latestDBVersion = testInstance.getLatestDBVersion();
assertEquals(latestDBVersion.getMajor(), DBVersion.CURRENT_VERSION.getMajor());
@@ -38,7 +38,7 @@ public class SdcRepoServiceTest {
}
@Test
- public void testGetLatestVersion() throws Exception {
+ public void testGetLatestVersion() {
when(migrationTasksDaoMock.getLatestMinorVersion(DBVersion.CURRENT_VERSION.getMajor())).thenReturn(BigInteger.TEN);
DBVersion latestDBVersion = testInstance.getLatestDBVersion();
assertEquals(latestDBVersion.getMajor(), DBVersion.CURRENT_VERSION.getMajor());
@@ -46,7 +46,7 @@ public class SdcRepoServiceTest {
}
@Test
- public void testCreateMigrationTask() throws Exception {
+ public void testCreateMigrationTask() {
MigrationTaskEntry taskEntry = new MigrationTaskEntry();
testInstance.createMigrationTask(taskEntry);
verify(migrationTasksDaoMock, new Times(1)).createMigrationTask(taskEntry);
diff --git a/asdctool/src/test/java/org/openecomp/sdc/asdctool/migration/task/MigrationTasksTest.java b/asdctool/src/test/java/org/openecomp/sdc/asdctool/migration/task/MigrationTasksTest.java
index fa61b7e19e..52dc7c9fcd 100644
--- a/asdctool/src/test/java/org/openecomp/sdc/asdctool/migration/task/MigrationTasksTest.java
+++ b/asdctool/src/test/java/org/openecomp/sdc/asdctool/migration/task/MigrationTasksTest.java
@@ -21,13 +21,13 @@ public class MigrationTasksTest {
private List<Migration> migrations;
@BeforeMethod
- public void setUp() throws Exception {
+ public void setUp() {
ClassScanner classScanner = new ClassScanner();
migrations = classScanner.getAllClassesOfType(MIGRATIONS_BASE_PACKAGE, Migration.class);
}
@Test
- public void testNoTasksWithSameVersion() throws Exception {
+ public void testNoTasksWithSameVersion() {
Map<DBVersion, List<Migration>> migrationsByVersion = migrations.stream().collect(Collectors.groupingBy(Migration::getVersion));
migrationsByVersion.forEach((version, migrations) -> {
if (migrations.size() > 1) {
@@ -38,7 +38,7 @@ public class MigrationTasksTest {
}
@Test
- public void testNoTaskWithVersionGreaterThanCurrentVersion() throws Exception {
+ public void testNoTaskWithVersionGreaterThanCurrentVersion() {
Set<Migration> migrationsWithVersionsGreaterThanCurrent = migrations.stream().filter(mig -> mig.getVersion().compareTo(DBVersion.CURRENT_VERSION) > 0)
.collect(Collectors.toSet());
diff --git a/asdctool/src/test/java/org/openecomp/sdc/asdctool/servlets/EntryPointTest.java b/asdctool/src/test/java/org/openecomp/sdc/asdctool/servlets/EntryPointTest.java
index 217bc3919f..4b0b398a81 100644
--- a/asdctool/src/test/java/org/openecomp/sdc/asdctool/servlets/EntryPointTest.java
+++ b/asdctool/src/test/java/org/openecomp/sdc/asdctool/servlets/EntryPointTest.java
@@ -11,7 +11,7 @@ public class EntryPointTest {
@Test
- public void testTest() throws Exception {
+ public void testTest() {
EntryPoint testSubject;
String result;