File tree Expand file tree Collapse file tree
src/test/java/com/imsweb/seerapi/client Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66import java .util .Map ;
77import java .util .Objects ;
88
9+ import org .hamcrest .CoreMatchers ;
10+ import org .hamcrest .MatcherAssert ;
911import org .junit .BeforeClass ;
1012import org .junit .Test ;
1113
1517import com .imsweb .seerapi .client .SeerApi ;
1618import com .imsweb .seerapi .client .hcpcs .Hcpcs .Category ;
1719
20+ import static com .google .code .beanmatchers .BeanMatchers .hasValidBeanConstructor ;
21+ import static com .google .code .beanmatchers .BeanMatchers .hasValidGettersAndSetters ;
1822import static org .assertj .core .api .Assertions .assertThat ;
1923import static org .assertj .core .api .AssertionsForClassTypes .assertThatExceptionOfType ;
2024
@@ -90,4 +94,9 @@ public void testSearch() throws IOException {
9094 params .put ("category" , Category .IMMUNOTHERAPY .toString ());
9195 assertThat (_HCPCS .search (params ).execute ().body ()).isEmpty ();
9296 }
97+
98+ @ Test
99+ public void testBeans () {
100+ MatcherAssert .assertThat (Hcpcs .class , CoreMatchers .allOf (hasValidBeanConstructor (), hasValidGettersAndSetters ()));
101+ }
93102}
Original file line number Diff line number Diff line change @@ -572,6 +572,7 @@ public void testBeans() {
572572 MatcherAssert .assertThat (StagingColumnDefinition .class , CoreMatchers .allOf (hasValidBeanConstructor (), hasValidGettersAndSetters ()));
573573 MatcherAssert .assertThat (StagingSchemaInput .class , CoreMatchers .allOf (hasValidBeanConstructor (), hasValidGettersAndSetters ()));
574574 MatcherAssert .assertThat (StagingSchemaOutput .class , CoreMatchers .allOf (hasValidBeanConstructor (), hasValidGettersAndSetters ()));
575+ MatcherAssert .assertThat (StagingData .class , CoreMatchers .allOf (hasValidBeanConstructor (), hasValidGettersAndSetters ()));
575576 MatcherAssert .assertThat (StagingMapping .class , CoreMatchers .allOf (hasValidBeanConstructor (), hasValidGettersAndSetters ()));
576577 MatcherAssert .assertThat (StagingKeyMapping .class , CoreMatchers .allOf (hasValidBeanConstructor (), hasValidGettersAndSetters ()));
577578 MatcherAssert .assertThat (StagingKeyValue .class , CoreMatchers .allOf (hasValidBeanConstructor (), hasValidGettersAndSetters ()));
You can’t perform that action at this time.
0 commit comments