Skip to content

Instantly share code, notes, and snippets.

@svillarreal
svillarreal / AuthorizationService.java
Last active April 5, 2024 20:34
JMeter as Code - Programmatic approach - Stress Test
package com.company.stresstest.oauth;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.*;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;
import org.springframework.web.client.RestTemplate;