/*******************************************************************************
 * Copyright 2014, 2017 gwt-ol3
 *
 * 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 ol.format;

import elemental2.dom.Node;

import ol.GwtOLBaseTestCase;

/**
 * Test for WFS format.
 * 
 * @author Tino Desjardins
 *
 */
public class WfsTest extends GwtOLBaseTestCase {

	private Wfs wfsFormat;

	@Override
	protected void gwtSetUp() throws Exception {
	    injectUrlAndTest(() -> wfsFormat = new Wfs());
	}
    
    public void testWriteGetFeature() {        
        injectUrlAndTest(() -> {
            assertNotNull(wfsFormat);
            
            WfsWriteFeatureOptions wfsWriteFeatureOptions = new WfsWriteFeatureOptions();
            wfsWriteFeatureOptions.setFeatureNS("http://openstreemap.org");
            wfsWriteFeatureOptions.setFeaturePrefix("osm");
            wfsWriteFeatureOptions.setFeatureTypes(new String[] {"water_areas"});
            
            Node node = wfsFormat.writeGetFeature(wfsWriteFeatureOptions);
            
            assertNotNull(node);
        });
    }
    
}

@@ -101,9 +101,9 @@
  201
-7
+8
  gwt
@@ -969,17 +969,20 @@
 se %7B%0D%0A%0D%0A
-%09
+    
 private 
@@ -999,17 +999,20 @@
 mat;%0D%0A%0D%0A
-%09
+    
 @Overrid
@@ -1014,17 +1014,20 @@
 erride%0D%0A
-%09
+    
 protecte
@@ -1064,17 +1064,20 @@
 tion %7B%0D%0A
-%09
+    
     inje
@@ -1124,16 +1124,15 @@
 );%0D%0A
-%09%7D%0D%0A
     
+%7D%0D%0A
 %0D%0A  
@@ -1168,24 +1168,18 @@
 ture() %7B
-        
+%0D%0A
 %0D%0A      
@@ -1202,24 +1202,26 @@
 st(() -%3E %7B%0D%0A
+%0D%0A
             
@@ -1243,36 +1243,24 @@
 fsFormat);%0D%0A
-            
 %0D%0A          
@@ -1557,36 +1557,24 @@
 _areas%22%7D);%0D%0A
-            
 %0D%0A          
@@ -1639,28 +1639,16 @@
 ions);%0D%0A
-            
 %0D%0A      
@@ -1671,24 +1671,26 @@
 ull(node);%0D%0A
+%0D%0A
         %7D);%0D
@@ -1694,19 +1694,17 @@
 );%0D%0A
+%0D%0A
     %7D%0D%0A
-    
 %0D%0A%7D%0D

Remove whitespaces