Truth Postfix Plugin

Compatible with: IntelliJ IDEA Android Studio
11.03.2016
387
This Plugin for Google truth to use Postfix Completion in IntelliJ Idea/Android Studio.
Available in Java and Kotlin (limited support).

Available templates:

Java

  • .assertThat
    Creates assertion from actual.
    assertThat(actual)
  • .assertWithMessage
    Creates assertion using custom message.
    assertWithMessage(message)
  • .assertAbout
    Creates assertion from custom subject.
    assertAbout(subjectFactory).that(actual)

Kotlin

  • .assertThat
    Creates assertion from actual.
    Truth.assertThat(actual)
If you want to use assertThat, manually run method import.

Download plugin

Recent change notes

  • 0.1.1: Changed plugin name.
  • 0.1.0: Initial release.