Package org.apache.calcite.test
Class Unsafe
java.lang.Object
org.apache.calcite.test.Unsafe
Contains methods that call JDK methods that the
forbidden
APIs checker does not approve of.
This class is excluded from the check, so methods called via this class will not fail the build.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> boolean
Matcher.matches(Object)
is forbidden in regular test code in favour ofMatcherAssert.assertThat(T, org.hamcrest.Matcher<? super T>)
.static void
setDefaultLocale
(Locale locale) Sets locale.
-
Method Details
-
matches
Matcher.matches(Object)
is forbidden in regular test code in favour ofMatcherAssert.assertThat(T, org.hamcrest.Matcher<? super T>)
. Note:Matcher#matches
is still useful when testing matcher implementations.- Parameters:
matcher
- matcheractual
- actual value- Returns:
- the result of matcher.matches(actual)
-
setDefaultLocale
Sets locale.
-