use of com.sequenceiq.environment.api.v1.platformresource.model.PlatformNoSqlTableResponse in project cloudbreak by hortonworks.
the class CloudNoSqlTablesToPlatformNoSqlTablesV1ResponseConverterTest method convert.
@Test
void convert() {
List<CloudNoSqlTable> tables = List.of(new CloudNoSqlTable("a"), new CloudNoSqlTable("b"));
CloudNoSqlTables source = new CloudNoSqlTables(tables);
PlatformNoSqlTablesResponse result = underTest.convert(source);
List<PlatformNoSqlTableResponse> noSqlTables = result.getNoSqlTables();
assertNotNull(noSqlTables);
assertEquals(tables.size(), noSqlTables.size());
tables.forEach(t -> {
assertTrue(noSqlTables.stream().anyMatch(s -> t.getName().equals(s.getName())));
});
}
Aggregations