@ -43,22 +43,22 @@ public class InfluxDbAutoConfigurationTests {
}
}
@Test
@Test
public void client RequiresUrl( ) {
public void influxDb RequiresUrl( ) {
load ( ) ;
load ( ) ;
assertThat ( this . context . getBeansOfType ( InfluxDB . class ) ) . isEmpty ( ) ;
assertThat ( this . context . getBeansOfType ( InfluxDB . class ) ) . isEmpty ( ) ;
}
}
@Test
@Test
public void client CanBeCustomized( ) {
public void influxDb CanBeCustomized( ) {
load ( "spring.influx. client. url=http://localhost",
load ( "spring.influx. url=http://localhost",
"spring.influx. client. password:password",
"spring.influx. password:password",
"spring.influx. client. user:user") ;
"spring.influx. user:user") ;
assertThat ( this . context . getBeansOfType ( InfluxDB . class ) ) . hasSize ( 1 ) ;
assertThat ( this . context . getBeansOfType ( InfluxDB . class ) ) . hasSize ( 1 ) ;
}
}
@Test
@Test
public void client CanBeCreatedWithoutCredentials( ) {
public void influxDb CanBeCreatedWithoutCredentials( ) {
load ( "spring.influx. client. url=http://localhost") ;
load ( "spring.influx. url=http://localhost") ;
assertThat ( this . context . getBeansOfType ( InfluxDB . class ) ) . hasSize ( 1 ) ;
assertThat ( this . context . getBeansOfType ( InfluxDB . class ) ) . hasSize ( 1 ) ;
}
}