use of com.navercorp.pinpoint.web.service.LinkVisitChecker in project pinpoint by naver.
the class LinkVisitCheckerTest method testVisitCallee.
@Test
public void testVisitCallee() throws Exception {
LinkVisitChecker checker = new LinkVisitChecker();
Application testApplication = new Application("test", ServiceType.STAND_ALONE);
Assert.assertFalse(checker.visitCallee(testApplication));
Assert.assertTrue(checker.visitCallee(testApplication));
Application newApp = new Application("newApp", ServiceType.STAND_ALONE);
Assert.assertFalse(checker.visitCallee(newApp));
Assert.assertTrue(checker.visitCallee(newApp));
}
use of com.navercorp.pinpoint.web.service.LinkVisitChecker in project pinpoint by naver.
the class LinkVisitCheckerTest method testVisitCaller.
@Test
public void testVisitCaller() throws Exception {
LinkVisitChecker checker = new LinkVisitChecker();
Application testApplication = new Application("test", ServiceType.STAND_ALONE);
Assert.assertFalse(checker.visitCaller(testApplication));
Assert.assertTrue(checker.visitCaller(testApplication));
Application newApp = new Application("newApp", ServiceType.STAND_ALONE);
Assert.assertFalse(checker.visitCaller(newApp));
Assert.assertTrue(checker.visitCaller(newApp));
}
Aggregations