Module xaos.ui.plot

Class Assertions


  • public class Assertions
    extends Object
    Set of assertion methods useful for checking method arguments.
    Author:
    claudio.rosati@esss.se
    • Method Detail

      • assertValueAxis

        public static void assertValueAxis​(Axis<?> axis,
                                           String axisName)
                                    throws IllegalArgumentException
        Asserts that given axis is an instance of ValueAxis.
        Parameters:
        axis - The axis to be checked.
        axisName - Name of the axis to be checked (used for the thrown exception's message).
        Throws:
        IllegalArgumentException - If the give axis is not an instance of ValueAxis.