From 7f41965489e4b57174db4d948e6220048d76a421 Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Thu, 28 Feb 2019 15:28:11 +0000 Subject: [PATCH] Refactoring tests git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/private/luca.frosini/infrastructure-tests@178376 82a268e6-3cf1-43bd-a215-b396298e98cf --- pom.xml | 8 +- ...ntingPluginSmartExecutorSchedulerTest.java | 25 +- ...tingPersistenceQueryConfigurationTest.java | 6 +- ...AccountingPersistenceQueryFactoryTest.java | 4 +- ...countingPersistenceQueryCouchBaseTest.java | 4 +- .../couchbase/RemoveOldRecords.java | 4 +- .../usagerecords/AccountingTest.java | 6 +- .../JobUsageRecordScopedTest.java | 15 +- .../ServiceUsageRecordScopedTest.java | 13 +- .../StorageUsageRecordScopedTest.java | 15 +- ...ccountingPersistenceConfigurationTest.java | 6 +- .../persistence/PersistenceCouchBaseTest.java | 17 +- .../ContextAuthorizationTest.java | 4 +- .../gcube/discovery/ServiceEndpointInfo.java | 4 +- .../PersistenceBackendMonitorTest.java | 10 +- .../persistence/PersistenceBackendTest.java | 6 +- .../persistence/PersistenceCouchBaseTest.java | 10 +- .../persistence/RenameFileTest.java | 4 +- .../aggregation/AggregationSchedulerTest.java | 4 +- ...orterPluginSmartExecutorSchedulerTest.java | 50 +- ...eeperPluginSmartExecutorSchedulerTest.java | 26 +- .../sweeper/ISSweeperPluginTest.java | 4 +- .../sweeper/RemoveGoodRITest.java | 4 +- src/test/java/org/gcube/lb2pc/Lock.java | 4 +- src/test/java/org/gcube/phd/Statistics.java | 79 +++- .../org/gcube/testutility/ContextTest.java | 87 ++++ .../org/gcube/testutility/ScopedTest.java | 106 ----- .../org/gcube/testutility/TestUtility.java | 4 +- .../executor/GCoreEndPointCreationTest.java | 4 +- .../rest/client/DefaultExecutorTest.java | 4 +- .../rest/client/QueriedClientTest.java | 21 +- .../soap/client/DefaultExecutorTest.java | 393 ++++++++-------- .../soap/client/QueriedClientTest.java | 433 +++++++++--------- 33 files changed, 682 insertions(+), 702 deletions(-) create mode 100644 src/test/java/org/gcube/testutility/ContextTest.java delete mode 100644 src/test/java/org/gcube/testutility/ScopedTest.java diff --git a/pom.xml b/pom.xml index 52e1c5a..1835219 100644 --- a/pom.xml +++ b/pom.xml @@ -149,14 +149,14 @@ org.gcube.vremanagement smart-executor - [1.4.0-SNAPSHOT,2.0.0-SNAPSHOT) + [2.0.0-SNAPSHOT,3.0.0-SNAPSHOT) test war org.gcube.vremanagement smart-executor-client - [1.3.0-SNAPSHOT,2.0.0-SNAPSHOT) + [2.0.0-SNAPSHOT,3.0.0-SNAPSHOT) test @@ -179,14 +179,14 @@ test -