public String getDataSourceName() { String dataSource = ""; if (configuration.isDefaultDataSourceDefined()) { dataSource = configuration.getDefaultDataSource(); } final DataSource dataSourceAnnotation = metadataExtractor.dataSource().fetchUsingFirst(testMethod); if (dataSourceAnnotation != null) { dataSource = dataSourceAnnotation.value(); } if (Strings.isEmpty(dataSource)) { throw new DataSourceNotDefinedException( "DataSource not defined! Please declare it in arquillian.xml or by using @DataSource annotation."); } return dataSource; } }
public String getDataSourceName() { String dataSource = ""; if (configuration.isDefaultDataSourceDefined()) { dataSource = configuration.getDefaultDataSource(); } final DataSource dataSourceAnnotation = metadataExtractor.dataSource().fetchUsingFirst(testMethod); if (dataSourceAnnotation != null) { dataSource = dataSourceAnnotation.value(); } if (Strings.isEmpty(dataSource)) { throw new DataSourceNotDefinedException("DataSource not defined! Please declare it in arquillian.xml or by using @DataSource annotation."); } return dataSource; }
public String getDataSourceName() { String dataSource = ""; if (configuration.isDefaultDataSourceDefined()) { dataSource = configuration.getDefaultDataSource(); } final DataSource dataSourceAnnotation = metadataExtractor.dataSource().fetchUsingFirst(testMethod); if (dataSourceAnnotation != null) { dataSource = dataSourceAnnotation.value(); } if (Strings.isEmpty(dataSource)) { throw new DataSourceNotDefinedException("DataSource not defined! Please declare it in arquillian.xml or by using @DataSource annotation."); } return dataSource; }