jeudi 30 juin 2016

how do I test a component

I need to test a component which basically returns a byte array after hitting a URL. The method looks like this:

@RequestMapping(value = "/{schemaType}/{schemaVersion}/{xsdFile:.+}", method = RequestMethod.GET)
@ResponseBody
public byte[] getSchema(@PathVariable("schemaType") String schemaType,
                @PathVariable("schemaVersion") String schemaVersion, @PathVariable("xsdFile") String xsdFile)
        throws Exception 
      {
     // Business logic
      }

Aucun commentaire:

Enregistrer un commentaire