Class JmcDescriptorUtil
java.lang.Object
org.mpi_sws.jmc.integrations.junit5.descriptors.JmcDescriptorUtil
Utility class for handling JMC descriptor configurations.
This class provides methods to check and update JMC checker configurations based on annotations present on classes or methods.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheckStrategyConfig(JmcCheckerConfiguration.Builder builder, Class<?> clazz, Method method) Checks the provided class and method for JMC trust strategy annotations and updates the JMC checker configuration builder accordingly.
-
Constructor Details
-
JmcDescriptorUtil
public JmcDescriptorUtil()
-
-
Method Details
-
checkStrategyConfig
public static JmcCheckerConfiguration.Builder checkStrategyConfig(JmcCheckerConfiguration.Builder builder, Class<?> clazz, Method method) throws JmcInvalidConfigurationException Checks the provided class and method for JMC trust strategy annotations and updates the JMC checker configuration builder accordingly.- Parameters:
builder- The JMC checker configuration builder to update.clazz- The class to check for annotations.method- The method to check for annotations.- Returns:
- An updated JMC checker configuration builder.
- Throws:
JmcInvalidConfigurationException
-