de.smartics.util.source
Class DefaultMethodInfo

Package class diagram package DefaultMethodInfo
java.lang.Object
  extended by de.smartics.util.source.DefaultMethodInfo
All Implemented Interfaces:
MethodInfo, Serializable

public final class DefaultMethodInfo
     
     
extends Object
implements Serializable, MethodInfo

The default implementation is a POJO that allows to set the properties of a method info.

See Also:
Serialized Form

Constructor Summary
DefaultMethodInfo(String methodSignature, SourceCodeLocation location)
          Default constructor.
 
Method Summary
 SourceCodeLocation getLocation()
          Returns the location of the test.
 String getMethodSignature()
          Returns the signature of the test method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMethodInfo

public DefaultMethodInfo(String methodSignature,
                         SourceCodeLocation location)
                  throws IllegalArgumentException,
                         NullPointerException
Default constructor.

Parameters:
methodSignature - the signature of the test method.
location - the location of the test.
Throws:
IllegalArgumentException - if methodSignature is blank.
NullPointerException - if location is null.
Method Detail

getMethodSignature

public String getMethodSignature()
Returns the signature of the test method. This includes the test name and the parameter types list (with brackets).

Specified by:
getMethodSignature in interface MethodInfo
Returns:
the signature of the test method. Never null.

getLocation

public SourceCodeLocation getLocation()
Returns the location of the test. This is the location of the test method.

Specified by:
getLocation in interface MethodInfo
Returns:
the location of the test. Never null.


Copyright © 2011-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.