Created
          March 15, 2016 14:29 
        
      - 
      
 - 
        
Save dnorton/b964c34534fb4777d53d to your computer and use it in GitHub Desktop.  
    simple unit test example in Kotlin
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import org.junit.Test | |
| import org.assertj.core.api.Assertions | |
| import org.junit.BeforeClass | |
| class ThingTest { | |
| companion object { | |
| @JvmStatic | |
| @BeforeClass fun init() { | |
| println("nada") | |
| } | |
| } | |
| @Test fun testParse() { | |
| Assertions.assertThat("hi").isEqualTo("hi") | |
| } | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
How do you run this ?