use of org.neo4j.bolt.packstream.Neo4jPackV2 in project neo4j by neo4j.
the class SupportedStructTypesV2IT method setup.
@BeforeEach
public void setup(TestInfo testInfo) throws IOException {
server.setConfigure(withOptionalBoltEncryption());
server.init(testInfo);
address = server.lookupDefaultConnector();
util = new TransportTestUtil(new Neo4jPackV2());
}
use of org.neo4j.bolt.packstream.Neo4jPackV2 in project neo4j by neo4j.
the class MessageDecoderTest method shouldCallExternalErrorOnDuration.
@ParameterizedTest
@MethodSource("argumentsProvider")
public void shouldCallExternalErrorOnDuration(Neo4jPack packerUnderTest) throws Exception {
this.packerUnderTest = packerUnderTest;
assumeThat(packerUnderTest.version()).isEqualTo(1);
testUnpackableStructParametersWithKnownType(new Neo4jPackV2(), durationValue(Duration.ofDays(10)), "Duration values cannot be unpacked with this version of bolt.");
}
use of org.neo4j.bolt.packstream.Neo4jPackV2 in project neo4j by neo4j.
the class MessageDecoderTest method shouldCallExternalErrorOnLocalTime.
@ParameterizedTest
@MethodSource("argumentsProvider")
public void shouldCallExternalErrorOnLocalTime(Neo4jPack packerUnderTest) throws Exception {
this.packerUnderTest = packerUnderTest;
assumeThat(packerUnderTest.version()).isEqualTo(1);
testUnpackableStructParametersWithKnownType(new Neo4jPackV2(), ValueUtils.of(LocalTime.now()), "LocalTime values cannot be unpacked with this version of bolt.");
}
use of org.neo4j.bolt.packstream.Neo4jPackV2 in project neo4j by neo4j.
the class MessageDecoderTest method shouldCallExternalErrorOnDate.
@ParameterizedTest
@MethodSource("argumentsProvider")
public void shouldCallExternalErrorOnDate(Neo4jPack packerUnderTest) throws Exception {
this.packerUnderTest = packerUnderTest;
assumeThat(packerUnderTest.version()).isEqualTo(1);
testUnpackableStructParametersWithKnownType(new Neo4jPackV2(), ValueUtils.of(LocalDate.now()), "LocalDate values cannot be unpacked with this version of bolt.");
}
use of org.neo4j.bolt.packstream.Neo4jPackV2 in project neo4j by neo4j.
the class MessageDecoderTest method shouldCallExternalErrorOnLocalDateTime.
@ParameterizedTest
@MethodSource("argumentsProvider")
public void shouldCallExternalErrorOnLocalDateTime(Neo4jPack packerUnderTest) throws Exception {
this.packerUnderTest = packerUnderTest;
assumeThat(packerUnderTest.version()).isEqualTo(1);
testUnpackableStructParametersWithKnownType(new Neo4jPackV2(), ValueUtils.of(LocalDateTime.now()), "LocalDateTime values cannot be unpacked with this version of bolt.");
}
Aggregations