#54 - Build against R2DBC 1.0 snapshots.

This commit is contained in:
Mark Paluch
2019-02-01 09:43:51 +01:00
parent 3a5278ce87
commit 432b885853
21 changed files with 66 additions and 106 deletions

View File

@@ -29,7 +29,7 @@ public class IndexedBindMarkersUnitTests {
@Test // gh-15
public void shouldCreateNewBindMarkersWithOffset() {
Statement<?> statement = mock(Statement.class);
Statement statement = mock(Statement.class);
BindMarkers bindMarkers = BindMarkersFactory.indexed("$", 1).create();
@@ -65,7 +65,7 @@ public class IndexedBindMarkersUnitTests {
@Test // gh-15
public void bindValueShouldBindByIndex() {
Statement<?> statement = mock(Statement.class);
Statement statement = mock(Statement.class);
BindMarkers bindMarkers = BindMarkersFactory.indexed("$", 0).create();
@@ -79,7 +79,7 @@ public class IndexedBindMarkersUnitTests {
@Test // gh-15
public void bindNullShouldBindByIndex() {
Statement<?> statement = mock(Statement.class);
Statement statement = mock(Statement.class);
BindMarkers bindMarkers = BindMarkersFactory.indexed("$", 0).create();

View File

@@ -85,7 +85,7 @@ public class NamedBindMarkersUnitTests {
@Test // gh-15
public void bindValueShouldBindByName() {
Statement<?> statement = mock(Statement.class);
Statement statement = mock(Statement.class);
BindMarkers bindMarkers = BindMarkersFactory.named("@", "p", 32).create();
@@ -99,7 +99,7 @@ public class NamedBindMarkersUnitTests {
@Test // gh-15
public void bindNullShouldBindByName() {
Statement<?> statement = mock(Statement.class);
Statement statement = mock(Statement.class);
BindMarkers bindMarkers = BindMarkersFactory.named("@", "p", 32).create();

View File

@@ -30,7 +30,7 @@ public class DefaultReactiveDataAccessStrategyUnitTests {
BindableOperation operation = strategy.insertAndReturnGeneratedKeys("table",
new HashSet<>(Arrays.asList("firstname", "lastname")));
assertThat(operation.toQuery()).isEqualTo("INSERT INTO table (firstname, lastname) VALUES($1, $2) RETURNING *");
assertThat(operation.toQuery()).isEqualTo("INSERT INTO table (firstname, lastname) VALUES($1, $2)");
}
@Test // gh-20
@@ -73,7 +73,7 @@ public class DefaultReactiveDataAccessStrategyUnitTests {
@Test // gh-20
public void shouldRenderSelectByIdInQuery() {
Statement<?> statement = mock(Statement.class);
Statement statement = mock(Statement.class);
BindIdOperation operation = strategy.selectByIdIn("table", new HashSet<>(Arrays.asList("firstname", "lastname")),
"id");
@@ -95,7 +95,7 @@ public class DefaultReactiveDataAccessStrategyUnitTests {
@Test // gh-20
public void shouldRenderDeleteByIdInQuery() {
Statement<?> statement = mock(Statement.class);
Statement statement = mock(Statement.class);
BindIdOperation operation = strategy.deleteByIdIn("table", "id");
operation.bindId(statement, Collections.singleton("foo"));

View File

@@ -94,7 +94,7 @@ public class NamedParameterUtilsUnitTests {
namedParams.addValue("a",
Arrays.asList(new Object[] { "Walter", "Heisenberg" }, new Object[] { "Walt Jr.", "Flynn" }));
Statement<?> mockStatement = mock(Statement.class);
Statement mockStatement = mock(Statement.class);
BindableOperation operation = NamedParameterUtils.substituteNamedParameters("xxx :a", BIND_MARKERS, namedParams);
operation.bind(mockStatement, "a", namedParams.getValue("a"));

View File

@@ -75,6 +75,7 @@ public class PostgresIntegrationTests extends R2dbcIntegrationTestSupport {
}
@Test // gh-30
@Ignore("https://github.com/r2dbc/r2dbc-postgresql/issues/67")
public void shouldReadAndWriteBoxedSingleDimensionArrays() {
EntityWithArrays withArrays = new EntityWithArrays(new Integer[] { 1, 2, 3 }, null, null, null);
@@ -89,6 +90,7 @@ public class PostgresIntegrationTests extends R2dbcIntegrationTestSupport {
}
@Test // gh-30
@Ignore("https://github.com/r2dbc/r2dbc-postgresql/issues/67")
public void shouldReadAndWriteConvertedDimensionArrays() {
EntityWithArrays withArrays = new EntityWithArrays(null, null, null, Arrays.asList(5, 6, 7));