pt.digitalis.dif.sanitycheck.manager
Class TestMethodDefinition

java.lang.Object
  extended by pt.digitalis.dif.sanitycheck.manager.TestMethodDefinition

public class TestMethodDefinition
extends Object

Defines a Sanity Check Test Method form a ISanityCheckTestSuite

Author:
Pedro Viegas pviegas@digitalis.pt
Created on:
15 de Jul de 2011

Constructor Summary
TestMethodDefinition(ISanityCheckTestSuite testSuiteInstance, Method theMethod)
           
 
Method Summary
 String getName()
          Inspector for the 'name' attribute.
 boolean isOnlyAdministrators()
          Inspector for the 'onlyAdministrators' attribute.
 TestResult run(IDIFContext context)
          Runs the test
 void setName(String name)
          Modifier for the 'name' attribute.
 void setOnlyAdministrators(boolean onlyAdministrators)
          Modifier for the 'onlyAdministrators' attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestMethodDefinition

public TestMethodDefinition(ISanityCheckTestSuite testSuiteInstance,
                            Method theMethod)
                     throws WrongTestMethodSignature
Parameters:
testSuiteInstance -
theMethod -
Throws:
WrongTestMethodSignature - the methods can only have a single IDIFContext parameter, or none at all
Method Detail

getName

public String getName()
Inspector for the 'name' attribute.

Returns:
the name value

isOnlyAdministrators

public boolean isOnlyAdministrators()
Inspector for the 'onlyAdministrators' attribute.

Returns:
the onlyAdministrators value

run

public TestResult run(IDIFContext context)
Runs the test

Parameters:
context - the current DIF context
Returns:
the result of the test execution

setName

public void setName(String name)
Modifier for the 'name' attribute.

Parameters:
name - the new name value to set

setOnlyAdministrators

public void setOnlyAdministrators(boolean onlyAdministrators)
Modifier for the 'onlyAdministrators' attribute.

Parameters:
onlyAdministrators - the new onlyAdministrators value to set


Copyright © 2014 Digitalis Informática Lda. All Rights Reserved.