All Downloads are FREE. Search and download functionalities are using the official Maven repository.

testgeneration_templates.loadmethod.tmp Maven / Gradle / Ivy

		${request_body}
		final Request ${request_variable} = new Request.Builder().url("${transaction_url}")
${request_building}		.build();
		
		load("${transaction_name}", ()->{	
			return getTypeInstance().getHttpClient().newCall(${request_variable}).execute();	
		})
		.handleResult(resultHandler->{

			try {
				if(resultHandler.getResponse() == null || (resultHandler.getResponse().code() != ${expected_http_code})) {
					resultHandler.setStatus(false);
					return;
				}${handleResultReadResponse}				${result_asserts}
			}finally {
				resultHandler.getResponse().close();
			}
			
		})
		.perform();
		
		




© 2015 - 2024 Weber Informatics LLC | Privacy Policy