2010-01-22 1.2.0

org.eclipse.soda.dk.platform.validation.test.agent
Class ClassLibraryValidationTestCase

java.lang.Object
  extended by ConfiguredTestCase
      extended by org.eclipse.soda.dk.platform.validation.test.agent.ClassLibraryValidationTestCase
All Implemented Interfaces:
LogService

public class ClassLibraryValidationTestCase
extends ConfiguredTestCase
implements LogService

Since:
1.0
Version:
1.2.0

Field Summary
static java.lang.String DEFAULT_MIN_JAVA_VERSION
          Define the default min java version (String) constant.
static java.lang.String DEFAULT_REQUIRED_LIBRARIES
          Define the default validate libraries (String) constant.
 
Constructor Summary
ClassLibraryValidationTestCase(java.lang.String name)
          Constructs a new instance of the PlatformValidationTestcase class.
 
Method Summary
static boolean checkVersion(java.lang.String actualVersion, java.lang.String minimumVersion)
          Check version with the specified actual version and minimum version parameters and return the boolean result.
 void log(int severity, java.lang.String message)
          Log with the specified severity and message parameters.
 void log(int severity, java.lang.String message, java.lang.Throwable exception)
          Log with the specified severity, message and exception parameters.
static void main(java.lang.String[] arguments)
          Main method to run tests in a stand alone mode.
protected  void setUp()
          Set up.
 void test000_ValidateJavaVersion()
          Test000_ validate java version.
 void test001_ValidateClassLibraries()
          Test001_ validate class libraries.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_MIN_JAVA_VERSION

public static final java.lang.String DEFAULT_MIN_JAVA_VERSION
Define the default min java version (String) constant.

See Also:
Constant Field Values

DEFAULT_REQUIRED_LIBRARIES

public static final java.lang.String DEFAULT_REQUIRED_LIBRARIES
Define the default validate libraries (String) constant.

See Also:
Constant Field Values
Constructor Detail

ClassLibraryValidationTestCase

public ClassLibraryValidationTestCase(java.lang.String name)
Constructs a new instance of the PlatformValidationTestcase class.

Parameters:
name - The name (String) parameter.
Method Detail

checkVersion

public static boolean checkVersion(java.lang.String actualVersion,
                                   java.lang.String minimumVersion)
Check version with the specified actual version and minimum version parameters and return the boolean result.

Parameters:
actualVersion - The actual version (String) parameter.
minimumVersion - The minimum version (String) parameter.
Returns:
Results of the check version (boolean) value.
See Also:
test000_ValidateJavaVersion()

main

public static void main(java.lang.String[] arguments)
Main method to run tests in a stand alone mode.

Parameters:
arguments - The arguments (String[]) parameter.
See Also:
PlatformValidationTestAgent

log

public void log(int severity,
                java.lang.String message)
Log with the specified severity and message parameters.

Specified by:
log in interface LogService
Parameters:
severity - The severity (int) parameter.
message - The message (String) parameter.
See Also:
log(int,String,Throwable)

log

public void log(int severity,
                java.lang.String message,
                java.lang.Throwable exception)
Log with the specified severity, message and exception parameters.

Specified by:
log in interface LogService
Parameters:
severity - The severity (int) parameter.
message - The message (String) parameter.
exception - The exception (Throwable) parameter.
See Also:
log(int,String)

setUp

protected void setUp()
              throws java.lang.Exception
Set up.

Throws:
java.lang.Exception

test000_ValidateJavaVersion

public void test000_ValidateJavaVersion()
Test000_ validate java version.


test001_ValidateClassLibraries

public void test001_ValidateClassLibraries()
                                    throws java.io.IOException,
                                           java.lang.ClassNotFoundException
Test001_ validate class libraries.

Throws:
java.io.IOException
java.lang.ClassNotFoundException - Class Not Found Exception.

2010-01-22 1.2.0

Copyright (c) 2010 IBM. See license in Legal section.