package org.torquebox.integration.arquillian;

import static org.junit.Assert.*;

import org.jboss.arquillian.api.Deployment;
import org.jboss.arquillian.api.Run;
import org.jboss.arquillian.api.RunModeType;
import org.jboss.shrinkwrap.api.spec.JavaArchive;
import org.junit.Test;
import org.openqa.selenium.WebElement;

@Run(RunModeType.AS_CLIENT)
public class BasicRails_2_3_8_Test extends AbstractIntegrationTest {

	@Deployment
	public static JavaArchive createDeployment() {
		return createDeployment( "rails/2.3.8/basic-rails.yml" );
	}

	@Test
	public void testHighLevel() {
        driver.get( "http://localhost:8080/basic-rails" );
        WebElement element = driver.findElementById( "success" );
        assertNotNull( element );
        assertEquals( "basic-rails", element.getAttribute( "class" ) );
	}
	
	@Test
	public void testSendData() {
        driver.get( "http://localhost:8080/basic-rails/senddata" );
        String content = driver.getPageSource();
        assertNotNull( content );
        assertEquals( "this is the content", content );
	    
	}
	
	@Test
	public void testSendFile() {
        driver.get( "http://localhost:8080/basic-rails/sendfile" );
        String content = driver.getPageSource();
        assertNotNull( content );
        assertEquals( "this is the contents of the file", content );
	    
	}


}

package org.torquebox.integration.arquillian;

import static org.junit.Assert.*;

import org.jboss.arquillian.api.Deployment;
import org.jboss.arquillian.api.Run;
import org.jboss.arquillian.api.RunModeType;
import org.jboss.shrinkwrap.api.spec.JavaArchive;
import org.junit.Test;
import org.openqa.selenium.WebElement;

@Run(RunModeType.AS_CLIENT)
public class BasicRails_2_3_8_Test extends AbstractIntegrationTest {

	@Deployment
	public static JavaArchive createDeployment() {
		return createDeployment( "rails/2.3.8/basic-rails.yml" );
	}

	@Test
	public void testHighLevel() {
        driver.get( "http://localhost:8080/basic-rails" );
        WebElement element = driver.findElementById( "success" );
        assertNotNull( element );
        assertEquals( "basic-rails", element.getAttribute( "class" ) );
	}
	
	@Test
	public void testSendData() {
        driver.get( "http://localhost:8080/basic-rails/senddata" );
        String content = driver.getPageSource();
        assertNotNull( content );
        assertEquals( "this is the content", content );
	    
	}
	
	@Test
	public void testSendFile() {
        driver.get( "http://localhost:8080/basic-rails/sendfile" );
        String content = driver.getPageSource();
        assertNotNull( content );
        assertEquals( "this is the contents of the file", content.trim() );
	    
	}


}

Trim off newlines, etc.