Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testFromLittleEndianByteArray (0.1 sec)

  1. guava-tests/test/com/google/common/net/InetAddressesTest.java

      }
    
      public void testFromInteger() {
        assertThat(InetAddresses.fromInteger(0x7f000001))
            .isEqualTo(InetAddresses.forString("127.0.0.1"));
      }
    
      public void testFromLittleEndianByteArray() throws UnknownHostException {
        assertEquals(
            InetAddresses.fromLittleEndianByteArray(new byte[] {1, 2, 3, 4}),
            InetAddress.getByAddress(new byte[] {4, 3, 2, 1}));
    
        assertEquals(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 24 16:44:05 UTC 2024
    - 35.3K bytes
    - Viewed (0)
Back to top