Skip to content

Commit 48c2a85

Browse files
authored
chore: fix map serializer test compilation error (#7344)
1 parent 21fdc1b commit 48c2a85

File tree

1 file changed

+3
-1
lines changed
  • vaadin-map-flow-parent/vaadin-map-flow/src/test/java/com/vaadin/flow/component/map/serialization

1 file changed

+3
-1
lines changed

vaadin-map-flow-parent/vaadin-map-flow/src/test/java/com/vaadin/flow/component/map/serialization/MapSerializerTest.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import com.vaadin.flow.component.map.Assets;
2323
import com.vaadin.flow.component.map.configuration.source.OSMSource;
2424
import com.vaadin.flow.component.map.configuration.style.Icon;
25+
import com.vaadin.flow.server.AbstractStreamResource;
2526
import com.vaadin.flow.server.StreamRegistration;
2627
import com.vaadin.flow.server.StreamResourceRegistry;
2728
import com.vaadin.flow.server.VaadinSession;
@@ -47,7 +48,8 @@ public void setup() throws URISyntaxException {
4748
Mockito.when(ui.getSession()).thenReturn(mockSession);
4849
Mockito.when(mockSession.getResourceRegistry())
4950
.thenReturn(streamResourceRegistryMock);
50-
Mockito.when(streamResourceRegistryMock.registerResource(Mockito.any()))
51+
Mockito.when(streamResourceRegistryMock
52+
.registerResource((AbstractStreamResource) Mockito.any()))
5153
.thenReturn(streamRegistrationMock);
5254
Mockito.when(streamRegistrationMock.getResourceUri())
5355
.thenReturn(new URI("https://example.com"));

0 commit comments

Comments
 (0)