Skip to content
Snippets Groups Projects
Commit 09d3d284 authored by Pedro Pablo Cardona Arroyave's avatar Pedro Pablo Cardona Arroyave
Browse files

Tests related to category were fixed.

parent a5cedb45
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@ import lombok.NoArgsConstructor;
public class Category {
@Id
@Column(name = "category_name")
String ean;
String categoryName;
@Column(name = "category_description")
String description;
}
\ No newline at end of file
......@@ -34,7 +34,7 @@ public class ProductRepositoryTest {
.ean(1234567890123L)
.name("Test Product")
.description("This is a test product")
.category_name("TestCategory")
.categoryName("TestCategory")
.build();
entityManager.persist(product);
}
......@@ -69,7 +69,7 @@ public class ProductRepositoryTest {
.ean(1234567890124L)
.name("New Product")
.description("This is a new product")
.category_name("TestCategory")
.categoryName("TestCategory")
.build();
productRepository.save(newProduct);
List<Product> products = productRepository.findAll();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment