Class NumberToByteArrayArgumentConverter

  • All Implemented Interfaces:
    java.util.function.Consumer<NumberToByteArrayConversion>, org.junit.jupiter.params.converter.ArgumentConverter, org.junit.jupiter.params.support.AnnotationConsumer<NumberToByteArrayConversion>

    class NumberToByteArrayArgumentConverter
    extends org.junit.jupiter.params.converter.TypedArgumentConverter<java.lang.Number,​byte[]>
    implements org.junit.jupiter.params.support.AnnotationConsumer<NumberToByteArrayConversion>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.nio.ByteOrder order  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void accept​(NumberToByteArrayConversion annotation)  
      protected byte[] convert​(java.lang.Number source)  
      private java.nio.ByteOrder getByteOrder​(NumberToByteArrayConversion annotation)  
      • Methods inherited from class org.junit.jupiter.params.converter.TypedArgumentConverter

        convert
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Consumer

        andThen
    • Field Detail

      • order

        private java.nio.ByteOrder order
    • Constructor Detail

      • NumberToByteArrayArgumentConverter

        public NumberToByteArrayArgumentConverter()
    • Method Detail

      • convert

        protected byte[] convert​(java.lang.Number source)
                          throws org.junit.jupiter.params.converter.ArgumentConversionException
        Specified by:
        convert in class org.junit.jupiter.params.converter.TypedArgumentConverter<java.lang.Number,​byte[]>
        Throws:
        org.junit.jupiter.params.converter.ArgumentConversionException