randoop
Class NormalExecution

Object
  extended by ExecutionOutcome
      extended by NormalExecution

public class NormalExecution
extends ExecutionOutcome

Means that the statement that this result represents completed normally. Method r.getRuntimeVariable() returns the runtime value that the statement returns (null for void method calls). IMPORTANT NOTE: The object returned by getRuntimeVariable() is the actual runtime object created during execution of the sequence (call it s). This means that if you invoke s.execute(v) and then you invoke s.getResult(i).getRuntimeVariable(), the state of the object you get is the FINAL state of the object after s finished executing, NOT the state of the object after the i-th statement was executed. Similarly, if you invoke getRuntimeVariable() sometime in the middle of the execution of s (e.g. you're an ExecutionVisitor and you invoke getRuntimeVariable()), you'll get the state in whatever state it is at that point in the execution.


Constructor Summary
Constructor and Description
NormalExecution(Object result, long executionTime)
           
 
Method Summary
Modifier and Type Method and Description
 long getExecutionTime()
          How long the associated statement took to execute.
 Object getRuntimeValue()
           
 String toString()
          Warning: this method calls toString() of code under test, which may have arbitrary behavior.
 
Methods inherited from class ExecutionOutcome
get_output, set_output
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NormalExecution

public NormalExecution(Object result,
                       long executionTime)
Method Detail

getRuntimeValue

public Object getRuntimeValue()

toString

public String toString()
Warning: this method calls toString() of code under test, which may have arbitrary behavior. We use this method in randoop.test.SequenceTests.

Overrides:
toString in class Object

getExecutionTime

public long getExecutionTime()
Description copied from class: ExecutionOutcome
How long the associated statement took to execute.

Specified by:
getExecutionTime in class ExecutionOutcome