@@ -0,0 +1,920 @@
+package com.bastengao.struts2.freeroute.helper;%0A%0Aimport com.bastengao.struts2.freeroute.annotation.MethodType;%0Aimport com.bastengao.struts2.freeroute.annotation.Route;%0A%0Aimport static org.mockito.Mockito.mock;%0Aimport static org.mockito.Mockito.when;%0A%0A/**%0A * @author bastengao%0A * @date 13-3-2 10:41%0A */%0Apublic class RouteHelper %7B%0A%0A    public static Route mockRoute(String value, MethodType%5B%5D methods, String%5B%5D params) %7B%0A        Route route = mock(Route.class);%0A        when(route.value()).thenReturn(value);%0A        when(route.method()).thenReturn(methods);%0A        when(route.params()).thenReturn(params);%0A        return route;%0A    %7D%0A%0A    public static Route mockRoute(String value) %7B%0A        Route route = mock(Route.class);%0A        when(route.value()).thenReturn(value);%0A        when(route.method()).thenReturn(new MethodType%5B%5D%7B%7D);%0A        when(route.params()).thenReturn(new String%5B%5D%7B%7D);%0A        return route;%0A    %7D%0A%7D%0A

test containsSameRoute