Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

Auto static import fest assertions in live template

$
0
0

Hi,

Using intellij LEDA 122-746 I am trying to get the following inserted from a  live template

    @Test

    public void should_() {

        // Given

 

        // When

 

        // Then

        assertThat("");

    }

 

I have defined a live template as such:

 

    @org.junit.Test

    public void should_(){

        // Given

 

        // When

 

        // Then

        org.fest.assertions.api.Assertions.assertThat("");

    }

and checked all the check boxes (reformat, use static import if possible, shorten  FQ Names)

 

what I get is :

    @Test

    public void should_() {

        // Given

 

        // When

 

        // Then

        Assertions.assertThat("");

    }

 

Is this a bug or is there something I missed in the configuration  ?

 

thanks


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>