mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-26 00:39:01 +00:00
polishing
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@793 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
+4
-2
@@ -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