Search in sources :

Example 1 with LinkVisitChecker

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));
}
Also used : LinkVisitChecker(com.navercorp.pinpoint.web.service.LinkVisitChecker) Application(com.navercorp.pinpoint.web.vo.Application) Test(org.junit.Test)

Example 2 with LinkVisitChecker

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));
}
Also used : LinkVisitChecker(com.navercorp.pinpoint.web.service.LinkVisitChecker) Application(com.navercorp.pinpoint.web.vo.Application) Test(org.junit.Test)

Aggregations

LinkVisitChecker (com.navercorp.pinpoint.web.service.LinkVisitChecker)2 Application (com.navercorp.pinpoint.web.vo.Application)2 Test (org.junit.Test)2