fr.inria.peerunit.test.oracle
Class GlobalVerdict

java.lang.Object
  extended by fr.inria.peerunit.test.oracle.GlobalVerdict

public class GlobalVerdict
extends java.lang.Object

Since:
1.0
Version:
1.0
Author:
Eduardo Almeida

Constructor Summary
GlobalVerdict(int i)
           
 
Method Summary
 void addLocalVerdict(Verdicts localVerdict)
          Calculates the global verdict of a test suit.
 boolean containsMethod(MethodDescription md)
           
 Verdicts getGlobalVerdict()
          Returns the global verdict.
 int getJudged()
          Returns the number of executed testers.
 ResultSet getResultFor(MethodDescription md)
           
 void putResult(MethodDescription md, ResultSet rs)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GlobalVerdict

public GlobalVerdict(int i)
Method Detail

addLocalVerdict

public void addLocalVerdict(Verdicts localVerdict)
Calculates the global verdict of a test suit.
Once verdict is FAIL it will not have another verdict.

Parameters:
localVerdict - is the current verdict.
index - is the threshold of inclusive results accepted to get a correct (PASS) global verdict.
Since:
1.0

getGlobalVerdict

public Verdicts getGlobalVerdict()
Returns the global verdict.

Returns:
the global verdict : PASS, FAIL, INCONCLUSIVE, ERROR.
Since:
1.0

getJudged

public int getJudged()
Returns the number of executed testers.

Returns:
the number of executed testers (passed, failed and inconclusive).
Since:
1.0

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

putResult

public void putResult(MethodDescription md,
                      ResultSet rs)

getResultFor

public ResultSet getResultFor(MethodDescription md)

containsMethod

public boolean containsMethod(MethodDescription md)


Copyright © 2010. All Rights Reserved.