Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1e7f68f3 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Add test for getDeprecationTime and getExpirationTime" am: af3061e5...

Merge "Add test for getDeprecationTime and getExpirationTime" am: af3061e5 am: a8846356 am: cf695d45 am: 0fdbddb6 am: 3b36959d

Change-Id: I8a0cc0fe0b55b8782335621a3cf21b725917c707
parents 276e2e2c 3b36959d
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -367,6 +367,9 @@ public class LinkAddressTest {
                    -2, 100000L);
            fail("negative deprecation time should cause exception");
        } catch (IllegalArgumentException expected) { }

        LinkAddress addr = new LinkAddress(V6_ADDRESS, 64, 0, 456, 100000L, 200000L);
        assertEquals(100000L, addr.getDeprecationTime());
    }

    @Test @IgnoreUpTo(Build.VERSION_CODES.Q)
@@ -382,6 +385,9 @@ public class LinkAddressTest {
                    100000L, -2);
            fail("negative expiration time should cause exception");
        } catch (IllegalArgumentException expected) { }

        LinkAddress addr = new LinkAddress(V6_ADDRESS, 64, 0, 456, 100000L, 200000L);
        assertEquals(200000L, addr.getExpirationTime());
    }

    @Test