org.apache.batik.test.Test Maven / Gradle / Ivy
/*
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package org.apache.batik.test;
/**
* Defines the interface of a Test
case. It is
* highly recommended that implementations derive from the
* AbstractTest
class or follow the same implementation
* approach, so that no exception is thrown from the
* run
method, which is critical for the operation
* of the test infrastructure.
*
* @author Vincent Hardy
* @version $Id: Test.java 1733416 2016-03-03 07:07:13Z gadams $
*/
public interface Test {
/**
* Returns this Test
's name.
*/
String getName();
/**
* Returns the Test
's qualified id, that is,
* the string made of all the id's parents separated
* by ".". For example, if this test's id is "C",
* its parent id is "B" and its grand-parent id is
* "A", this method should return "A.B.C".
*/
String getQualifiedId();
/**
* Returns the Test
's id. The notion of
* identifier is left to the user of the Test
* object, which explains why the user may set the
* id.
*/
String getId();
/**
* Sets this Test
's id.
*/
void setId(String id);
/**
* Requests this Test
to run and produce a
* report. It is critical for the test infrastructure
* that implementations never throw exceptions
* from the run method, even if an error occurs internally
* in the test.
*
*/
TestReport run();
/**
* Returns this Test
's parent, in case this
* Test
is part of a TestSuite
.
* The returned value may be null.
*/
TestSuite getParent();
/**
* Set this Test
's parent.
*/
void setParent(TestSuite parent);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy