@@ -0,0 +1,1091 @@
+package com.bastengao.struts2.freeroute;%0A%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0A%0A/**%0A * @author bastengao%0A * @date 13-1-12 16:45%0A */%0Apublic class ResultsTest %7B%0A    @Test%0A    public void testOnlyType() %7B%0A        String result = Results.result(%22json%22);%0A        Assert.assertNotNull(result);%0A        Assert.assertEquals(%22json%22, result);%0A    %7D%0A%0A    @Test%0A    public void testResult() %7B%0A        String result = Results.result(%22dispatcher%22, %22/test.html%22);%0A        Assert.assertNotNull(result);%0A        Assert.assertEquals(%22dispatcher:/test.html%22, result);%0A    %7D%0A%0A    @Test%0A    public void testLocationResult() %7B%0A        String result = Results.dispatcher(%22/test.html%22);%0A        Assert.assertNotNull(result);%0A        Assert.assertEquals(%22dispatcher:/test.html%22, result);%0A%0A        String result2 = Results.html(%22/test.html%22);%0A        Assert.assertNotNull(result2);%0A        Assert.assertEquals(%22dispatcher:/test.html%22, result2);%0A%0A        String result3 = Results.jsp(%22/test.jsp%22);%0A        Assert.assertNotNull(result3);%0A        Assert.assertEquals(%22dispatcher:/test.jsp%22, result3);%0A    %7D%0A%7D%0A

添加 ResultsTest