package controllers;

import org.junit.Test;
import play.mvc.Result;

import static org.fest.assertions.Assertions.assertThat;
import static play.mvc.Http.Status.OK;
import static play.test.Helpers.*;
import play.db.DB;
import static play.test.Helpers.fakeApplication;
import static play.test.Helpers.running;

public class ApplicationTest {
	
    @Test
    public void callIndex() {
    	running(fakeApplication(), new Runnable() {
    		@Override
	        public void run() {
		        Result result = callAction(controllers.routes.ref.Application.index());
		        assertThat(status(result)).isEqualTo(OK);
		        assertThat(contentType(result)).isEqualTo("text/html");
		        assertThat(charset(result)).isEqualTo("utf-8");
		        assertThat(contentAsString(result)).contains("Welcome to nForge");
    		}
    	});
    }
}

@@ -789,25 +789,40 @@
 ns(%22
-Welcome to nForge
+Powered by %3Cstrong%3EHIVE%3C/strong%3E
 %22);%0A

fix broken application test - root cause is change of product name. nForge to HIVE