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

Removed id from the entity

parent 41ebcce6
Branches
Tags
1 merge request!106Dev
...@@ -49,13 +49,12 @@ public class ContainerServiceUnitTest extends BaseUnitTest { ...@@ -49,13 +49,12 @@ public class ContainerServiceUnitTest extends BaseUnitTest {
/* mock data */ /* mock data */
userRepository.save(USER_1); userRepository.save(USER_1);
final ContainerImage tmp = ContainerImage.builder() final ContainerImage tmp = ContainerImage.builder()
.id(IMAGE_1_ID)
.repository(IMAGE_1_REPOSITORY) .repository(IMAGE_1_REPOSITORY)
.tag(IMAGE_1_TAG) .tag(IMAGE_1_TAG)
.hash(IMAGE_1_HASH) .hash(IMAGE_1_HASH)
.jdbcMethod("mariadb") .jdbcMethod(IMAGE_1_JDBC)
.dialect("org.hibernate.dialect.MariaDBDialect") .dialect(IMAGE_1_DIALECT)
.driverClass("org.mariadb.jdbc.Driver") .driverClass(IMAGE_1_DRIVER)
.compiled(IMAGE_1_BUILT) .compiled(IMAGE_1_BUILT)
.size(IMAGE_1_SIZE) .size(IMAGE_1_SIZE)
.environment(IMAGE_1_ENV) .environment(IMAGE_1_ENV)
......
...@@ -49,7 +49,6 @@ public class ImageServiceIntegrationTest extends BaseUnitTest { ...@@ -49,7 +49,6 @@ public class ImageServiceIntegrationTest extends BaseUnitTest {
public void beforeEach() { public void beforeEach() {
userRepository.save(USER_1); userRepository.save(USER_1);
final ContainerImage tmp = ContainerImage.builder() final ContainerImage tmp = ContainerImage.builder()
.id(IMAGE_1_ID)
.repository(IMAGE_1_REPOSITORY) .repository(IMAGE_1_REPOSITORY)
.tag(IMAGE_1_TAG) .tag(IMAGE_1_TAG)
.hash(IMAGE_1_HASH) .hash(IMAGE_1_HASH)
...@@ -140,7 +139,6 @@ public class ImageServiceIntegrationTest extends BaseUnitTest { ...@@ -140,7 +139,6 @@ public class ImageServiceIntegrationTest extends BaseUnitTest {
@Test @Test
public void delete_noContainer_succeeds() throws ImageNotFoundException, PersistenceException { public void delete_noContainer_succeeds() throws ImageNotFoundException, PersistenceException {
imageRepository.save(IMAGE_1);
/* test */ /* test */
imageService.delete(IMAGE_1_ID); imageService.delete(IMAGE_1_ID);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment