Package fr.tiogars.template.model
Class TemplateTest
java.lang.Object
fr.tiogars.template.model.TemplateTest
Unit tests for the
Template class.
This class tests all public methods and constructors of the Template model.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidTests the getter and setter methods for all Template fields.voidTests the toString method with populated field values.voidTests the toString method with default (null) field values.
-
Constructor Details
-
TemplateTest
public TemplateTest()
-
-
Method Details
-
testGettersAndSetters
@Test public void testGettersAndSetters()Tests the getter and setter methods for all Template fields. Verifies that values set through setters are correctly retrieved by getters. -
testToString
@Test public void testToString()Tests the toString method with populated field values. Verifies that all field values are present in the string representation. -
testToStringWithNullValues
@Test public void testToStringWithNullValues()Tests the toString method with default (null) field values. Verifies that the string representation correctly handles null values.
-