code clean up

This commit is contained in:
东皇 2018-07-05 12:00:29 +08:00
parent 12a255a5b4
commit 00fc0bc5f7
2 changed files with 5 additions and 6 deletions

View File

@ -14,7 +14,6 @@ import org.springframework.http.HttpStatus;
import org.springframework.http.HttpHeaders;
import org.apache.commons.lang3.StringUtils;
import org.springframework.core.io.Resource;
import org.apache.commons.lang3.CharEncoding;
import org.springframework.http.ResponseEntity;
import org.springframework.core.MethodParameter;
import org.springframework.beans.factory.annotation.Value;

View File

@ -21,7 +21,7 @@ import org.springframework.test.web.servlet.request.MockHttpServletRequestBuilde
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.*;
/**
* Controler Test Tool
* Controller Test Tool
* @version 0.1
* @author Shaun Chyxion <br>
* chyxion@163.com <br>
@ -140,13 +140,13 @@ public final class ControllerTestTool {
v = ((JSONObject) v).get(p);
}
}
Assert.isTrue(value.equals(v));
Assert.isTrue(value.equals(v), "Assert failed");
}
});
}
catch (Exception e) {
throw new IllegalStateException(
"Assert Mock HTTP Request JSON Result Value Error Caused", e);
"Assert mock http request JSON result value error caused", e);
}
}
@ -157,7 +157,7 @@ public final class ControllerTestTool {
}
catch (Exception e) {
throw new IllegalStateException(
"Assert Mock HTTP Request Forward Error Caused", e);
"Assert Mock HTTP Request Forward Error Caused", e);
}
}
@ -179,7 +179,7 @@ public final class ControllerTestTool {
}
catch (Exception e) {
throw new IllegalStateException(
"Mock HTTP Request Error Caused", e);
"Mock HTTP Request Error Caused", e);
}
}
}