Skip to content

Instantly share code, notes, and snippets.

@gdevanla
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gdevanla/7832db2bdb46139e9b08 to your computer and use it in GitHub Desktop.
Save gdevanla/7832db2bdb46139e9b08 to your computer and use it in GitHub Desktop.
// code generated from <org.scribe.extractors.TokenExtractorTest: void shouldExtractTokenFromOAuthStandardResponse()>
com.ser.assist.statecarver.xstreamcarver.StaticStateLoader.loadStaticState(760, "scribe-java_freqT")
def dbName_intg = "scribe-java_freqT_intg"
temp$0 = com.ser.assist.statecarver.xstreamcarver.XStreamStateCarver.loadState(760, 200, "scribe-java_freqT")
temp$0_clone = com.ser.assist.statecarver.xstreamcarver.XStreamStateCarver.loadState(760, 200, "scribe-java_freqT")
response = com.ser.assist.statecarver.xstreamcarver.XStreamStateCarver.loadState(760, 0, "scribe-java_freqT")
//Note that we are using a 'response' object which was tested as part of unit test elsewhere.
extracted = temp$0.extract(response)
extracted_clone = com.ser.assist.statecarver.xstreamcarver.XStreamStateCarver.loadState(760, 300, "scribe-java_freqT")
temp$2 = extracted.getToken()
temp$2_clone = extracted_clone.getToken()
assertEquals(temp$2_clone,temp$2)
temp$3 = extracted.getSecret()
temp$3_clone = extracted_clone.getSecret()
assertEquals(temp$3_clone,temp$3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment