test_class.declarator: DRIVER_CLASS_NAME = "org.h2.Driver"
test_class.modifier: private static final
test_class.original_string: private static final String DRIVER_CLASS_NAME = "org.h2.Driver";
test_class.type: String
test_class.var_name: DRIVER_CLASS_NAME
test_class.declarator: USERNAME = "username"
test_class.modifier: private static final
test_class.original_string: private static final String USERNAME = "username";
test_class.type: String
test_class.var_name: USERNAME
test_class.declarator: PASSWORD = "password"
test_class.modifier: private static final
test_class.original_string: private static final String PASSWORD = "password";
test_class.type: String
test_class.var_name: PASSWORD
test_class.declarator: URL = "url"
test_class.modifier: private static final
test_class.original_string: private static final String URL = "url";
test_class.type: String
test_class.var_name: URL
test_class.declarator: mockDataSourceProperties
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private DataSourceProperties mockDataSourceProperties;
test_class.type: DataSourceProperties
test_class.var_name: mockDataSourceProperties
test_class.declarator: datasourceConfig
test_class.modifier: private
test_class.original_string: private DatasourceConfig datasourceConfig;
test_class.type: DatasourceConfig
test_class.var_name: datasourceConfig
test_class.file: application/confagrid-webapp/src/test/java/com/aleggeup/confagrid/config/DatasourceConfigTest.java
test_class.identifier: DatasourceConfigTest
test_case.body: @Test
      public void test() {
          Mockito.when(mockDataSourceProperties.getDriverClassName()).thenReturn(DRIVER_CLASS_NAME);
          Mockito.when(mockDataSourceProperties.getUsername()).thenReturn(USERNAME);
          Mockito.when(mockDataSourceProperties.getPassword()).thenReturn(PASSWORD);
          Mockito.when(mockDataSourceProperties.getUrl()).thenReturn(URL);
          datasourceConfig.datasource(mockDataSourceProperties);
  
          Mockito.verify(mockDataSourceProperties).getDriverClassName();
          Mockito.verify(mockDataSourceProperties).getUsername();
          Mockito.verify(mockDataSourceProperties).getPassword();
          Mockito.verify(mockDataSourceProperties).getUrl();
      }
test_case.class_method_signature: DatasourceConfigTest.test()
test_case.full_signature: @Test public void test()
test_case.identifier: test
test_case.invocations: thenReturn when getDriverClassName thenReturn when getUsername thenReturn when getPassword thenReturn when getUrl datasource getDriverClassName verify getUsername verify getPassword verify getUrl verify
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void test()
focal_class.file: application/confagrid-webapp/src/main/java/com/aleggeup/confagrid/config/DatasourceConfig.java
focal_class.identifier: DatasourceConfig
focal_class.class_method_signature: DatasourceConfig.datasource(final DataSourceProperties datasourceProperties)
focal_class.full_signature: @Bean @Primary DataSource datasource(final DataSourceProperties datasourceProperties)
focal_class.identifier: datasource
focal_class.modifiers: @Bean @Primary
focal_class.parameters: (final DataSourceProperties datasourceProperties)
focal_class.return: DataSource
focal_class.signature: DataSource datasource(final DataSourceProperties datasourceProperties)
focal_method.body: @Bean
      @Primary
      DataSource datasource(final DataSourceProperties datasourceProperties) {
          final DriverManagerDataSource dataSource = new DriverManagerDataSource();
          dataSource.setDriverClassName(datasourceProperties.getDriverClassName());
          dataSource.setUsername(datasourceProperties.getUsername());
          dataSource.setPassword(datasourceProperties.getPassword());
          dataSource.setUrl(datasourceProperties.getUrl());
  
          return dataSource;
      }
focal_method.class_method_signature: DatasourceConfig.datasource(final DataSourceProperties datasourceProperties)
focal_method.full_signature: @Bean @Primary DataSource datasource(final DataSourceProperties datasourceProperties)
focal_method.identifier: datasource
focal_method.invocations: setDriverClassName getDriverClassName setUsername getUsername setPassword getPassword setUrl getUrl
focal_method.modifiers: @Bean @Primary
focal_method.parameters: (final DataSourceProperties datasourceProperties)
focal_method.return: DataSource
focal_method.signature: DataSource datasource(final DataSourceProperties datasourceProperties)