I want to use data from CSV file mentioned in CSV Data Set Config of JMeter into my JUnit testcase program and pass that data to test method.
I know how to get data from
You can try using:
JMeterContextService.getContext().getVariables().get("varName")
see:
https://jmeter.apache.org/api/org/apache/jmeter/threads/JMeterContext.html#getVariables()
https://jmeter.apache.org/api/org/apache/jmeter/threads/JMeterContext.html