@@ -755,6 +755,7 @@ public void testGetCapUnboundedStyleFilter() throws Exception {
755755 List <String > gridSetNames = Arrays .asList ("GlobalCRS84Pixel" , "GlobalCRS84Scale" , "EPSG:4326" );
756756
757757 ParameterFilter styleFilter = mock (ParameterFilter .class );
758+ when (styleFilter .isUserVisible ()).thenReturn (true );
758759 when (styleFilter .getKey ()).thenReturn ("STYLES" );
759760 when (styleFilter .getDefaultValue ()).thenReturn ("Foo" );
760761 when (styleFilter .getLegalValues ()).thenReturn (null );
@@ -813,6 +814,7 @@ public void testGetCapEmptyStyleFilter() throws Exception {
813814 List <String > gridSetNames = Arrays .asList ("GlobalCRS84Pixel" , "GlobalCRS84Scale" , "EPSG:4326" );
814815
815816 ParameterFilter styleFilter = mock (ParameterFilter .class );
817+ when (styleFilter .isUserVisible ()).thenReturn (true );
816818 when (styleFilter .getKey ()).thenReturn ("STYLES" );
817819 when (styleFilter .getDefaultValue ()).thenReturn ("Foo" );
818820 when (styleFilter .getLegalValues ()).thenReturn (Collections .emptyList ());
@@ -871,6 +873,7 @@ public void testGetCapMultipleStyles() throws Exception {
871873 List <String > gridSetNames = Arrays .asList ("GlobalCRS84Pixel" , "GlobalCRS84Scale" , "EPSG:4326" );
872874
873875 ParameterFilter styleFilter = mock (ParameterFilter .class );
876+ when (styleFilter .isUserVisible ()).thenReturn (true );
874877 when (styleFilter .getKey ()).thenReturn ("STYLES" );
875878 when (styleFilter .getDefaultValue ()).thenReturn ("Foo" );
876879 when (styleFilter .getLegalValues ()).thenReturn (Arrays .asList ("Foo" , "Bar" , "Baz" ));
@@ -972,16 +975,19 @@ public void testGetCapWithMultipleDimensions() throws Exception {
972975 List <String > gridSetNames = Arrays .asList ("GlobalCRS84Pixel" , "GlobalCRS84Scale" , "EPSG:4326" );
973976
974977 ParameterFilter styleFilter = mock (ParameterFilter .class );
978+ when (styleFilter .isUserVisible ()).thenReturn (true );
975979 when (styleFilter .getKey ()).thenReturn ("STYLES" );
976980 when (styleFilter .getDefaultValue ()).thenReturn ("Foo" );
977981 when (styleFilter .getLegalValues ()).thenReturn (Arrays .asList ("Foo" , "Bar" , "Baz" ));
978982
979983 ParameterFilter elevationDimension = mock (ParameterFilter .class );
984+ when (elevationDimension .isUserVisible ()).thenReturn (true );
980985 when (elevationDimension .getKey ()).thenReturn ("elevation" );
981986 when (elevationDimension .getDefaultValue ()).thenReturn ("0" );
982987 when (elevationDimension .getLegalValues ()).thenReturn (Arrays .asList ("0" , "200" , "400" , "600" ));
983988
984989 ParameterFilter timeDimension = mock (ParameterFilter .class );
990+ when (timeDimension .isUserVisible ()).thenReturn (true );
985991 when (timeDimension .getKey ()).thenReturn ("time" );
986992 when (timeDimension .getDefaultValue ()).thenReturn ("2016-02-23T03:00:00.00" );
987993 when (timeDimension .getLegalValues ()).thenReturn (Collections .emptyList ());
@@ -1049,6 +1055,7 @@ public void testGetTileWithStyle() throws Exception {
10491055 List <String > gridSetNames = Arrays .asList ("GlobalCRS84Pixel" , "GlobalCRS84Scale" , "EPSG:4326" );
10501056
10511057 ParameterFilter styleFilter = mock (ParameterFilter .class );
1058+ when (styleFilter .isUserVisible ()).thenReturn (true );
10521059 when (styleFilter .getKey ()).thenReturn ("STYLES" );
10531060 when (styleFilter .getDefaultValue ()).thenReturn ("Foo" );
10541061 when (styleFilter .getLegalValues ()).thenReturn (Arrays .asList ("Foo" , "Bar" , "Baz" ));
0 commit comments