package org.apache.mesos.elasticsearch.scheduler;

import org.apache.mesos.Protos;
import org.junit.Test;

import static org.junit.Assert.assertTrue;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;

/**
 * Tests
 */
public class FrameworkInfoFactoryTest {

    public static final int DUMMY_PORT = 1234;

    @Test
public void shouldGetBuilder() {
    Configuration configuration = mock(Configuration.class);
    when(configuration.getFrameworkName()).thenReturn("TestFrameworkName");
    when(configuration.getWebUiPort()).thenReturn(DUMMY_PORT);
    FrameworkInfoFactory frameworkInfoFactory = new FrameworkInfoFactory(configuration);
    Protos.FrameworkInfo frameworkInfo = frameworkInfoFactory.getBuilder().build();
    assertTrue(frameworkInfo.getWebuiUrl().contains("http://"));
    assertTrue(frameworkInfo.getWebuiUrl().contains(Integer.toString(DUMMY_PORT)));
}
}
@@ -340,16 +340,20 @@
   @Test%0A
+    
 public v
@@ -377,16 +377,20 @@
 der() %7B%0A
+    
     Conf
@@ -442,24 +442,28 @@
 class);%0A    
+ 
+   
 when(configu
@@ -522,16 +522,20 @@
 Name%22);%0A
+    
     when
@@ -593,16 +593,20 @@
 T);%0A    
+  
+  
 Framewor
@@ -682,16 +682,20 @@
 ation);%0A
+    
     Prot
@@ -770,24 +770,28 @@
 uild();%0A    
+   
+ 
 assertTrue(f
@@ -839,16 +839,20 @@
 ://%22));%0A
+    
     asse
@@ -927,11 +927,15 @@
 ORT)));%0A
+    
 %7D%0A%7D

Fix broken indentation