Class org.mozilla.fenix.settings.doh.DohUrlValidatorTest

8

tests

0

failures

0

ignored

0.007s

duration

100%

successful

Tests

Test Duration Result
WHEN a non-https url is passed THEN the validator should throw NonHttpsUrl exception 0.001s passed
WHEN a valid url is passed THEN the validator should return itself without any exception 0s passed
WHEN dropScheme is called with a url already without a scheme THEN no change should occur 0s passed
WHEN dropScheme is called with a valid url with a scheme THEN the scheme should be dropped 0s passed
WHEN dropScheme is called with an invalid url THEN no change should occur 0.001s passed
WHEN url contains an invalid character THEN the validator should throw InvalidUrl exception 0s passed
WHEN url does not start with a scheme followed by colon and two backslashes THEN the validator should throw NonHttpsUrl exception 0.001s passed
WHEN url has a blank host THEN the validator should throw InvalidUrl exception 0.004s passed