object FakeTimer
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- FakeTimer
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
fake[T](t: String)(block: ⇒ T): T
Fake DateTime.now by specified ISODateTimeFormat string
Fake DateTime.now by specified ISODateTimeFormat string
e.g. TimeFaker.fake("2018-03-01T12:34:56") { }
-
def
fake[T](t: DateTime)(block: ⇒ T): T
Fake DateTime.now by specified DateTime object.
-
def
fake[T](timeMillis: Long)(block: ⇒ T): T
Fake DateTime.now by specified timeMillis.
Fake DateTime.now by specified timeMillis.
Time will be restored after block.
-
def
fakeWithTimer[T](t: String)(block: (FakeTimer) ⇒ T): T
ISODateTimeFormat string version of fakeWithTimer
-
def
fakeWithTimer[T](t: DateTime)(block: (FakeTimer) ⇒ T): T
DateTime object version of fakeWithTimer
-
def
fakeWithTimer[T](timeMillis: Long)(block: (FakeTimer) ⇒ T): T
Fake DateTime.now by specified timeMillis.
Fake DateTime.now by specified timeMillis.
This method passes FakeTimer instance to block, so you can advance time by tick method.
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )