public abstract class AbstractTest extends Object
AbstractTest defined base test functionality for both unit
and functional tests.
Copyright (c) 2012. All Rights Reserved. Oracle Corporation.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
| Constructor and Description |
|---|
AbstractTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
onAfterEachTest()
After each test in the class we restore the
Container to
return System-level resources back to normal. |
static void |
onAfterTestsInClass()
After running tests we ensure that the
Container has been
stopped. |
void |
onBeforeEachTest()
Before each test in the class we start the
Container to
protect System-level resources. |
static void |
onBeforeTestsInClass()
|
public static void onBeforeTestsInClass()
public static void onAfterTestsInClass()
Container has been
stopped. This ensures that physical system resources are returned
to normal, thus preventing any System-level side-effects from the tests
in the class.public void onBeforeEachTest()
Container to
protect System-level resources.public void onAfterEachTest()
Container to
return System-level resources back to normal.Copyright © 2017. All rights reserved.