import org.tellurium.test.java.TelluriumJavaTestCase;
import org.junit.*;
import junit.framework.Assert;

public class test  extends TelluriumJavaTestCase {
	private static source app;
    String ip="hello", op="bonjour"; 

    @BeforeClass
    public static void init() {
        app = new source();
        app.defineUi();
    }

    @Before
    public void setUp() {       
    	connectUrl("http://localhost/GTranslatev1.0/index.html");
    }

    @Test
    public void translate() {
    	System.out.println("Start \n");
        Assert.assertEquals(op,app.translate(ip));
        Assert.assertEquals("hallo",app.translate1(ip));
        System.out.println("End \n");
    } 
    
}