Package de.galan.commons.test.jupiter
Class ApplicationClockExtension.ApplicationClockExtensionBuilder
java.lang.Object
de.galan.commons.test.jupiter.ApplicationClockExtension.ApplicationClockExtensionBuilder
- Enclosing class:
- ApplicationClockExtension
Builder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates a fixed Clock.Creates a fixed Clock with the given Instant.Creates a fixed Clock with the input format "yyyy-MM-dd HH:mm:ss" using the local (systemDefault) timezone.Resets the clock after each test to the system UTC Clock.Creates a fixed Clock with the input format "yyyy-MM-dd'T'HH:mm:ss'Z'" using UTC as timezone.Creates a fixed Clock with the given date using the utc timezone.
-
Constructor Details
-
ApplicationClockExtensionBuilder
public ApplicationClockExtensionBuilder()
-
-
Method Details
-
clock
Creates a fixed Clock. -
systemUTC
Resets the clock after each test to the system UTC Clock. -
instant
Creates a fixed Clock with the given Instant. -
local
Creates a fixed Clock with the input format "yyyy-MM-dd HH:mm:ss" using the local (systemDefault) timezone. -
utc
Creates a fixed Clock with the given date using the utc timezone. -
utc
Creates a fixed Clock with the input format "yyyy-MM-dd'T'HH:mm:ss'Z'" using UTC as timezone. -
build
-