Skip to content

Commit

Permalink
Address the commments
Browse files Browse the repository at this point in the history
  • Loading branch information
caroline-ttd committed Apr 24, 2024
1 parent 78e143f commit a0ff2fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/test/java/com/uid2/client/BidstreamClientTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class BidstreamClientTests {
})
public void smokeTestForBidstream(IdentityScope identityScope, TokenVersionForTesting tokenVersion) throws Exception {
Instant now = Instant.now();
String advertisingToken = AdvertisingTokenBuilder.builder().withScope(identityScope).withVersion(tokenVersion).withEstablished(now.minus(120, ChronoUnit.DAYS)).withGenerated(now.plus(-1, ChronoUnit.DAYS)).withExpiry(now.plus(2, ChronoUnit.DAYS)).build();
String advertisingToken = AdvertisingTokenBuilder.builder().withScope(identityScope).withVersion(tokenVersion).withEstablished(now.minus(120, ChronoUnit.DAYS)).withGenerated(now.minus(1, ChronoUnit.DAYS)).withExpiry(now.plus(2, ChronoUnit.DAYS)).build();
refresh(keyBidstreamResponse(identityScope, MASTER_KEY, SITE_KEY));

decryptAndAssertSuccess(advertisingToken, tokenVersion);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public void ExampleBidStreamClient() {
System.out.println("SiteId: " + result.getSiteId());
System.out.println("UID: " + result.getUid());
System.out.println("Established: " + result.getEstablished());
System.out.println("SiteId: " + result.getSiteId());
System.out.println("AdvertisingTokenVersion: " + result.getAdvertisingTokenVersion());
System.out.println("IsClientSideGenerated: " + result.getIsClientSideGenerated());
}

Expand Down

0 comments on commit a0ff2fb

Please sign in to comment.