@Test public void findDataSourceByUuidReturnObjectIfExists() throws Exception { DataSourceApi dataSource = state.getCurrentContainer() .createDataSource(null, DataSourceType.NEO4J_BOLT, "testName", Collections.emptyMap()); state.getCurrentContainer().addDataSource(dataSource); DataSourceApi foundDataSource = state.getCurrentContainer().findDataSource(dataSource.getUUID()).get(); assertThat(foundDataSource.getUUID()).isEqualTo(dataSource.getUUID()); assertThat(foundDataSource.getName()).isEqualTo(dataSource.getName()); }
public DataSourceContainer getCurrentContainer() { return containerV1; }
DataSourcesComponentState { public DataSourceContainer getCurrentContainer() { return containerV1; } }
DataSourcesComponentState { public DataSourceContainer getCurrentContainer() { return containerV1; }  }
DataSourcesComponentState { public DataSourceContainer getCurrentContainer() { return containerV1; }  DataSourceContainer getCurrentContainer(); void migrate(); }
DataSourcesComponentState { public DataSourceContainer getCurrentContainer() { return containerV1; }  DataSourceContainer getCurrentContainer(); void migrate(); public List<DataSource> dataSources; public DataSourceContainerV1 containerV1; }