polishing
This commit is contained in:
@@ -21,7 +21,7 @@ import java.util.Collections;
|
||||
import java.util.Comparator;
|
||||
import java.util.List;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.*;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
|
||||
@@ -30,7 +30,7 @@ import org.springframework.web.bind.annotation.RequestMethod;
|
||||
/**
|
||||
* @author Arjen Poutsma
|
||||
*/
|
||||
public class RequestMappingInfoComparatorTest {
|
||||
public class RequestMappingInfoComparatorTests {
|
||||
|
||||
private AnnotationMethodHandlerAdapter.RequestMappingInfoComparator comparator;
|
||||
|
||||
@@ -44,6 +44,7 @@ public class RequestMappingInfoComparatorTest {
|
||||
|
||||
private AnnotationMethodHandlerAdapter.RequestMappingInfo oneMethodTwoParamsInfo;
|
||||
|
||||
|
||||
@Before
|
||||
public void setUp() throws NoSuchMethodException {
|
||||
comparator = new AnnotationMethodHandlerAdapter.RequestMappingInfoComparator(new MockComparator());
|
||||
@@ -84,6 +85,7 @@ public class RequestMappingInfoComparatorTest {
|
||||
assertEquals(emptyInfo, infos.get(4));
|
||||
}
|
||||
|
||||
|
||||
private static class MockComparator implements Comparator<String> {
|
||||
|
||||
public int compare(String s1, String s2) {
|
||||
Reference in New Issue
Block a user