@BeforeMethod(groups = "slow") public void beforeMethod() throws Exception { if (hasFailed()) { return; } cleanupAllTables(); callContext.setDelegate(null, internalCallContext); controlCacheDispatcher.clearAll(); }
public static void refreshCallContext(final UUID accountId, final Clock clock, final InternalCallContextFactory internalCallContextFactory, final MutableCallContext callContext, final MutableInternalCallContext internalCallContext) { final InternalTenantContext tmp = internalCallContextFactory.createInternalTenantContext(accountId, callContext); internalCallContext.setAccountRecordId(tmp.getAccountRecordId()); internalCallContext.setFixedOffsetTimeZone(tmp.getFixedOffsetTimeZone()); internalCallContext.setReferenceTime(tmp.getReferenceLocalTime()); internalCallContext.setCreatedDate(clock.getUTCNow()); internalCallContext.setUpdatedDate(clock.getUTCNow()); callContext.setDelegate(accountId, internalCallContext); }
@BeforeMethod(groups = "slow") public void beforeMethod() throws Exception { if (hasFailed()) { return; } cleanupAllTables(); callContext.setDelegate(null, internalCallContext); controlCacheDispatcher.clearAll(); }
public static void refreshCallContext(final UUID accountId, final Clock clock, final InternalCallContextFactory internalCallContextFactory, final MutableCallContext callContext, final MutableInternalCallContext internalCallContext) { final InternalTenantContext tmp = internalCallContextFactory.createInternalTenantContext(accountId, callContext); internalCallContext.setAccountRecordId(tmp.getAccountRecordId()); internalCallContext.setFixedOffsetTimeZone(tmp.getFixedOffsetTimeZone()); internalCallContext.setReferenceTime(tmp.getReferenceLocalTime()); internalCallContext.setCreatedDate(clock.getUTCNow()); internalCallContext.setUpdatedDate(clock.getUTCNow()); callContext.setDelegate(accountId, internalCallContext); }