polishing

This commit is contained in:
Juergen Hoeller
2009-03-23 11:20:18 +00:00
parent c82a66b59c
commit 6d7bf17394
5 changed files with 44 additions and 62 deletions

View File

@@ -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) {