Skip to content

Commit

Permalink
feat(CB2-15349): improving tests
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanielRichards1 committed Dec 12, 2024
1 parent f6b8f04 commit a049dd1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/test/java/htmlverification/tests/AbandonedTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ public abstract class AbandonedTest {
protected String DYNAMIC_TITLE_SECTION;
protected String REGULATION_TEXT;
protected String VEHICLE_TYPE_TEXT_LINE;
protected String FORM_NUMBER;
protected String SECTION_REF_TEXT;


protected HtmlGenerator htmlGenerator;
protected AbandonedCertificate testCertificate;
Expand All @@ -22,6 +25,8 @@ public void verifyValuesSetByConstructor() {
assertEquals(REGULATION_TEXT, testCertificate.getRegulationText());
assertEquals(VEHICLE_TYPE_TEXT_LINE, testCertificate.getVehicleTypeText());
assertEquals(DYNAMIC_TITLE_SECTION, testCertificate.getTitleTextIncludingRollingHeaders());
assertEquals(FORM_NUMBER, testCertificate.getFormNumber());
assertEquals(SECTION_REF_TEXT, testCertificate.getSectionTextRef());
}

@Test
Expand Down
2 changes: 2 additions & 0 deletions src/test/java/htmlverification/tests/VTG12Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ public VTG12Test() {
super.DYNAMIC_TITLE_SECTION = "Goods Vehicle for Examination";
super.REGULATION_TEXT = "Regulations 7 and 8 of the Goods Vehicles (Plating and Testing) Regulations 1988 as Amended";
super.VEHICLE_TYPE_TEXT_LINE = "In respect of the goods vehicle with registration number / chassis serial number / trailer identification mark :";
super.FORM_NUMBER = "0440";
super.SECTION_REF_TEXT = "49 and 51";
this.htmlGenerator = new HtmlGenerator(new Handlebars());
}

Expand Down
2 changes: 2 additions & 0 deletions src/test/java/htmlverification/tests/VTP12Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ public VTP12Test() {
super.DYNAMIC_TITLE_SECTION = "Public Service Vehicle for Examination";
super.REGULATION_TEXT = "Regulation 13 of the Motor Vehicles (Tests) Regulations 1981 as amended";
super.VEHICLE_TYPE_TEXT_LINE = "In respect of the public service vehicle with registration number / chassis serial number :";
super.FORM_NUMBER = "0453";
super.SECTION_REF_TEXT = "45";
this.htmlGenerator = new HtmlGenerator(new Handlebars());
}

Expand Down

0 comments on commit a049dd1

Please sign in to comment.