Search in sources :

Example 1 with TypeSystem

use of org.neo4j.driver.types.TypeSystem in project spring-boot by spring-projects.

the class MockedDriverConfiguration method driver.

@Bean
Driver driver() {
    Driver driver = mock(Driver.class);
    TypeSystem typeSystem = mock(TypeSystem.class);
    Session session = mock(Session.class);
    given(driver.defaultTypeSystem()).willReturn(typeSystem);
    given(driver.session(ArgumentMatchers.any(SessionConfig.class))).willReturn(session);
    return driver;
}
Also used : TypeSystem(org.neo4j.driver.types.TypeSystem) Driver(org.neo4j.driver.Driver) SessionConfig(org.neo4j.driver.SessionConfig) Session(org.neo4j.driver.Session) Bean(org.springframework.context.annotation.Bean)

Aggregations

Driver (org.neo4j.driver.Driver)1 Session (org.neo4j.driver.Session)1 SessionConfig (org.neo4j.driver.SessionConfig)1 TypeSystem (org.neo4j.driver.types.TypeSystem)1 Bean (org.springframework.context.annotation.Bean)1