Class HelloH2InMemoryNTest
java.lang.Object
info.ejava.examples.svc.docker.hello.HelloH2InMemoryNTest
@SpringBootTest(classes={info.ejava.examples.svc.docker.hello.DockerComposeHelloApp.class,ClientTestConfiguration.class},
webEnvironment=RANDOM_PORT)
@ActiveProfiles({"test","inmemory"})
class HelloH2InMemoryNTest
extends Object
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.springframework.web.client.RestTemplateprivate DataSourceprivate Stringprivate org.springframework.web.util.UriComponentsBuilder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void(package private) voidinit(int port) (package private) void
-
Field Details
-
expectedJdbcUrl
-
dataSource
-
anonymousUser
@Autowired private org.springframework.web.client.RestTemplate anonymousUser -
helloDBUrl
private org.springframework.web.util.UriComponentsBuilder helloDBUrl
-
-
Constructor Details
-
HelloH2InMemoryNTest
HelloH2InMemoryNTest()
-
-
Method Details
-
init
@BeforeEach void init(@LocalServerPort int port) -
can_get_connection
- Throws:
SQLException
-
server_can_get_jdbc_connection
@Test void server_can_get_jdbc_connection()
-