public.javadoc.org.spincast.testing.junitrunner.BeforeAfterClassMethodsProvider.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spincast-website Show documentation
Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
BeforeAfterClassMethodsProvider (org.spincast:spincast-framework 1.0.0 API)
org.spincast.testing.junitrunner
Interface BeforeAfterClassMethodsProvider
-
- All Known Implementing Classes:
- AppBasedDefaultContextTypesTestingBase, AppBasedTestingBase, AppBasedWebsocketTestingBase, NoAppCustomContextTypesTestingBase, NoAppStartHttpServerCustomContextTypesTestingBase, NoAppStartHttpServerTestingBase, NoAppTestingBase, NoAppWebsocketTestingBase, SpincastTestBase
public interface BeforeAfterClassMethodsProvider
Provides methods that can be called before and after tests from a
class are ran.
To use with SpincastJUnitRunner
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods
Modifier and Type
Method and Description
void
afterClass()
Called after the tests of the class are ran.
void
beforeClass()
Called before the tests of the class are ran.
void
beforeClassException(Throwable ex)
This method will be called if an exception occures during
the beforeClass()
execution.
-
-
Method Detail
-
beforeClass
void beforeClass()
Called before the tests of the class are ran.
-
afterClass
void afterClass()
Called after the tests of the class are ran.
This will only be called if the beforeClass()
method completed successfully, so you can be sure that
the instanciation of the class is complete here.
-
beforeClassException
void beforeClassException(Throwable ex)
This method will be called if an exception occures during
the beforeClass()
execution.
Be careful!! Here, you are pretty much certain that
the instanciation of the class was not succesful, so you
can't use any of its methods!
Copyright © 2019. All rights reserved.