Skip to content
Snippets Groups Projects
Commit f7973e85 authored by Martin Weise's avatar Martin Weise
Browse files

tests positive

Former-commit-id: d463cb3c
parent f4c11e6b
No related branches found
No related tags found
1 merge request!23Sprint results
...@@ -27,8 +27,6 @@ import java.util.Optional; ...@@ -27,8 +27,6 @@ import java.util.Optional;
import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.BDDMockito.given;
import static org.mockito.Mockito.*; import static org.mockito.Mockito.*;
@SpringBootTest @SpringBootTest
...@@ -95,25 +93,6 @@ public class TableEndpointUnitTest extends BaseUnitTest { ...@@ -95,25 +93,6 @@ public class TableEndpointUnitTest extends BaseUnitTest {
}); });
} }
@Test
public void create_tableNotFound_fails() throws DatabaseConnectionException, TableMalformedException,
DatabaseNotFoundException, ImageNotSupportedException, DataProcessingException {
final TableCreateDto request = TableCreateDto.builder()
.name(TABLE_1_NAME)
.description(TABLE_1_DESCRIPTION)
.columns(COLUMNS5)
.build();
when(tableService.create(DATABASE_1_ID, request))
.thenAnswer(invocation -> {
throw new TableNotFoundException("no table");
});
/* test */
assertThrows(TableNotFoundException.class, () -> {
tableEndpoint.create(DATABASE_1_ID, request);
});
}
@Disabled("not throwing") @Disabled("not throwing")
@Test @Test
public void create_notPostgres_fails() { public void create_notPostgres_fails() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment