From a049dd190d1d469e7ff53c1ea39af91cabe79851 Mon Sep 17 00:00:00 2001 From: NathanielRichards1 Date: Thu, 12 Dec 2024 13:05:57 +0000 Subject: [PATCH] feat(CB2-15349): improving tests --- src/test/java/htmlverification/tests/AbandonedTest.java | 5 +++++ src/test/java/htmlverification/tests/VTG12Test.java | 2 ++ src/test/java/htmlverification/tests/VTP12Test.java | 2 ++ 3 files changed, 9 insertions(+) diff --git a/src/test/java/htmlverification/tests/AbandonedTest.java b/src/test/java/htmlverification/tests/AbandonedTest.java index 4405c2f8..32b3b116 100644 --- a/src/test/java/htmlverification/tests/AbandonedTest.java +++ b/src/test/java/htmlverification/tests/AbandonedTest.java @@ -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; @@ -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 diff --git a/src/test/java/htmlverification/tests/VTG12Test.java b/src/test/java/htmlverification/tests/VTG12Test.java index c4aaa029..ce7fee80 100644 --- a/src/test/java/htmlverification/tests/VTG12Test.java +++ b/src/test/java/htmlverification/tests/VTG12Test.java @@ -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()); } diff --git a/src/test/java/htmlverification/tests/VTP12Test.java b/src/test/java/htmlverification/tests/VTP12Test.java index 1548beb9..b8eb9c91 100644 --- a/src/test/java/htmlverification/tests/VTP12Test.java +++ b/src/test/java/htmlverification/tests/VTP12Test.java @@ -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()); }