Java Code Examples for com.alibaba.csp.sentinel.Constants#SENTINEL_VERSION
The following examples show how to use
com.alibaba.csp.sentinel.Constants#SENTINEL_VERSION .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: HttpServerHandlerTest.java From Sentinel-Dashboard-Nacos with Apache License 2.0 | 5 votes |
/** * {@link com.alibaba.csp.sentinel.command.handler.VersionCommandHandler} */ @Test public void testVersionCommand() { String httpRequestStr = "GET /version HTTP/1.1" + CRLF + "Host: localhost:8719" + CRLF + CRLF; String expectedBody = Constants.SENTINEL_VERSION; processSuccess(httpRequestStr, expectedBody); }
Example 2
Source File: HttpServerHandlerTest.java From Sentinel with Apache License 2.0 | 5 votes |
/** * {@link com.alibaba.csp.sentinel.command.handler.VersionCommandHandler} */ @Test public void testVersionCommand() { String httpRequestStr = "GET /version HTTP/1.1" + CRLF + "Host: localhost:8719" + CRLF + CRLF; String expectedBody = Constants.SENTINEL_VERSION; processSuccess(httpRequestStr, expectedBody); }