package com.storage.mywarehouse.Entity;

public class ProductTest {
}

@@ -38,33 +38,2060 @@
 y;%0A%0A
-public class ProductTest %7B
+import org.junit.jupiter.api.Test;%0Aimport static org.junit.jupiter.api.Assertions.*;%0A%0Apublic class ProductTest %7B%0A%0A    @Test%0A    public void testProductConstructor() %7B%0A        // empty constructor%0A        final Product product = new Product();%0A        assertAll(%0A            () -%3E assertEquals(0, product.getProductId()),%0A            () -%3E assertNull(product.getBrand()),%0A            () -%3E assertNull(product.getType()),%0A            () -%3E assertNull(product.getDescription()),%0A            () -%3E assertEquals(0d, product.getPrice())%0A        );%0A        product.setProductId(5);%0A        product.setBrand(%22brand%22);%0A        product.setType(%22type%22);%0A        product.setDescription(%22desc%22);%0A        product.setPrice(3.5);%0A        assertAll(%0A            () -%3E assertEquals(5, product.getProductId()),%0A            () -%3E assertEquals(%22brand%22, product.getBrand()),%0A            () -%3E assertEquals(%22type%22, product.getType()),%0A            () -%3E assertEquals(%22desc%22, product.getDescription()),%0A            () -%3E assertEquals(3.5, product.getPrice())%0A        );%0A%0A        // constructor with productId, brand, type, price%0A        final Product product2 = new Product(55, %22brand2%22, %22type2%22, 66.5);%0A        assertAll(%0A                () -%3E assertEquals(55, product2.getProductId()),%0A                () -%3E assertEquals(%22brand2%22, product2.getBrand()),%0A                () -%3E assertEquals(%22type2%22, product2.getType()),%0A                () -%3E assertNull(product2.getDescription()),%0A                () -%3E assertEquals(66.5, product2.getPrice())%0A        );%0A%0A        // constructor with productId, brand, type, description, price%0A        final Product product3 = new Product(32, %22brand3%22, %22type3%22, %22desc3%22, 89.23);%0A        assertAll(%0A                () -%3E assertEquals(32, product3.getProductId()),%0A                () -%3E assertEquals(%22brand3%22, product3.getBrand()),%0A                () -%3E assertEquals(%22type3%22, product3.getType()),%0A                () -%3E assertEquals(%22desc3%22, product3.getDescription()),%0A                () -%3E assertEquals(89.23, product3.getPrice())%0A        );%0A    %7D
 %0A%7D%0A

add test for Product class