test.wsmo4j.validator
Class ValidatorWSandGoalTests

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by test.wsmo4j.validator.ValidatorTestCase
              extended by test.wsmo4j.validator.ValidatorWSandGoalTests
All Implemented Interfaces:
junit.framework.Test

public class ValidatorWSandGoalTests
extends ValidatorTestCase

Checks if WSML Web Service and Goals are valid and checks the error messages if not.

 Created on Aug 17, 2006
 Committed by $Author: nathaliest $
 $Source$,
 

Version:
$Revision: 1804 $ $Date: 2006-08-17 17:58:57 +0300 (Thu, 17 Aug 2006) $
Author:
nathalie.steinmetz@deri.org

Field Summary
 
Fields inherited from class test.wsmo4j.validator.ValidatorTestCase
axiom, dataFactory, errors, factory, le, leFactory, leSet, ns, ontology, parser, warnings
 
Constructor Summary
ValidatorWSandGoalTests()
           
 
Method Summary
 void testInvalidGoal()
          This test submits an invalid wsml-flight goal to the validator and asserts that the validator recognizes the file as valid.
 void testInvalidWebService()
          This test submits an invalid wsml-flight web service to the validator and asserts that the validator recognizes the file as valid.
 void testValidGoal()
          This test submits a valid wsml-flight goal to the validator and asserts that the validator recognizes the file as valid.
 void testValidWebService()
          This test submits a valid wsml-rule web service to the validator and asserts that the validator recognizes the file as valid.
 
Methods inherited from class test.wsmo4j.validator.ValidatorTestCase
createAxiomDef, getOntHeader, getOntLocalName, printError, printWarning, removeAxiomDef, setUp, tearDown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValidatorWSandGoalTests

public ValidatorWSandGoalTests()
Method Detail

testValidWebService

public void testValidWebService()
                         throws Exception
This test submits a valid wsml-rule web service to the validator and asserts that the validator recognizes the file as valid. Only the capability axioms are checked for validity.

Throws:
Exception

testInvalidWebService

public void testInvalidWebService()
                           throws Exception
This test submits an invalid wsml-flight web service to the validator and asserts that the validator recognizes the file as valid. Only the capability axioms are checked for validity.

Throws:
Exception

testValidGoal

public void testValidGoal()
                   throws Exception
This test submits a valid wsml-flight goal to the validator and asserts that the validator recognizes the file as valid. Only the capability axioms are checked for validity.

Throws:
Exception

testInvalidGoal

public void testInvalidGoal()
                     throws Exception
This test submits an invalid wsml-flight goal to the validator and asserts that the validator recognizes the file as valid. Only the capability axioms are checked for validity.

Throws:
Exception


Copyright © 2004-2008 Ontotext Lab.. All Rights Reserved.