Skip to content

Commit

Permalink
feat(CB2-15349): fixes for 1998 text bug to 1988
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanielRichards1 committed Dec 16, 2024
1 parent 36c6f63 commit e05b88a
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion src/main/resources/views/CommercialVehicles/Abandoned.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@


<div id="sectionText" class="standard-text">
having been submitted for an examination under Section {{sectionTextRef}} of the Road Traffic Act 1998, it is hereby notified that the examination did not proceed or could not be completed because of a failure to comply with those conditions of acceptance for examination recorded below.
having been submitted for an examination under Section {{sectionTextRef}} of the Road Traffic Act 1988, it is hereby notified that the examination did not proceed or could not be completed because of a failure to comply with those conditions of acceptance for examination recorded below.
</div>

<b class="standard-text">
Expand Down
34 changes: 17 additions & 17 deletions src/test/java/pdfverification/tests/AbandonedTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,23 @@ public abstract class AbandonedTests {
protected PdfReader pdfReader;
protected byte[] pdfData;

protected static String DYNAMIC_TITLE_SECTION = "Examination (VTG12)";
protected static String REGULATION_LINE1 = "Regulations 7 and 8 of the Goods Vehicles (Plating";
protected static String REGULATION_LINE2 = "and Testing) Regulations 1988 as Amended";
protected static String VEHICLE_TYPE_TEXT_LINE1 = "In respect of the goods vehicle with registration number / chassis serial number / trailer";
protected static String VEHICLE_TYPE_TEXT_LINE2 = "identification mark :";
protected static String VIN = "P O I U Y T R E W Q 0 1 2 3 0 1 0 9 5 6 7 8 9 1";
protected static String REASONS_FOR_REFUSAL_LINE1 = "Reason 1 exists VTG12";
protected static String REASONS_FOR_REFUSAL_LINE2 = "Reason 2 exists VTG12";
protected static String ROLLING_FOOTER_LEFT = "VTG12 (DVSA0440)";
protected static String ADDITIONAL_COMMENTS = "additional comments VTG12";
protected static String ROLLING_HEADER_LEFT = "VTG12";
protected static String ROLLING_HEADER_RIGHT = "Acceptance of a Goods Vehicle for Examination";
protected static String PRINT_NAME = "fake tester";
protected static String LOCATION = "fake12312312";
protected static String LOCATION_NUMBER = "fake12312312";
protected static String DATE_OF_THE_TEST = "01.02.2024";
protected static String SECTION_TEXT = "having been submitted for an examination under Section 49 and 51 of the Road Traffic Act 1998, it";
protected static String DYNAMIC_TITLE_SECTION;
protected static String REGULATION_LINE1;
protected static String REGULATION_LINE2;
protected static String VEHICLE_TYPE_TEXT_LINE1;
protected static String VEHICLE_TYPE_TEXT_LINE2;
protected static String VIN;
protected static String REASONS_FOR_REFUSAL_LINE1;
protected static String REASONS_FOR_REFUSAL_LINE2;
protected static String ROLLING_FOOTER_LEFT;
protected static String ADDITIONAL_COMMENTS;
protected static String ROLLING_HEADER_LEFT;
protected static String ROLLING_HEADER_RIGHT;
protected static String PRINT_NAME;
protected static String LOCATION;
protected static String LOCATION_NUMBER;
protected static String DATE_OF_THE_TEST;
protected static String SECTION_TEXT;

public AbandonedTests() {
this.htmlGenerator = new HtmlGenerator(new Handlebars());
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/pdfverification/tests/VTG12Tests.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ public VTG12Tests() {
super.LOCATION = "fake12312312";
super.LOCATION_NUMBER = "fake12312312";
super.DATE_OF_THE_TEST = "01.02.2024";
super.SECTION_TEXT = "having been submitted for an examination under Section 49 and 51 of the Road Traffic Act 1998, it";
super.SECTION_TEXT = "having been submitted for an examination under Section 49 and 51 of the Road Traffic Act 1988, it";
}
}
2 changes: 1 addition & 1 deletion src/test/java/pdfverification/tests/VTP12Tests.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ public VTP12Tests() {
super.LOCATION = "fake12312312";
super.LOCATION_NUMBER = "fake12312312";
super.DATE_OF_THE_TEST = "01.02.2024";
super.SECTION_TEXT = "having been submitted for an examination under Section 45 of the Road Traffic Act 1998, it is";
super.SECTION_TEXT = "having been submitted for an examination under Section 45 of the Road Traffic Act 1988, it is";
}
}

0 comments on commit e05b88a

Please sign in to comment.