executionTrace = new ExecutionTrace(traceId, execution.getSessionId()); this.pendingTraces.put(traceId, executionTrace);
/** * This method can be used to debug the {@link java.util.Comparator} provided by {@link ExecutionTrace#createExecutionTraceComparator()}. */ @Test public void testTreeSet() { final SortedSet<Execution> s0 = new TreeSet<>(ExecutionTrace.createExecutionTraceComparator()); final SortedSet<Execution> s1 = new TreeSet<>(ExecutionTrace.createExecutionTraceComparator()); final Execution execFromTrace0 = this.exec0_0__bookstore_searchBook; final Execution long1 = new Execution(execFromTrace0.getOperation(), execFromTrace0.getAllocationComponent(), execFromTrace0.getTraceId(), execFromTrace0.getSessionId(), execFromTrace0.getEoi(), execFromTrace0.getEss(), execFromTrace0.getTin(), execFromTrace0.getTout(), execFromTrace0.isAssumed()); s0.add(execFromTrace0); s1.add(long1); Assert.assertEquals("Expected sets to be equal", s0, s1); }
AllocationComponent allocComp = executionTemplate.getAllocationComponent(); long traceId = executionTemplate.getTraceId(); String sessionId = executionTemplate.getSessionId(); int eoi = executionTemplate.getEoi(); int ess = executionTemplate.getEss(); break; case SESSION_ID: sessionId = variationTemplate.getSessionId(); break; case TIN:
Assert.assertEquals("ess's differ", opExec.getEss(), exec.getEss()); Assert.assertEquals("Hostnames differ", opExec.getHostname(), exec.getAllocationComponent().getExecutionContainer().getName()); Assert.assertEquals("Session ID's differ", opExec.getSessionId(), exec.getSessionId()); Assert.assertEquals("Trace ID's differ", opExec.getTraceId(), exec.getTraceId()); final ClassOperationSignaturePair opExecClassOperationSignature =
this.exec1_1__catalog_getBook.getTraceId() + 100, this.exec1_1__catalog_getBook.getSessionId() + "_", this.exec1_1__catalog_getBook.getEoi() + 100, this.exec1_1__catalog_getBook.getEss() + 100, this.exec1_1__catalog_getBook.getTin() + 100, this.exec1_1__catalog_getBook.getTout(), !this.exec1_1__catalog_getBook.isAssumed());