Example usage for org.springframework.web.client RestTemplate getClass

List of usage examples for org.springframework.web.client RestTemplate getClass

Introduction

In this page you can find the example usage for org.springframework.web.client RestTemplate getClass.

Prototype

@HotSpotIntrinsicCandidate
public final native Class<?> getClass();

Source Link

Document

Returns the runtime class of this Object .

Usage

From source file:org.springframework.boot.web.client.RestTemplateBuilderTests.java

@Test
public void buildShouldReturnRestTemplate() throws Exception {
    RestTemplate template = this.builder.build();
    assertThat(template.getClass()).isEqualTo(RestTemplate.class);
}