Created
July 22, 2016 12:42
-
-
Save EmrysMyrddin/69b8ca0df9a322a682e0a768ff1fdcd8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for(TestStep step : listOfTestStep) | |
{ | |
WsdlTestStep stepWithConfig; | |
SamplerTestStep stepWithRequest; | |
if(setp instanceOf WsdlTestStep) stepWithConfig = (WsdlTestStep) step | |
if(setp instanceOf SampleTestStep) stepWithRequest = (SampleTestStep) step | |
//Tu fait des trucs ma bite | |
if(stepWithConfig) { | |
//Tu fait des trucs mon zboub mais que si c'est du WsdlTestStep | |
//Un peu con parce que tu implemente cette interface dans tous les cas :-) | |
} | |
if(stepWithRequest) { | |
//Tu fait des trucs mon zgeg mais que si c'est tu est avec un .getRequest | |
//Du coup ici tu peux utiliser stepWithConfig.getConfig() et | |
// stepWithRequest.getRequest() :-) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment