@Test public void listBeans() { DataProviderServices providerServices = DataProviderServices.lookup(); System.out.println("\nData provider types"); System.out.println("-----------------------"); DataProviderType[] dataProviders = providerServices.getDataProviderManager().getDataProviderTypes(); for (DataProviderType providerType : dataProviders) { System.out.println(providerType.getUid()); } System.out.println("Scalar functions"); System.out.println("------------------------"); ScalarFunction[] scalarFunctions = providerServices.getScalarFunctionManager().getAllScalarFunctions(); for (ScalarFunction scalarFunction : scalarFunctions) { System.out.println(scalarFunction.getCode()); } } }
@Test public void checkTypes() { DataProviderManager dataProviderManager = DataProviderServices.lookup().getDataProviderManager(); assertThat(dataProviderManager).isNotNull(); assertThat(dataProviderManager.getDataProviderTypes().length>0); for (DataProviderType dataProviderType : dataProviderTypes) { System.out.println(dataProviderType.getUid()); } } }