File tree Expand file tree Collapse file tree
src/test/java/com/imsweb/seerapi/client/naaccr Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ public void testNaaccrField() throws IOException {
5454
5555 assertThat (name ).isNotNull ();
5656 assertThat (name .getName ()).isEqualTo ("Morph--Type&Behav ICD-O-3" );
57+ assertThat (name .getSection ()).isEqualTo ("Cancer Identification" );
5758 assertThat (name .getAlign ()).isEqualTo ("LEFT" );
5859 assertThat (name .getPadChar ()).isEqualTo (" " );
5960 assertThat (name .getDocumentation ()).startsWith ("<table class=\" naaccr-summary-table naaccr-borders\" >" );
@@ -70,6 +71,12 @@ public void testNaaccrField() throws IOException {
7071 assertThat (sub .getEnd ()).isEqualTo (553 );
7172 assertThat (sub .getAlign ()).isEqualTo ("LEFT" );
7273 assertThat (sub .getPadChar ()).isEqualTo (" " );
74+
75+ // test one with default value
76+ NaaccrField recordID = _NAACCR .field ("18" , 10 ).execute ().body ();
77+ assertThat (recordID .getName ()).isEqualTo ("Record Type" );
78+ assertThat (recordID .getSection ()).isEqualTo ("Record ID" );
79+ assertThat (recordID .getDefaultValue ()).isEqualTo ("A" );
7380 }
7481
7582}
You can’t perform that action at this time.
0 commit comments