Class JUnitUtils
- java.lang.Object
-
- org.springframework.kafka.test.utils.JUnitUtils
-
public final class JUnitUtils extends java.lang.Object
Utility methods for JUnit rules and conditions.- Since:
- 2.2
- Author:
- Gary Russell, Artem Bilan
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JUnitUtils.LevelsContainer
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JUnitUtils.LevelsContainer
adjustLogLevels(java.lang.String methodName, java.util.List<java.lang.Class<?>> classes, java.util.List<java.lang.String> categories, org.apache.logging.log4j.Level level)
static boolean
parseBooleanProperty(java.lang.String property)
Return the parsed value if the provided property exists in the environment or system properties.static void
revertLevels(java.lang.String methodName, JUnitUtils.LevelsContainer container)
-
-
-
Method Detail
-
parseBooleanProperty
public static boolean parseBooleanProperty(java.lang.String property)
Return the parsed value if the provided property exists in the environment or system properties.- Parameters:
property
- the property name.- Returns:
- the parsed property value if it exists, false otherwise.
-
adjustLogLevels
public static JUnitUtils.LevelsContainer adjustLogLevels(java.lang.String methodName, java.util.List<java.lang.Class<?>> classes, java.util.List<java.lang.String> categories, org.apache.logging.log4j.Level level)
-
revertLevels
public static void revertLevels(java.lang.String methodName, JUnitUtils.LevelsContainer container)
-
-