@@ -39,7 +39,7 @@ import static org.mockito.Mockito.when; | |||
public class GitHubSettingsTest { | |||
@Rule | |||
public DbTester db = DbTester.create(System2.INSTANCE, true); | |||
public DbTester db = DbTester.create(System2.INSTANCE); | |||
private MapSettings settings = new MapSettings(new PropertyDefinitions(System2.INSTANCE, GitHubSettings.definitions())); | |||
private InternalProperties internalProperties = mock(InternalProperties.class); |
@@ -59,7 +59,7 @@ public class IntegrationTest { | |||
public MockWebServer github = new MockWebServer(); | |||
@Rule | |||
public DbTester db = DbTester.create(System2.INSTANCE, true); | |||
public DbTester db = DbTester.create(System2.INSTANCE); | |||
// load settings with default values | |||
private MapSettings settings = new MapSettings(new PropertyDefinitions(System2.INSTANCE, GitHubSettings.definitions())); |
@@ -68,7 +68,7 @@ public class SamlIdentityProviderIT { | |||
private static final String SP_PRIVATE_KEY = "-----BEGIN PRIVATE KEY-----MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDSFoT371C0/klZuPgvKbGItkmTaf5CweNXL8u389d98aOXRpDQ7maTXdV/W+VcL8vUWg8yG6nn8CRwweYnGTNdn9UAdhgknvxQe3pq3EwOJyls4Fpiq6YTh+DQfiZUQizjFjDOr/GG5O2lNvTRkI4XZj/XnWjRqVZwttiA5tm1sKkvGdyOQljwn4Jja/VbITdV8GASumx66Bil/wamSsqIzm2RjsOOGSsf5VjYUPwDobpuSf+j4DLtWjem/9vIzI2wcE30uC8LBAgO3JAlIS9NQrchjS9xhMJRohOoitaSPmqsOy7D2BH0h7XX6TNgv/WYTkBY4eZPao3PsL2A6AmhAgMBAAECggEBAJj11HJAR96/leBBkFGmZaBIOGGgNoOcb023evfADhGgsZ8evamhKgX5t8w2uFPaaOl/eLje82Hvslh2lH+7FW8BRDBFy2Y+ay6d+I99PdLAKKUg5C4bE5v8vm6OqpGGbPAZ5AdYit3QKEa2MKG0QgA/bhQqg3rDdDA0sIWJjtF9MLv7LI7Tm0qgiHOKsI0MEBFk+ZoibgKWYh/dnfGDRWyC3Puqe13rdSheNJYUDR/0QMkd/EJNpLWv06uk+w8w2lU4RgN6TiV76ZZUIGZAAHFgMELJysgtBTCkOQY5roPu17OmMZjKfxngeIfNyd42q3/T6DmUbbwNYfP2HRMoiMECgYEA6SVc1mZ4ykytC9M61rZwT+2zXtJKudQVa0qpTtkf0aznRmnDOuc1bL7ewKIIIp9r5HKVteO6SKgpHmrP+qmvbwZ0Pz51Zg0MetoSmT9m0599/tOU2k6OI09dvQ4Xa3ccN5Czl61Q/HkMeAIDny8MrhGVBwhallE4J4fm/OjuVK0CgYEA5q6IVgqZtfcV1azIF6uOFt6blfn142zrwq0fF39jog2f+4jXaBKw6L4aP0HvIL83UArGppYY31894bLb6YL4EjS2JNbABM2VnJpJd4oGopOE42GCZlZRpf751zOptYAN23NFSujLlfaUfMbyrqIbRFC2DCdzNTU50GT5SAXX80UCgYEAlyvQvHwJCjMZaTd3SU1WGZ1o1qzIIyHvGXh5u1Rxm0TfWPquyfys2WwRhxoI6FoyXRgnFp8oZIAU2VIstL1dsUGgEnnvKVKAqw/HS3Keu80IpziNpdeVtjN59mGysc2zkBvVNx38Cxh6Cz5TFt4s/JkN5ld2VU0oeglWrtph3qkCgYALszZ/BrKdJBcba1QKv0zJpCjIBpGOI2whx54YFwH6qi4/F8W1JZ2LcHjsVG/IfWpUyPciY+KHEdGVrPiyc04Zvkquu6WpmLPJ6ZloUrvbaxgGYF+4yRADF1ecrqYg6onJY6NUFVKeHI+TdJPCf75aTK2vGCEjxbtU8ooiOQmm8QKBgEGe9ZdrwTP9rMQ35jYtzU+dT06k1r9BE9Q8CmrXl0HwK717ZWboX4J0YoFjxZC8PDsMl3p46MJ83rKbLU728uKig1AkZo7/OedxTWvezjZ1+lDyjC2EguXbgY1ecSC2HbJh9g+v8RUuhWxuA7RYoW92xVtKj+6l4vMadVP4Myp8-----END PRIVATE KEY-----"; | |||
@Rule | |||
public DbTester db = DbTester.create(true); | |||
public DbTester db = DbTester.create(); | |||
@Rule | |||
public LogTester log = new LogTester(); | |||
@@ -38,7 +38,7 @@ import static org.mockito.Mockito.when; | |||
public class SamlMessageIdCheckerIT { | |||
@Rule | |||
public DbTester db = DbTester.create(true); | |||
public DbTester db = DbTester.create(); | |||
private DbSession dbSession = db.getSession(); | |||
@@ -70,7 +70,7 @@ public class CeQueueImplIT { | |||
private System2 system2 = new TestSystem2().setNow(NOW); | |||
@Rule | |||
public DbTester db = DbTester.create(system2, true); | |||
public DbTester db = DbTester.create(system2); | |||
private DbSession session = db.getSession(); | |||
@@ -64,7 +64,7 @@ public class BranchPersisterImplIT { | |||
@Rule | |||
public AnalysisMetadataHolderRule analysisMetadataHolder = new AnalysisMetadataHolderRule(); | |||
@Rule | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE, true); | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE); | |||
@Rule | |||
public TreeRootHolderRule treeRootHolder = new TreeRootHolderRule(); | |||
@@ -39,7 +39,7 @@ public class ComponentUuidFactoryImplIT { | |||
private final Branch mockedBranch = mock(Branch.class); | |||
@Rule | |||
public DbTester db = DbTester.create(System2.INSTANCE, true); | |||
public DbTester db = DbTester.create(System2.INSTANCE); | |||
@Test | |||
public void getOrCreateForKey_when_existingComponentsInDbForMainBranch_should_load() { |
@@ -48,7 +48,7 @@ public class ProjectPersisterIT { | |||
@Rule | |||
public AnalysisMetadataHolderRule analysisMetadataHolder = new AnalysisMetadataHolderRule(); | |||
@Rule | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE, true); | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE); | |||
@Rule | |||
public TreeRootHolderRule treeRootHolder = new TreeRootHolderRule(); | |||
public TestSystem2 system2 = new TestSystem2(); |
@@ -40,7 +40,7 @@ public class ReferenceBranchComponentUuidsIT { | |||
public AnalysisMetadataHolderRule analysisMetadataHolder = new AnalysisMetadataHolderRule(); | |||
@Rule | |||
public DbTester db = DbTester.create(true); | |||
public DbTester db = DbTester.create(); | |||
private ReferenceBranchComponentUuids underTest; | |||
private Branch branch = mock(Branch.class); |
@@ -45,7 +45,7 @@ public class SiblingComponentsWithOpenIssuesIT { | |||
public AnalysisMetadataHolderRule metadataHolder = new AnalysisMetadataHolderRule(); | |||
@Rule | |||
public DbTester db = DbTester.create(true); | |||
public DbTester db = DbTester.create(); | |||
private SiblingComponentsWithOpenIssues underTest; | |||
@@ -219,7 +219,7 @@ public class FileMoveDetectionStepIT { | |||
@Rule | |||
public MutableMovedFilesRepositoryRule movedFilesRepository = new MutableMovedFilesRepositoryRule(); | |||
@Rule | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE, true); | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE); | |||
@Rule | |||
public LogTester logTester = new LogTester(); | |||
@@ -86,7 +86,7 @@ public class PullRequestFileMoveDetectionStepIT { | |||
@Rule | |||
public MutableMovedFilesRepositoryRule movedFilesRepository = new MutableMovedFilesRepositoryRule(); | |||
@Rule | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE, true); | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE); | |||
@Rule | |||
public LogTester logTester = new LogTester(); | |||
@@ -39,7 +39,7 @@ import static org.assertj.core.api.Assertions.assertThat; | |||
public class AdHocRuleCreatorIT { | |||
@org.junit.Rule | |||
public DbTester db = DbTester.create(System2.INSTANCE, true); | |||
public DbTester db = DbTester.create(System2.INSTANCE); | |||
@org.junit.Rule | |||
public EsTester es = EsTester.create(); | |||
@@ -69,7 +69,7 @@ public class ComponentIssuesLoaderIT { | |||
private static final Date DATE_LIMIT_30_DAYS_BACK_MIDNIGHT = parseDateTime("2018-07-18T00:00:00+0000"); | |||
@Rule | |||
public DbTester db = DbTester.create(System2.INSTANCE, true); | |||
public DbTester db = DbTester.create(System2.INSTANCE); | |||
private final DbClient dbClient = db.getDbClient(); | |||
private final System2 system2 = mock(System2.class); |
@@ -36,7 +36,7 @@ public class DefaultAssigneeIT { | |||
public static final String PROJECT_KEY = "PROJECT_KEY"; | |||
@Rule | |||
public DbTester db = DbTester.create(true); | |||
public DbTester db = DbTester.create(); | |||
private final MapSettings settings = new MapSettings(); | |||
private final ConfigurationRepository settingsRepository = new TestSettingsRepository(settings.asConfig()); |
@@ -103,7 +103,7 @@ public class IntegrateIssuesVisitorIT { | |||
@Rule | |||
public TemporaryFolder temp = new TemporaryFolder(); | |||
@Rule | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE, true); | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE); | |||
@Rule | |||
public TreeRootHolderRule treeRootHolder = new TreeRootHolderRule(); | |||
@Rule |
@@ -48,7 +48,7 @@ public class ProjectTrackerBaseLazyInputIT { | |||
@Rule | |||
public AnalysisMetadataHolderRule analysisMetadataHolder = new AnalysisMetadataHolderRule().setAnalysisDate(ANALYSIS_DATE); | |||
@Rule | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE, true); | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE); | |||
@Rule | |||
public ActiveRulesHolderRule activeRulesHolderRule = new ActiveRulesHolderRule(); | |||
@Rule |
@@ -36,7 +36,7 @@ import static org.junit.Assert.fail; | |||
public class ScmAccountToUserLoaderIT { | |||
@Rule | |||
public DbTester db = DbTester.create(true); | |||
public DbTester db = DbTester.create(); | |||
@Rule | |||
public EsTester es = EsTester.create(); | |||
@Rule |
@@ -62,7 +62,7 @@ public class SiblingsIssueMergerIT { | |||
private final Branch branch = mock(Branch.class); | |||
@Rule | |||
public DbTester db = DbTester.create(true); | |||
public DbTester db = DbTester.create(); | |||
@Rule | |||
public TreeRootHolderRule treeRootHolder = new TreeRootHolderRule() |
@@ -46,7 +46,7 @@ public class SourceBranchComponentUuidsIT { | |||
public AnalysisMetadataHolderRule analysisMetadataHolder = new AnalysisMetadataHolderRule(); | |||
@Rule | |||
public DbTester db = DbTester.create(true); | |||
public DbTester db = DbTester.create(); | |||
private SourceBranchComponentUuids underTest; | |||
private final Branch branch = mock(Branch.class); |
@@ -45,7 +45,7 @@ public class TargetBranchComponentUuidsIT { | |||
public AnalysisMetadataHolderRule analysisMetadataHolder = new AnalysisMetadataHolderRule(); | |||
@Rule | |||
public DbTester db = DbTester.create(true); | |||
public DbTester db = DbTester.create(); | |||
private TargetBranchComponentUuids underTest; | |||
private final Branch branch = mock(Branch.class); |
@@ -40,7 +40,7 @@ public class TrackerReferenceBranchInputFactoryIT { | |||
private final static String COMPONENT_UUID = "uuid1"; | |||
@Rule | |||
public DbTester db = DbTester.create(true); | |||
public DbTester db = DbTester.create(); | |||
private ComponentIssuesLoader componentIssuesLoader = mock(ComponentIssuesLoader.class); | |||
private ReferenceBranchComponentUuids referenceBranchComponentUuids = mock(ReferenceBranchComponentUuids.class); |
@@ -39,7 +39,7 @@ public class TrackerSourceBranchInputFactoryIT { | |||
private final static String COMPONENT_UUID = "uuid1"; | |||
@Rule | |||
public DbTester db = DbTester.create(true); | |||
public DbTester db = DbTester.create(); | |||
private final ComponentIssuesLoader componentIssuesLoader = mock(ComponentIssuesLoader.class); | |||
private final SourceBranchComponentUuids sourceBranchComponentUuids = mock(SourceBranchComponentUuids.class); |
@@ -44,7 +44,7 @@ public class TrackerTargetBranchInputFactoryIT { | |||
private final static String ORIGINAL_COMPONENT_UUID = "uuid2"; | |||
@Rule | |||
public DbTester db = DbTester.create(true); | |||
public DbTester db = DbTester.create(); | |||
private final ComponentIssuesLoader componentIssuesLoader = mock(ComponentIssuesLoader.class); | |||
private final TargetBranchComponentUuids targetBranchComponentUuids = mock(TargetBranchComponentUuids.class); |
@@ -67,7 +67,7 @@ public class MeasureRepositoryImplIT { | |||
@Rule | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE, true); | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE); | |||
@Rule | |||
public BatchReportReaderRule reportReader = new BatchReportReaderRule(); | |||
@@ -38,7 +38,7 @@ public class MetricRepositoryImplIT { | |||
private static final String SOME_UUID = "uuid"; | |||
@Rule | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE, true); | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE); | |||
private DbClient dbClient = dbTester.getDbClient(); | |||
private MetricRepositoryImpl underTest = new MetricRepositoryImpl(dbClient); |
@@ -44,7 +44,7 @@ public class NewCodeReferenceBranchComponentUuidsIT { | |||
@Rule | |||
public PeriodHolderRule periodHolder = new PeriodHolderRule(); | |||
@Rule | |||
public DbTester db = DbTester.create(true); | |||
public DbTester db = DbTester.create(); | |||
private NewCodeReferenceBranchComponentUuids underTest = new NewCodeReferenceBranchComponentUuids(analysisMetadataHolder, periodHolder, db.getDbClient()); | |||
@@ -69,7 +69,7 @@ public class ScmInfoDbLoaderIT { | |||
@Rule | |||
public AnalysisMetadataHolderRule analysisMetadataHolder = new AnalysisMetadataHolderRule(); | |||
@Rule | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE, true); | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE); | |||
@Rule | |||
public BatchReportReaderRule reportReader = new BatchReportReaderRule(); | |||
@Rule |
@@ -37,7 +37,7 @@ import static org.mockito.Mockito.when; | |||
public class DbLineHashVersionIT { | |||
@Rule | |||
public DbTester db = DbTester.create(true); | |||
public DbTester db = DbTester.create(); | |||
private final AnalysisMetadataHolder analysisMetadataHolder = mock(AnalysisMetadataHolder.class); | |||
private final ReferenceBranchComponentUuids referenceBranchComponentUuids = mock(ReferenceBranchComponentUuids.class); |
@@ -66,7 +66,7 @@ public class PersistFileSourcesStepIT extends BaseStepTest { | |||
private final System2 system2 = mock(System2.class); | |||
@Rule | |||
public DbTester dbTester = DbTester.create(system2, true); | |||
public DbTester dbTester = DbTester.create(system2); | |||
@Rule | |||
public TreeRootHolderRule treeRootHolder = new TreeRootHolderRule(); | |||
@@ -86,7 +86,7 @@ public class BuildComponentTreeStepIT { | |||
private static final long ANALYSIS_DATE = 123456789L; | |||
@Rule | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE, true); | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE); | |||
@Rule | |||
public BatchReportReaderRule reportReader = new BatchReportReaderRule().setMetadata(createReportMetadata(NO_SCANNER_PROJECT_VERSION, NO_SCANNER_BUILD_STRING)); | |||
@Rule |
@@ -32,7 +32,7 @@ import static org.assertj.core.api.Assertions.assertThat; | |||
public class CleanIssueChangesStepIT { | |||
@Rule | |||
public DbTester db = DbTester.create(true); | |||
public DbTester db = DbTester.create(); | |||
private final IssueChangesToDeleteRepository repository = new IssueChangesToDeleteRepository(); | |||
private final CleanIssueChangesStep cleanIssueChangesStep = new CleanIssueChangesStep(repository, db.getDbClient()); | |||
private final TestComputationStepContext context = new TestComputationStepContext(); |
@@ -43,7 +43,7 @@ public class EnableAnalysisStepIT { | |||
private static final String CURRENT_ANALYSIS_UUID = "ANALYSIS_2"; | |||
@Rule | |||
public DbTester db = DbTester.create(System2.INSTANCE, true); | |||
public DbTester db = DbTester.create(System2.INSTANCE); | |||
@Rule | |||
public TreeRootHolderRule treeRootHolder = new TreeRootHolderRule(); |
@@ -55,7 +55,7 @@ public class ExtractReportStepIT { | |||
@Rule | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE, true); | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE); | |||
private MutableBatchReportDirectoryHolder reportDirectoryHolder = new BatchReportDirectoryHolderImpl(); | |||
private CeTask ceTask = new CeTask.Builder() |
@@ -89,7 +89,7 @@ public class LoadCrossProjectDuplicationsRepositoryStepIT { | |||
private CrossProjectDuplicationStatusHolder crossProjectDuplicationStatusHolder = mock(CrossProjectDuplicationStatusHolder.class); | |||
@Rule | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE, true); | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE); | |||
private DbClient dbClient = dbTester.getDbClient(); | |||
private DbSession dbSession = dbTester.getSession(); |
@@ -43,7 +43,7 @@ import static org.mockito.Mockito.when; | |||
public class LoadFileHashesAndStatusStepIT { | |||
@Rule | |||
public DbTester db = DbTester.create(true); | |||
public DbTester db = DbTester.create(); | |||
@Rule | |||
public TreeRootHolderRule treeRootHolder = new TreeRootHolderRule(); | |||
public PreviousSourceHashRepositoryImpl previousFileHashesRepository = new PreviousSourceHashRepositoryImpl(); |
@@ -76,7 +76,7 @@ import static org.sonar.db.event.EventTesting.newEvent; | |||
@RunWith(DataProviderRunner.class) | |||
public class LoadPeriodsStepIT extends BaseStepTest { | |||
@Rule | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE, true); | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE); | |||
@Rule | |||
public TreeRootHolderRule treeRootHolder = new TreeRootHolderRule(); | |||
@Rule |
@@ -63,7 +63,7 @@ public class LoadReportAnalysisMetadataHolderStepIT { | |||
private static final long ANALYSIS_DATE = 123456789L; | |||
@Rule | |||
public DbTester db = DbTester.create(System2.INSTANCE, true); | |||
public DbTester db = DbTester.create(System2.INSTANCE); | |||
@Rule | |||
public BatchReportReaderRule reportReader = new BatchReportReaderRule(); | |||
@Rule |
@@ -45,7 +45,7 @@ import static org.assertj.core.api.Assertions.assertThat; | |||
public class PersistAdHocRulesStepIT extends BaseStepTest { | |||
@Rule | |||
public DbTester db = DbTester.create(System2.INSTANCE, true); | |||
public DbTester db = DbTester.create(System2.INSTANCE); | |||
private DbClient dbClient = db.getDbClient(); | |||
@@ -64,7 +64,7 @@ public class PersistAnalysisPropertiesStepIT { | |||
private static final String SCM_REV_ID = "sha1"; | |||
@Rule | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE, true); | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE); | |||
private BatchReportReader batchReportReader = mock(BatchReportReader.class); | |||
private AnalysisMetadataHolder analysisMetadataHolder = mock(AnalysisMetadataHolder.class); |
@@ -69,7 +69,7 @@ public class PersistCrossProjectDuplicationIndexStepIT { | |||
private static final String BASE_ANALYSIS_UUID = "base analysis uuid"; | |||
@Rule | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE, true); | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE); | |||
@Rule | |||
public BatchReportReaderRule reportReader = new BatchReportReaderRule(); | |||
@Rule |
@@ -59,7 +59,7 @@ public class PersistDuplicationDataStepIT extends BaseStepTest { | |||
private static final String FILE_2_UUID = "u3"; | |||
@Rule | |||
public DbTester db = DbTester.create(System2.INSTANCE, true); | |||
public DbTester db = DbTester.create(System2.INSTANCE); | |||
@Rule | |||
public TreeRootHolderRule treeRootHolder = new TreeRootHolderRule() | |||
.setRoot( |
@@ -76,7 +76,7 @@ public class PersistEventsStepIT extends BaseStepTest { | |||
System2 system2 = mock(System2.class); | |||
@Rule | |||
public DbTester dbTester = DbTester.create(system2, true); | |||
public DbTester dbTester = DbTester.create(system2); | |||
@Rule | |||
public AnalysisMetadataHolderRule analysisMetadataHolder = new AnalysisMetadataHolderRule(); | |||
@Rule |
@@ -80,7 +80,7 @@ public class PersistIssuesStepIT extends BaseStepTest { | |||
@Rule | |||
public TemporaryFolder temp = new TemporaryFolder(); | |||
@Rule | |||
public DbTester db = DbTester.create(System2.INSTANCE, true); | |||
public DbTester db = DbTester.create(System2.INSTANCE); | |||
@Rule | |||
public BatchReportReaderRule reportReader = new BatchReportReaderRule(); | |||
@Rule |
@@ -73,7 +73,7 @@ public class PersistLiveMeasuresStepIT extends BaseStepTest { | |||
private static final int REF_4 = 4; | |||
@Rule | |||
public DbTester db = DbTester.create(System2.INSTANCE, true); | |||
public DbTester db = DbTester.create(System2.INSTANCE); | |||
@Rule | |||
public TreeRootHolderRule treeRootHolder = new TreeRootHolderRule(); | |||
@Rule |
@@ -64,7 +64,7 @@ public class PersistMeasuresStepIT extends BaseStepTest { | |||
private static final int REF_4 = 4; | |||
@Rule | |||
public DbTester db = DbTester.create(System2.INSTANCE, true); | |||
public DbTester db = DbTester.create(System2.INSTANCE); | |||
@Rule | |||
public TreeRootHolderRule treeRootHolder = new TreeRootHolderRule(); | |||
@Rule |
@@ -60,7 +60,7 @@ public class PersistProjectLinksStepIT extends BaseStepTest { | |||
@Rule | |||
public AnalysisMetadataHolderRule analysisMetadataHolder = new AnalysisMetadataHolderRule(); | |||
@Rule | |||
public DbTester db = DbTester.create(System2.INSTANCE, true); | |||
public DbTester db = DbTester.create(System2.INSTANCE); | |||
@Rule | |||
public TreeRootHolderRule treeRootHolder = new TreeRootHolderRule(); | |||
@Rule |
@@ -55,7 +55,7 @@ public class PersistPushEventsStepIT { | |||
private final TestSystem2 system2 = new TestSystem2().setNow(1L); | |||
@Rule | |||
public DbTester db = DbTester.create(system2, true); | |||
public DbTester db = DbTester.create(system2); | |||
public final PushEventFactory pushEventFactory = mock(PushEventFactory.class); | |||
@Rule |
@@ -41,7 +41,7 @@ public class PersistScannerAnalysisCacheStepIT { | |||
@Rule | |||
public BatchReportReaderRule reader = new BatchReportReaderRule(); | |||
@Rule | |||
public DbTester dbTester = DbTester.create(true); | |||
public DbTester dbTester = DbTester.create(); | |||
private final DbClient client = dbTester.getDbClient(); | |||
private final TreeRootHolderRule treeRootHolder = new TreeRootHolderRule(); | |||
private final PersistScannerAnalysisCacheStep step = new PersistScannerAnalysisCacheStep(reader, dbTester.getDbClient(), treeRootHolder); |
@@ -42,7 +42,7 @@ public class PersistScannerContextStepIT { | |||
private static final String ANALYSIS_UUID = "UUID"; | |||
@ClassRule | |||
public static final DbTester dbTester = DbTester.create(System2.INSTANCE, true); | |||
public static final DbTester dbTester = DbTester.create(System2.INSTANCE); | |||
@Rule | |||
public BatchReportReaderRule reportReader = new BatchReportReaderRule(); |
@@ -27,7 +27,6 @@ import org.sonar.db.DbClient; | |||
import org.sonar.db.DbTester; | |||
import org.sonar.db.component.BranchDto; | |||
import org.sonar.db.component.BranchType; | |||
import org.sonar.db.component.ComponentDto; | |||
import org.sonar.db.metric.MetricDto; | |||
import org.sonar.db.project.ProjectDto; | |||
import org.sonar.server.project.Project; | |||
@@ -38,7 +37,7 @@ import static org.sonar.api.measures.Metric.ValueType.INT; | |||
public class ProjectNclocComputationStepIT { | |||
@Rule | |||
public DbTester db = DbTester.create(true); | |||
public DbTester db = DbTester.create(); | |||
private final DbClient dbClient = db.getDbClient(); | |||
@Rule |
@@ -54,7 +54,7 @@ public class ReportPersistAnalysisStepIT extends BaseStepTest { | |||
private static final String REVISION_ID = "5f6432a1"; | |||
@Rule | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE, true); | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE); | |||
@Rule | |||
public TreeRootHolderRule treeRootHolder = new TreeRootHolderRule(); | |||
@Rule |
@@ -67,7 +67,7 @@ public class ReportPersistComponentsStepIT extends BaseStepTest { | |||
private static final String PROJECT_KEY = "PROJECT_KEY"; | |||
@Rule | |||
public DbTester db = DbTester.create(System2.INSTANCE, true); | |||
public DbTester db = DbTester.create(System2.INSTANCE); | |||
@Rule | |||
public TreeRootHolderRule treeRootHolder = new TreeRootHolderRule(); | |||
@Rule |
@@ -134,7 +134,7 @@ public class SendIssueNotificationsStepIT extends BaseStepTest { | |||
@Rule | |||
public TemporaryFolder temp = new TemporaryFolder(); | |||
@Rule | |||
public DbTester db = DbTester.create(System2.INSTANCE, true); | |||
public DbTester db = DbTester.create(System2.INSTANCE); | |||
private final Random random = new Random(); | |||
private final RuleType[] RULE_TYPES_EXCEPT_HOTSPOTS = Stream.of(RuleType.values()).filter(r -> r != SECURITY_HOTSPOT).toArray(RuleType[]::new); |
@@ -37,7 +37,7 @@ public class UpdateNeedIssueSyncStepIT { | |||
private static final Component PROJECT = ReportComponent.DUMB_PROJECT; | |||
@Rule | |||
public DbTester db = DbTester.create(System2.INSTANCE, true); | |||
public DbTester db = DbTester.create(System2.INSTANCE); | |||
@Rule | |||
public TreeRootHolderRule treeRootHolder = new TreeRootHolderRule().setRoot(PROJECT); |
@@ -58,7 +58,7 @@ public class UpdateQualityProfilesLastUsedDateStepIT { | |||
@Rule | |||
public DbTester db = DbTester.create(System2.INSTANCE, true); | |||
public DbTester db = DbTester.create(System2.INSTANCE); | |||
@Rule | |||
public AnalysisMetadataHolderRule analysisMetadataHolder = new AnalysisMetadataHolderRule().setAnalysisDate(ANALYSIS_DATE); |
@@ -52,7 +52,7 @@ public class ValidateProjectStepIT { | |||
static final Branch DEFAULT_BRANCH = new DefaultBranchImpl(DEFAULT_MAIN_BRANCH_NAME); | |||
@Rule | |||
public DbTester db = DbTester.create(System2.INSTANCE, true); | |||
public DbTester db = DbTester.create(System2.INSTANCE); | |||
@Rule | |||
public TreeRootHolderRule treeRootHolder = new TreeRootHolderRule(); | |||
@Rule |
@@ -53,7 +53,7 @@ public class ViewsPersistAnalysisStepIT extends BaseStepTest { | |||
private static final String ANALYSIS_UUID = "U1"; | |||
@Rule | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE, true); | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE); | |||
@Rule | |||
public TreeRootHolderRule treeRootHolder = new TreeRootHolderRule(); | |||
@Rule |
@@ -46,7 +46,6 @@ import org.sonar.ce.task.step.ComputationStep; | |||
import org.sonar.ce.task.step.TestComputationStepContext; | |||
import org.sonar.db.DbClient; | |||
import org.sonar.db.DbTester; | |||
import org.sonar.db.component.ComponentDbTester; | |||
import org.sonar.db.component.ComponentDto; | |||
import org.sonar.db.component.ComponentTesting; | |||
@@ -80,7 +79,7 @@ public class ViewsPersistComponentsStepIT extends BaseStepTest { | |||
private static final String PROJECT_VIEW_1_UUID = "PV1_UUID"; | |||
@Rule | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE, true); | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE); | |||
@Rule | |||
public TreeRootHolderRule treeRootHolder = new TreeRootHolderRule(); |
@@ -51,14 +51,14 @@ public class AuditPurgeStepIT { | |||
.setValue(MONTHLY.name()); | |||
@Rule | |||
public final DbTester dbTester = DbTester.create(System2.INSTANCE, true); | |||
public final DbTester dbTester = DbTester.create(System2.INSTANCE); | |||
private final DbClient dbClient = dbTester.getDbClient(); | |||
private final System2 system2 = new System2(); | |||
@Rule | |||
public final DbTester db = DbTester.create(system2, true); | |||
public final DbTester db = DbTester.create(system2); | |||
private final AuditHousekeepingFrequencyHelper auditHousekeepingFrequencyHelper = mock(AuditHousekeepingFrequencyHelper.class); | |||
@@ -37,7 +37,7 @@ public class IgnoreOrphanBranchStepIT { | |||
private final String BRANCH_UUID = "branch_uuid"; | |||
@Rule | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE, true); | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE); | |||
private final CeTask.Component entity = new CeTask.Component(ENTITY_UUID, "component key", "component name"); | |||
private final CeTask.Component component = new CeTask.Component(BRANCH_UUID, "component key", "component name"); |
@@ -42,7 +42,7 @@ public class IndexIssuesStepIT { | |||
private final String BRANCH_UUID = "branch_uuid"; | |||
@Rule | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE, true); | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE); | |||
private final DbClient dbClient = dbTester.getDbClient(); | |||
private final CeTask.Component entity = new CeTask.Component(ENTITY_UUID, "component key", "component name"); |
@@ -96,7 +96,7 @@ public class ExportAnalysesStepIT { | |||
.setBranchUuid(PROJECT_UUID); | |||
@Rule | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE, true); | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE); | |||
@Rule | |||
public LogTester logTester = new LogTester(); | |||
@@ -30,8 +30,6 @@ import org.junit.Before; | |||
import org.junit.Rule; | |||
import org.junit.Test; | |||
import org.slf4j.event.Level; | |||
import org.sonar.api.resources.Qualifiers; | |||
import org.sonar.api.resources.Scopes; | |||
import org.sonar.api.testfixtures.log.LogTester; | |||
import org.sonar.api.utils.System2; | |||
import org.sonar.ce.task.projectexport.steps.DumpElement; | |||
@@ -41,7 +39,6 @@ import org.sonar.ce.task.step.TestComputationStepContext; | |||
import org.sonar.db.DbTester; | |||
import org.sonar.db.component.BranchDto; | |||
import org.sonar.db.component.BranchType; | |||
import org.sonar.db.component.ComponentDto; | |||
import org.sonar.db.component.ProjectData; | |||
import org.sonar.db.project.ProjectExportMapper; | |||
@@ -50,13 +47,12 @@ import static org.assertj.core.api.Assertions.assertThat; | |||
import static org.assertj.core.api.Assertions.assertThatThrownBy; | |||
import static org.mockito.Mockito.mock; | |||
import static org.mockito.Mockito.when; | |||
import static org.sonar.db.component.ComponentDto.UUID_PATH_OF_ROOT; | |||
public class ExportBranchesStepIT { | |||
private static final String PROJECT_UUID = "PROJECT_UUID"; | |||
@Rule | |||
public DbTester dbTester = DbTester.createWithExtensionMappers(System2.INSTANCE, true, ProjectExportMapper.class); | |||
public DbTester dbTester = DbTester.createWithExtensionMappers(System2.INSTANCE, ProjectExportMapper.class); | |||
@Rule | |||
public LogTester logTester = new LogTester(); | |||
@@ -78,7 +78,7 @@ public class ExportComponentsStepIT { | |||
.setBranchUuid(PROJECT_UUID); | |||
@Rule | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE, true); | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE); | |||
@Rule | |||
public LogTester logTester = new LogTester(); | |||
@@ -55,7 +55,7 @@ public class ExportLineHashesStepIT { | |||
private static final String FILE_UUID_2 = "file-2-uuid"; | |||
@Rule | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE, true); | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE); | |||
@Rule | |||
public LogTester logTester = new LogTester(); | |||
@@ -38,11 +38,9 @@ import org.sonar.db.DbClient; | |||
import org.sonar.db.DbSession; | |||
import org.sonar.db.DbTester; | |||
import org.sonar.db.component.BranchDto; | |||
import org.sonar.db.component.BranchType; | |||
import org.sonar.db.component.ProjectData; | |||
import org.sonar.db.issue.IssueChangeDto; | |||
import org.sonar.db.issue.IssueDto; | |||
import org.sonar.db.project.ProjectDto; | |||
import static org.assertj.core.api.Assertions.assertThat; | |||
import static org.assertj.core.api.Assertions.assertThatThrownBy; | |||
@@ -63,7 +61,7 @@ public class ExportIssuesChangelogStepIT { | |||
private static final String ISSUE_CLOSED_UUID = "issue closed uuid"; | |||
@Rule | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE, true); | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE); | |||
@Rule | |||
public LogTester logTester = new LogTester(); | |||
@@ -83,7 +83,7 @@ public class ExportIssuesStepIT { | |||
public static final DbIssues.MessageFormatting MESSAGE_FORMATTING = DbIssues.MessageFormatting.newBuilder().setStart(0).setEnd(4).setType(MessageFormattingType.CODE).build(); | |||
@Rule | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE, true); | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE); | |||
@Rule | |||
public LogTester logTester = new LogTester(); | |||
@@ -28,8 +28,6 @@ import org.junit.Before; | |||
import org.junit.Rule; | |||
import org.junit.Test; | |||
import org.slf4j.event.Level; | |||
import org.sonar.api.resources.Qualifiers; | |||
import org.sonar.api.resources.Scopes; | |||
import org.sonar.api.rule.RuleKey; | |||
import org.sonar.api.rule.RuleStatus; | |||
import org.sonar.api.rule.Severity; | |||
@@ -53,7 +51,6 @@ import static org.assertj.core.api.Assertions.assertThat; | |||
import static org.assertj.core.api.Assertions.assertThatThrownBy; | |||
import static org.mockito.Mockito.mock; | |||
import static org.mockito.Mockito.when; | |||
import static org.sonar.db.component.ComponentDto.UUID_PATH_OF_ROOT; | |||
public class ExportAdHocRulesStepIT { | |||
private static final String PROJECT_UUID = "some-uuid"; | |||
@@ -67,7 +64,7 @@ public class ExportAdHocRulesStepIT { | |||
@Rule | |||
public LogTester logTester = new LogTester(); | |||
@Rule | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE, true); | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE); | |||
private int issueUuidGenerator = 1; | |||
private ComponentDto mainBranch; |
@@ -58,7 +58,7 @@ public class ExportEventsStepIT { | |||
@Rule | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE, true); | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE); | |||
@Rule | |||
public LogTester logTester = new LogTester(); |
@@ -46,7 +46,7 @@ public class ExportLinksStepIT { | |||
private ProjectDto projectDto; | |||
@Rule | |||
public DbTester db = DbTester.createWithExtensionMappers(System2.INSTANCE, true, ProjectExportMapper.class); | |||
public DbTester db = DbTester.createWithExtensionMappers(System2.INSTANCE, ProjectExportMapper.class); | |||
@Rule | |||
public LogTester logTester = new LogTester(); |
@@ -47,7 +47,7 @@ public class ExportLiveMeasuresStepIT { | |||
@Rule | |||
public LogTester logTester = new LogTester(); | |||
@Rule | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE, true); | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE); | |||
private final ComponentRepositoryImpl componentRepository = new ComponentRepositoryImpl(); | |||
private final MutableMetricRepository metricRepository = new MutableMetricRepositoryImpl(); |
@@ -97,7 +97,7 @@ public class ExportMeasuresStepIT { | |||
public LogTester logTester = new LogTester(); | |||
@Rule | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE, true); | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE); | |||
private ComponentRepositoryImpl componentRepository = new ComponentRepositoryImpl(); | |||
private MutableMetricRepository metricRepository = new MutableMetricRepositoryImpl(); |
@@ -52,7 +52,7 @@ public class ExportMetricsStepIT { | |||
public LogTester logTester = new LogTester(); | |||
@Rule | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE, true); | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE); | |||
MutableMetricRepository metricsHolder = new MutableMetricRepositoryImpl(); | |||
FakeDumpWriter dumpWriter = new FakeDumpWriter(); |
@@ -75,7 +75,7 @@ public class ExportNewCodePeriodsStepIT { | |||
@Rule | |||
public LogTester logTester = new LogTester(); | |||
@Rule | |||
public DbTester dbTester = DbTester.createWithExtensionMappers(System2.INSTANCE, true, ProjectExportMapper.class); | |||
public DbTester dbTester = DbTester.createWithExtensionMappers(System2.INSTANCE, ProjectExportMapper.class); | |||
private MutableProjectHolder projectHolder = new MutableProjectHolderImpl(); | |||
private FakeDumpWriter dumpWriter = new FakeDumpWriter(); |
@@ -29,12 +29,9 @@ import org.slf4j.event.Level; | |||
import org.sonar.api.resources.Qualifiers; | |||
import org.sonar.api.testfixtures.log.LogTester; | |||
import org.sonar.api.utils.System2; | |||
import org.sonar.ce.task.projectexport.component.ComponentRepositoryImpl; | |||
import org.sonar.ce.task.projectexport.component.MutableComponentRepository; | |||
import org.sonar.ce.task.step.TestComputationStepContext; | |||
import org.sonar.db.DbTester; | |||
import org.sonar.db.component.ComponentDto; | |||
import org.sonar.db.component.ProjectData; | |||
import org.sonar.db.entity.EntityDto; | |||
import org.sonar.db.project.ProjectDto; | |||
import org.sonar.db.project.ProjectExportMapper; | |||
@@ -60,7 +57,7 @@ public class ExportSettingsStepIT { | |||
@Rule | |||
public LogTester logTester = new LogTester(); | |||
@Rule | |||
public DbTester dbTester = DbTester.createWithExtensionMappers(System2.INSTANCE, true, ProjectExportMapper.class); | |||
public DbTester dbTester = DbTester.createWithExtensionMappers(System2.INSTANCE, ProjectExportMapper.class); | |||
private final MutableProjectHolder projectHolder = new MutableProjectHolderImpl(); | |||
private final FakeDumpWriter dumpWriter = new FakeDumpWriter(); | |||
private final ExportSettingsStep underTest = new ExportSettingsStep(dbTester.getDbClient(), projectHolder, dumpWriter); |
@@ -37,7 +37,7 @@ public class LoadProjectStepIT { | |||
private static final String PROJECT_KEY = "project_key"; | |||
@Rule | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE, true); | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE); | |||
private final ProjectDescriptor descriptor = new ProjectDescriptor("project_uuid", PROJECT_KEY, "Project Name"); | |||
private final MutableProjectHolder definitionHolder = new MutableProjectHolderImpl(); |
@@ -31,7 +31,7 @@ import static org.sonar.db.property.PropertyTesting.newComponentPropertyDto; | |||
public class ProjectConfigurationFactoryTest { | |||
@Rule | |||
public DbTester db = DbTester.create(true); | |||
public DbTester db = DbTester.create(); | |||
private final MapSettings settings = new MapSettings(); | |||
private final ProjectConfigurationFactory underTest = new ProjectConfigurationFactory(settings, db.getDbClient()); |
@@ -39,7 +39,7 @@ import static org.sonar.db.component.ComponentTesting.newPrivateProjectDto; | |||
public class ConfigurationRepositoryTest { | |||
@Rule | |||
public final DbTester db = DbTester.create(System2.INSTANCE, true); | |||
public final DbTester db = DbTester.create(System2.INSTANCE); | |||
@Rule | |||
public AnalysisMetadataHolderRule analysisMetadataHolder = new AnalysisMetadataHolderRule(); | |||
@@ -73,7 +73,7 @@ public class PullRequestSourceBranchMergerTest { | |||
private NonClosedTracking<DefaultIssue, DefaultIssue> prTracking; | |||
@Rule | |||
public DbTester db = DbTester.create(true); | |||
public DbTester db = DbTester.create(); | |||
private PullRequestSourceBranchMerger underTest; | |||
private RuleDto rule; |
@@ -66,7 +66,7 @@ public class RuleRepositoryImplTest { | |||
@org.junit.Rule | |||
public DbTester db = DbTester.create(System2.INSTANCE, true); | |||
public DbTester db = DbTester.create(System2.INSTANCE); | |||
private DbClient dbClient = mock(DbClient.class); | |||
private DbSession dbSession = mock(DbSession.class); |
@@ -51,7 +51,7 @@ import static org.mockito.Mockito.when; | |||
@RunWith(DataProviderRunner.class) | |||
public class MapBasedRawMeasureRepositoryTest { | |||
@Rule | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE, true); | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE); | |||
private static final String FILE_COMPONENT_KEY = "file cpt key"; | |||
private static final ReportComponent FILE_COMPONENT = ReportComponent.builder(Component.Type.FILE, 1) |
@@ -48,7 +48,7 @@ import static org.mockito.Mockito.when; | |||
public class CeTaskMessagesImplIT { | |||
@Rule | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE, true); | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE); | |||
private DbClient dbClient = dbTester.getDbClient(); | |||
private UuidFactory uuidFactory = mock(UuidFactory.class); |
@@ -47,7 +47,7 @@ public class AnalysisCacheCleaningSchedulerImplIT { | |||
private System2 system2 = mock(System2.class); | |||
private final static UuidFactory uuidFactory = new SequenceUuidFactory(); | |||
@Rule | |||
public DbTester dbTester = DbTester.create(system2, true); | |||
public DbTester dbTester = DbTester.create(system2); | |||
private DbSession dbSession = dbTester.getSession(); | |||
private ScannerAnalysisCacheDao scannerAnalysisCacheDao = dbTester.getDbClient().scannerAnalysisCacheDao(); | |||
@@ -62,7 +62,7 @@ public class ComputeEngineContainerImplIT { | |||
public TemporaryFolder tempFolder = new TemporaryFolder(); | |||
@Rule | |||
public DbTester db = DbTester.create(System2.INSTANCE, true); | |||
public DbTester db = DbTester.create(System2.INSTANCE); | |||
private final ServiceLoaderWrapper serviceLoaderWrapper = mock(ServiceLoaderWrapper.class); | |||
private final ProcessProperties processProperties = new ProcessProperties(serviceLoaderWrapper); |
@@ -37,7 +37,7 @@ import static org.assertj.core.api.Assertions.assertThat; | |||
public class CeDatabaseMBeanImplIT { | |||
@Rule | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE, true); | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE); | |||
private final CeDatabaseMBeanImpl underTest = new CeDatabaseMBeanImpl(dbTester.getDbClient()); | |||
@@ -65,7 +65,7 @@ import static org.sonar.db.component.ComponentTesting.newDirectory; | |||
public class ReportAnalysisFailureNotificationExecutionListenerIT { | |||
@Rule | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE, true); | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE); | |||
private final Random random = new Random(); | |||
private final DbClient dbClient = dbTester.getDbClient(); |
@@ -76,7 +76,7 @@ public class InternalCeQueueImplIT { | |||
private final System2 system2 = new AlwaysIncreasingSystem2(); | |||
@Rule | |||
public DbTester db = DbTester.create(system2, true); | |||
public DbTester db = DbTester.create(system2); | |||
private final DbSession session = db.getSession(); | |||
private final UuidFactory uuidFactory = UuidFactoryImpl.INSTANCE; |
@@ -58,7 +58,7 @@ public class NextPendingTaskPickerIT { | |||
private NextPendingTaskPicker underTest; | |||
@Rule | |||
public DbTester db = DbTester.create(alwaysIncreasingSystem2, true); | |||
public DbTester db = DbTester.create(alwaysIncreasingSystem2); | |||
@Before | |||
public void before() { |
@@ -85,7 +85,7 @@ public class CeWorkerImplIT { | |||
@Rule | |||
public LogTester logTester = new LogTester(); | |||
@Rule | |||
public DbTester db = DbTester.create(system2, true); | |||
public DbTester db = DbTester.create(system2); | |||
private DbSession session = db.getSession(); | |||
@@ -29,7 +29,7 @@ import static org.assertj.core.api.Assertions.assertThat; | |||
public class DatabaseMBeanIT { | |||
@Rule | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE, true); | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE); | |||
private final FakeDatabaseMBean underTest = new FakeDatabaseMBean(dbTester.getDbClient()); | |||
@@ -29,7 +29,7 @@ import static org.assertj.core.api.Assertions.assertThat; | |||
public class IsAliveMapperIT { | |||
@Rule | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE, true); | |||
public DbTester dbTester = DbTester.create(System2.INSTANCE); | |||
private DbSession session; | |||
private IsAliveMapper underTest; |
@@ -43,7 +43,7 @@ public class AlmPatDaoIT { | |||
private static final String A_UUID = "SOME_UUID"; | |||
private TestSystem2 system2 = new TestSystem2().setNow(NOW); | |||
@Rule | |||
public DbTester db = DbTester.create(system2, true); | |||
public DbTester db = DbTester.create(system2); | |||
private DbSession dbSession = db.getSession(); | |||
private UuidFactory uuidFactory = mock(UuidFactory.class); |
@@ -51,7 +51,7 @@ public class AlmPatDaoWithPersisterIT { | |||
private final ArgumentCaptor<PersonalAccessTokenNewValue> newValueCaptor = ArgumentCaptor.forClass(PersonalAccessTokenNewValue.class); | |||
private final TestSystem2 system2 = new TestSystem2().setNow(NOW); | |||
@Rule | |||
public DbTester db = DbTester.create(system2, auditPersister, true); | |||
public DbTester db = DbTester.create(system2, auditPersister); | |||
private final DbSession dbSession = db.getSession(); | |||
private final UuidFactory uuidFactory = mock(UuidFactory.class); |
@@ -48,7 +48,7 @@ public class AlmSettingDaoIT { | |||
private final TestSystem2 system2 = new TestSystem2().setNow(NOW); | |||
@Rule | |||
public DbTester db = DbTester.create(system2, true); | |||
public DbTester db = DbTester.create(system2); | |||
private final DbSession dbSession = db.getSession(); | |||
private final UuidFactory uuidFactory = mock(UuidFactory.class); |
@@ -46,7 +46,7 @@ public class AlmSettingDaoWithPersisterIT { | |||
private final AuditPersister auditPersister = mock(AuditPersister.class); | |||
private final TestSystem2 system2 = new TestSystem2().setNow(NOW); | |||
@Rule | |||
public final DbTester db = DbTester.create(system2, auditPersister, true); | |||
public final DbTester db = DbTester.create(system2, auditPersister); | |||
private final DbSession dbSession = db.getSession(); | |||
private final UuidFactory uuidFactory = mock(UuidFactory.class); |
@@ -45,7 +45,7 @@ public class ProjectAlmSettingDaoIT { | |||
private static final String A_UUID = "SOME_UUID"; | |||
private TestSystem2 system2 = new TestSystem2().setNow(A_DATE); | |||
@Rule | |||
public DbTester db = DbTester.create(system2, true); | |||
public DbTester db = DbTester.create(system2); | |||
private DbSession dbSession = db.getSession(); | |||
private UuidFactory uuidFactory = mock(UuidFactory.class); |
@@ -49,7 +49,7 @@ public class ProjectAlmSettingDaoWithPersisterIT { | |||
private final TestSystem2 system2 = new TestSystem2().setNow(A_DATE); | |||
@Rule | |||
public final DbTester db = DbTester.create(system2, auditPersister, true); | |||
public final DbTester db = DbTester.create(system2, auditPersister); | |||
private final DbSession dbSession = db.getSession(); | |||
private final UuidFactory uuidFactory = UuidFactoryFast.getInstance(); |
@@ -36,7 +36,7 @@ public class AuditDaoIT { | |||
private static final long NOW = 1000000L; | |||
private final TestSystem2 system2 = new TestSystem2().setNow(NOW); | |||
@Rule | |||
public final DbTester db = DbTester.create(system2, true); | |||
public final DbTester db = DbTester.create(system2); | |||
private final DbSession dbSession = db.getSession(); | |||
private final AuditDao testAuditDao = new AuditDao(system2, UuidFactoryImpl.INSTANCE); |