Media

Type.APPLICATION_JSON_VALUE;import static org.springframework.http.MediaType.APPLICATION_XML_VALUE;import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post;import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content;import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;import org.junit.jupiter.api.Test;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.http.MediaType;import org.springframework.test.web.servlet.MockMvc;import com.michael.file.FileController;/** * FileControllerTests */class FileControllerTests extends SpringFiveDemoApplicationTests { @Autowired private FileController fileController; @Autowired MockMvc mvc; @Test void shouldPostWithXml(){ try { mvc.perform(post("/file") .content("test.txt") .contentType(MediaType.APPLICATION_XML)) .andExpect(status().isOk()) .andExpect(content().contentTypeCompatibleWith(APPLICATION_XML_VALUE)) .andExpect(content().xml("test.txt")); } catch (Exception e) { e.printStackTrace(); } } @Test void shouldPostWithJson(){ try { mvc.perform(post("/file") .content("{\"file\" : \"test.txt\"}") .contentType(MediaType.APPLICATION_JSON)) .andExpect(status().isOk()) .andExpect(content().contentTypeCompatibleWith(APPLICATION_JSON_VALUE)) .andExpect(content().json("{\"file\" : \"test.txt\"}")); } catch (Exception e) { e.printStackTrace(); } }}

How it works
  • Submit an enquiry to a product.
  • Wait for a call from nearest supplier from your area.
  • Get quote and product details.
  • Choose best from them.
Recently Added Suppliers

Media Price List

Product Name Price in INR Supplier
Filter Media, Rolls 400.00 / Piece(s) Srivin Engineering Company
Sand Carbon Filter, for Water Filter 25000.00 / Piece Universal Water Chemicals Private Limited
IN LINE SAND Filter, 0-200 mm, Vessel Height: 500-800 mm 3500.00 / Unit Sterilight Enviro Tech
Carbon Filter, GSM: 250 3000.00 / Piece Dew Technologies
Sand Filter 40 M3 18000.00 / Set Navina Irrigation Systems
Sand Filter 75000.00 / Unit Spectro Aqua Engineering