Existing Native ID chains are not being properly grouped into a single ID.

Description

@Test
public void test_4_6_1_A() {
Long time1 = System.currentTimeMillis() + 1000L;
Long time2 = System.currentTimeMillis() + 2000L;
Long time3 = System.currentTimeMillis() + 3000L;

NativeId primary1 = new NativeId("email", "email1");
NativeId secondary1 = new NativeId("cookie", "cookie2");
NativeId primary2 = new NativeId("login", "user1");
NativeId secondary2 = new NativeId("cookie", "cookie1");
NativeId primary3 = new NativeId("email", "email1");
NativeId secondary3 = new NativeId("login", "user1");

IdResponseItem response1 = registry.register(request("1", time1, primary1, secondary1));
IdResponseItem response2 = registry.register(request("2", time2, primary2, secondary2));
IdResponseItem response3 = registry.register(request("3", time3, primary3, secondary3));

String[] myArray = new String[]{
response1.getResolvedId().toString(),
response2.getResolvedId().toString(),
response3.getResolvedId().toString()};

HashSet<String> mySet = new HashSet<>(Arrays.asList(myArray));
assertEquals(1, mySet.size());
}

Environment

None

Assignee

Unassigned

Reporter

Raymond Ho

Labels

None

Sprint

Priority

Medium
Configure