Clean up warnings in spring-test
This commit is contained in:
parent
491adf1f2f
commit
527b778bf9
|
|
@ -370,13 +370,11 @@ class StubWebApplicationContext implements WebApplicationContext {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@SuppressWarnings("rawtypes")
|
|
||||||
public Object createBean(Class<?> beanClass, int autowireMode, boolean dependencyCheck) {
|
public Object createBean(Class<?> beanClass, int autowireMode, boolean dependencyCheck) {
|
||||||
return BeanUtils.instantiate(beanClass);
|
return BeanUtils.instantiate(beanClass);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@SuppressWarnings("rawtypes")
|
|
||||||
public Object autowire(Class<?> beanClass, int autowireMode, boolean dependencyCheck) {
|
public Object autowire(Class<?> beanClass, int autowireMode, boolean dependencyCheck) {
|
||||||
return BeanUtils.instantiate(beanClass);
|
return BeanUtils.instantiate(beanClass);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -83,7 +83,6 @@ public class FileUploadControllerTests {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@SuppressWarnings("unused")
|
|
||||||
@Controller
|
@Controller
|
||||||
private static class MultipartController {
|
private static class MultipartController {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,8 +23,6 @@ import javax.servlet.ServletException;
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
|
||||||
import com.fasterxml.jackson.databind.JsonSerializer;
|
|
||||||
import com.fasterxml.jackson.databind.ser.impl.UnknownSerializer;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import org.springframework.http.converter.json.SpringHandlerInstantiator;
|
import org.springframework.http.converter.json.SpringHandlerInstantiator;
|
||||||
|
|
@ -38,6 +36,9 @@ import org.springframework.web.method.HandlerMethod;
|
||||||
import org.springframework.web.servlet.HandlerExecutionChain;
|
import org.springframework.web.servlet.HandlerExecutionChain;
|
||||||
import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping;
|
import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.databind.JsonSerializer;
|
||||||
|
import com.fasterxml.jackson.databind.ser.impl.UnknownSerializer;
|
||||||
|
|
||||||
import static org.junit.Assert.*;
|
import static org.junit.Assert.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -100,6 +101,7 @@ public class StandaloneMockMvcBuilderTests {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test // SPR-13375
|
@Test // SPR-13375
|
||||||
|
@SuppressWarnings("rawtypes")
|
||||||
public void springHandlerInstantiator() {
|
public void springHandlerInstantiator() {
|
||||||
TestStandaloneMockMvcBuilder builder = new TestStandaloneMockMvcBuilder(new PersonController());
|
TestStandaloneMockMvcBuilder builder = new TestStandaloneMockMvcBuilder(new PersonController());
|
||||||
builder.build();
|
builder.build();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue