Backdated NativeId is assigned a new ID; should be the same ID.

Description

@Test
public void basicfailingcase01() {
NativeId user1 = new NativeId("email", "user1");
NativeId user2 = new NativeId("email", "user1");
NativeId user3 = new NativeId("email", "user1");

NativeId session1 = new NativeId("session", "session1");

Long time1 = 2000L;
Long time2 = 2500L;
Long time3 = 1500L;

IdResponseItem response1 = registry.register(request("1", time1, user1));
IdResponseItem response2 = registry.register(request("2", time2, user2));
IdResponseItem response3 = registry.register(request("3", time3, user3));

System.out.println(response1.getResolvedId());
System.out.println(response2.getResolvedId());
System.out.println(response3.getResolvedId());

assertEquals(response1.getResolvedId(), response2.getResolvedId());
assertEquals(response1.getResolvedId(), response3.getResolvedId());
}

Environment

None

Assignee

Unassigned

Reporter

Raymond Ho

Labels

None

Sprint

Priority

Medium
Configure