/**
 * Copyright (C) 2014 Microsoft Corporation
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.microsoft.reef.examples.hello;

import com.microsoft.reef.client.LauncherStatus;
import com.microsoft.reef.examples.hellohttp.HelloREEFHttp;
import com.microsoft.reef.runtime.local.client.LocalRuntimeConfiguration;
import com.microsoft.tang.Configuration;
import com.microsoft.tang.exceptions.BindException;
import com.microsoft.tang.exceptions.InjectionException;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;

/**
 * Test Hello Http
 */
public class HelloHttpTest {
    @Test
    public void testHttpServer() throws BindException, InjectionException {
        final Configuration runtimeConfiguration = LocalRuntimeConfiguration.CONF
                .set(LocalRuntimeConfiguration.NUMBER_OF_THREADS, 2)
                .build();
        final LauncherStatus status = HelloREEFHttp.runHelloReef(runtimeConfiguration, 10 * 1000);
        Assert.assertTrue("Job state after execution: " + status, status.isDone());
    }
}
@@ -1007,114 +1007,38 @@
 it.A
-fter;%0Aimport org.junit.Assert;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0A/**%0A * Test Hello Http%0A */
+ssert;%0Aimport org.junit.Test;%0A
 %0Apub
@@ -1069,18 +1069,14 @@
 %7B%0A  
- 
- 
 @Test%0A
-  
   pu
@@ -1145,20 +1145,17 @@
 ption %7B%0A
-    
+%0A
     fina
@@ -1232,24 +1232,16 @@
         
-       
- 
 .set(Loc
@@ -1285,24 +1285,16 @@
 ADS, 2)%0A
-        
         
@@ -1303,20 +1303,17 @@
 uild();%0A
-    
+%0A
     fina
@@ -1403,20 +1403,16 @@
 0);%0A    
- 
-   
 Assert.a
@@ -1474,20 +1474,22 @@
 s.is
-Done
+Success
 ());%0A
-  
   %7D%0A%7D
+%0A

make sure the app finishes successfully in the HelloHttpTest