Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into reactive-streams-br…
Browse files Browse the repository at this point in the history
…anch

# Conflicts:
#	build.gradle
  • Loading branch information
bbakerman committed May 20, 2024
2 parents 288be41 + 6ede2e6 commit e16fa65
Show file tree
Hide file tree
Showing 19 changed files with 375 additions and 396 deletions.
7 changes: 6 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,14 @@ dependencies {
api 'org.reactivestreams:reactive-streams:' + reactiveStreamsVersion

testImplementation 'org.slf4j:slf4j-simple:' + slf4jVersion
testImplementation 'junit:junit:4.12'
testImplementation 'org.awaitility:awaitility:2.0.0'
testImplementation "org.hamcrest:hamcrest:2.2"
testImplementation 'io.projectreactor:reactor-core:3.6.6'
testImplementation 'com.github.ben-manes.caffeine:caffeine:2.9.0'
testImplementation platform('org.junit:junit-bom:5.10.2')
testImplementation 'org.junit.jupiter:junit-jupiter-api'
testImplementation 'org.junit.jupiter:junit-jupiter-params'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
testImplementation 'io.projectreactor:reactor-core:3.6.6'
}

Expand Down Expand Up @@ -102,6 +106,7 @@ test {
testLogging {
exceptionFormat = 'full'
}
useJUnitPlatform()
}

publishing {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.dataloader;

import org.junit.Test;
import org.junit.jupiter.api.Test;

import java.util.ArrayList;
import java.util.HashMap;
Expand All @@ -14,8 +14,8 @@
import static java.util.Collections.singletonList;
import static org.dataloader.DataLoaderFactory.newDataLoader;
import static org.dataloader.DataLoaderFactory.newMappedDataLoader;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.equalTo;
import static org.junit.Assert.assertThat;

/**
* Tests related to context. DataLoaderTest is getting to big and needs refactoring
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/org/dataloader/DataLoaderCacheMapTest.java
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
package org.dataloader;

import org.junit.Test;
import org.junit.jupiter.api.Test;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.concurrent.CompletableFuture;

import static org.dataloader.DataLoaderFactory.newDataLoader;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.equalTo;
import static org.junit.Assert.assertThat;

/**
* Tests for cacheMap functionality..
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/org/dataloader/DataLoaderIfPresentTest.java
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
package org.dataloader;

import org.junit.Test;
import org.junit.jupiter.api.Test;

import java.util.Optional;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.CompletionStage;

import static org.dataloader.DataLoaderFactory.newDataLoader;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.sameInstance;
import static org.junit.Assert.assertThat;

/**
* Tests for IfPresent and IfCompleted functionality.
Expand Down
184 changes: 0 additions & 184 deletions src/test/java/org/dataloader/DataLoaderMapBatchLoaderTest.java

This file was deleted.

4 changes: 2 additions & 2 deletions src/test/java/org/dataloader/DataLoaderRegistryTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

import org.dataloader.stats.SimpleStatisticsCollector;
import org.dataloader.stats.Statistics;
import org.junit.Test;
import org.junit.jupiter.api.Test;

import java.util.concurrent.CompletableFuture;

import static java.util.Arrays.asList;
import static org.dataloader.DataLoaderFactory.newDataLoader;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.hasItems;
import static org.hamcrest.Matchers.sameInstance;
import static org.junit.Assert.assertThat;

public class DataLoaderRegistryTest {
final BatchLoader<Object, Object> identityBatchLoader = CompletableFuture::completedFuture;
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/org/dataloader/DataLoaderStatsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import org.dataloader.stats.context.IncrementCacheHitCountStatisticsContext;
import org.dataloader.stats.context.IncrementLoadCountStatisticsContext;
import org.dataloader.stats.context.IncrementLoadErrorCountStatisticsContext;
import org.junit.Test;
import org.junit.jupiter.api.Test;

import java.util.ArrayList;
import java.util.List;
Expand All @@ -19,9 +19,9 @@
import static java.util.Collections.singletonList;
import static java.util.concurrent.CompletableFuture.completedFuture;
import static org.dataloader.DataLoaderFactory.newDataLoader;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.hasSize;
import static org.junit.Assert.assertThat;

/**
* Tests related to stats. DataLoaderTest is getting to big and needs refactoring
Expand Down
Loading

0 comments on commit e16fa65

Please sign in to comment.