Advertisement
Guest User

Untitled

a guest
Dec 21st, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 0.38 KB | None | 0 0
  1. import org.junit.Test
  2.  
  3. class Asdf {
  4.  
  5.     private String testInput
  6.  
  7.     void runTests() {
  8.         Scanner input = new Scanner(System.in)
  9.         println "Please insert some value"
  10.         testInput = input.nextLine()
  11.         println testInput
  12.         "hello there tests"()
  13.     }
  14.  
  15.     @Test
  16.     void "hello there tests"() {
  17.         assert "boi" == testInput
  18.     }
  19.  
  20.  
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement