@Multipart("image") DataSource image
No serializer found for class java.io.BufferedInputStream and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) )InputStream is = myClass.class.getClassLoader().getResourceAsStream("somePic.png");
DataSource ds = new InputStreamDataSource(imageStream, MediaType.IMAGE_PNG_VALUE);
given(getDocumentationSpec())
.sessionId(user)
.multiPart("image", ds)
.contentType("multipart/form-data")
.when()
.put("path", userId)
.then()
.statusCode(Status.OK.getStatusCode());
--
You received this message because you are subscribed to the Google Groups "REST assured" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rest-assured+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to rest-assured...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to rest-assured+unsubscribe@googlegroups.com.