title: kotlin + junit 5 - assertAll usage
body: <p>I use next version of junit 5</p>
  
  <pre><code>    &lt;junit.jupiter.version&gt;5.2.0&lt;/junit.jupiter.version&gt;
      &lt;junit.platform.version&gt;1.2.0&lt;/junit.platform.version&gt;
      &lt;junit.vintage.version&gt;5.2.0&lt;/junit.vintage.version&gt;
  </code></pre>
  
  <p>Kotlin version is </p>
  
  <pre><code>    &lt;kotlin.version&gt;1.2.31&lt;/kotlin.version&gt;
  </code></pre>
  
  <p>I try to use new assertion functionality from junit 5 with kotlin like</p>
  
  <pre><code>assertAll("person",
      { assertEquals("John", person.firstName) },
      { assertEquals("Doe", person.lastName) }
  )
  </code></pre>
  
  <p>but code analyzer says that no suitable version of the method is found.</p>
  
  <pre><code>Error:(28, 9) Kotlin: None of the following functions can be called with the arguments supplied: 
      public fun assertAll(vararg executables: () -&gt; Unit): Unit defined in org.junit.jupiter.api
      public fun assertAll(heading: String?, vararg executables: () -&gt; Unit): Unit defined in org.junit.jupiter.api
  </code></pre>
  
  <p>if I write the code like this it works fine. What is the trick?</p>
  
  <pre><code>assertAll("person",
      Executable { assertEquals("John", person.firstName) },
      Executable { assertEquals("Doe", person.lastName) }
  )
  </code></pre>