>I thought it would choke because of ((NameValuePair), but it's not. generics would eliminate the need for the cast - but you can always cast an object to what it actually is with or without generics in java.
On Thu, Apr 19, 2012 at 4:17 PM, 5942marine <[email protected]> wrote: > Thank you, now it's working. Here is my updated code: > > List params = null; > > try { > params = URLEncodedUtils.parse(new URI(tripItURl), "UTF-8"); > } catch (URISyntaxException e) { > // TODO Auto-generated catch block > e.printStackTrace(); > } > > String oauth_token = ((NameValuePair) params.get(0)).getValue(); > String oauth_callback = ((NameValuePair) params.get(1)).getValue(); > > Quick question thought, I had add a cast to params.get(0).getValue(), and > my > code is working in Jmeter just fine. I thought it would choke because of > ((NameValuePair), but it's not. > > Thanks everyone, moving on in the test script! > > -- > View this message in context: > http://jmeter.512774.n5.nabble.com/Jmeter-and-Beanshell-tp5652979p5653014.html > Sent from the JMeter - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
