Skip to content
Snippets Groups Projects
Commit 65503f32 authored by Céline  TREBEAU's avatar Céline TREBEAU
Browse files

chore(test): Remove unnecessary tests from the test suite

- Deleted Tests from `PretreatmentParametersTest`, which contained tests for deprecated and unused functionality.
parent eabbe4f1
No related branches found
No related tags found
2 merge requests!47Feature : Multi-channel and Binning,!41Resolve "Consider rescaling (binning) large images"
Pipeline #153949 passed
......@@ -45,32 +45,7 @@ import static org.junit.jupiter.api.Assertions.assertThrows;
public class PretreatmentParametersTest
{
@DisplayName( "Any method associated with the right number of parameters should not raise any exception" )
@ParameterizedTest
@CsvSource( { GAUSSIAN_BLUR + ", 1" } )
void rightMethodWithRightParameterValue_whenChecked_doesntRaiseAnyException( String method, double value )
{
assertDoesNotThrow( () -> new PretreatmentParameters( 1, 5 ) );
}
@DisplayName( "A wrong method should raise DataValidationException for any method" )
@Test
void wrongDenoisingMethod_whenChecked_RaisesADataValidationException()
{
DataValidationException exception = assertThrows( DataValidationException.class, () ->
new PretreatmentParameters( 1, 3) );
assertThat( exception ).hasMessageContaining( NOT_IMPLEMENTED );
}
@DisplayName( "A parameter value superior to 10 should raise a DataValidationException for any method" )
@Test
void parameterValueSuperiorTo10_whenChecked_RaisesADataValidationException()
{
DataValidationException exception = assertThrows( DataValidationException.class, () ->
new PretreatmentParameters( 1, 15) );
assertThat( exception ).hasMessageContaining( "parameter value" );
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment