Codegass commented on issue #12436:
URL: https://github.com/apache/druid/issues/12436#issuecomment-1119568016

   Thank you for the reply!
   
   JUnit Assume will let test skip if the condition is not satisfied.
   
   Here if `getDataSourcesSnapshot` returns null, then
   ```java
   Assume.assumeThat(dataSourcesSnapshot, is(null));
   ```
   will let the test continue.(`dataSourcesSnapshot` is null which matches the 
condition.)
   
   Only when `getDataSourcesSnapshot` not returns null, then
   ```java
   Assume.assumeThat(dataSourcesSnapshot, is(null));
   ```
   will just skip the test and leave an assume exception(which is weak than 
assert exception) in the test log like this:
   > org.junit.AssumptionViolatedException: got: \<va\l>, expected: is \<val\>.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to