use of com.navercorp.pinpoint.common.util.ApiDescription in project pinpoint by naver.
the class ApiDescriptionParserTest method parseNoPackage.
@Test
public void parseNoPackage() {
String api = "StandardHostValve.invoke(Request request, Response response)";
ApiDescription result = apiParser.parse(api);
Assert.assertEquals("StandardHostValve", result.getClassName());
Assert.assertEquals("StandardHostValve", result.getSimpleClassName());
Assert.assertEquals("", result.getPackageNameName());
Assert.assertEquals("invoke", result.getMethodName());
Assert.assertEquals("invoke(Request request, Response response)", result.getSimpleMethodDescription());
Assert.assertEquals("StandardHostValve", result.getSimpleClassName());
Assert.assertArrayEquals(new String[] { "Request request", "Response response" }, result.getSimpleParameter());
}
Aggregations