/*
* 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.
*
* $Rev$ $Date$
*/
package test.sdo21.tests;
// static imports simply allow you to call assertTrue rather than
// Assert.assertTrue
import static org.junit.Assert.assertEquals;
import org.junit.After;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;
import test.sdo21.framework.CTSTestCase;
/**
* Example test class to be used as a template SDO test cases.
*
* The test case can be run using Junit within eclipse, from normal command line
* junit, or within a WebSphere build environment by adding an target such as
* sampleTestTarget that is contained within the build.xml file of the
* WAS.soa.sdo.cts component.
*
* Once a test case has been completed and reviewed it can be added into the
* appropiate CTS Suite.
*
* This test class should make every effort to only use methods that are defined
* within the current SDO Specification. If utility methods are required they
* should be added to {@link test.sdo21.framework.TestHelper}
*
* Please Document the overall intention of the test case and provide detailed
* javadoc for each test method. Please create modular test methods rather than
* single large test methods
*
* Resources:
*
@Ignore
will not be executed as tests. Native JUnit 4 test
* runners should report the number of ignored tests along with the
* number of tests that ran and the number of tests that failed.
* @Ignore
takes an optional default parameter if you want to record
* why a test is being ignored:public void
method with @Before
causes that method to be run before the
* {@link org.junit.Test} method. The @Before
methods of superclasses will be run before those of the
* current class. There is also an @After
annotation
* @throws Exception
*/
@Before
public void setUp() throws Exception {
super.setUp();
}
@After
public void tearDown() throws Exception {
super.tearDown();
}
/**
* Sometimes several tests need to share computationally expensive setup
* (like logging into a database). While this can compromise the
* independence of tests, sometimes it is a necessary optimization.
* Annotating a public static void
no-arg method with
* @BeforeClass
causes it to be run once before any of the test
* methods in the class. The @BeforeClass
methods of superclasses will be run before those the
* current class.
*/
@BeforeClass
public static void init() {
// init
}
}