Skip to content

Commit

Permalink
remove test for null type.
Browse files Browse the repository at this point in the history
  • Loading branch information
santosh-pingle committed Nov 25, 2021
1 parent 51b93d7 commit edeff1d
Showing 1 changed file with 0 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,31 +228,6 @@ class QuestionnaireItemEditTextDecimalViewHolderFactoryInstrumentedTest {
.isEqualTo("Minimum value allowed is:2.1")
}

@Test
@UiThreadTest
fun displayValidationResult_noError_shouldShowNoErrorMessage() {
viewHolder.bind(
QuestionnaireItemViewItem(
Questionnaire.QuestionnaireItemComponent().apply {
addExtension().apply {
url = "https://hl7.org/fhir/StructureDefinition/maxValue"
setValue(null)
}
},
QuestionnaireResponse.QuestionnaireResponseItemComponent().apply {
addAnswer(
QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent().apply {
value = DecimalType("100.3")
}
)
}
) {}
)

assertThat(viewHolder.itemView.findViewById<TextInputLayout>(R.id.textInputLayout).error)
.isNull()
}

@Test
@UiThreadTest
fun bind_readOnly_shouldDisableView() {
Expand Down

0 comments on commit edeff1d

Please sign in to comment.