use of com.navercorp.pinpoint.bootstrap.instrument.matcher.operator.AndMatcherOperator in project pinpoint by naver.
the class DefaultClassBasedMatcherTest method getMatcherOperandWithClassNameAndAdditional.
@Test
public void getMatcherOperandWithClassNameAndAdditional() {
InterfaceInternalNameMatcherOperand additional = new InterfaceInternalNameMatcherOperand("java/lang/Runnable", false);
DefaultClassBasedMatcher matcher = new DefaultClassBasedMatcher("java.lang.String", additional);
assertEquals("java.lang.String", matcher.getBaseClassName());
MatcherOperand operand = matcher.getMatcherOperand();
assertTrue(operand instanceof AndMatcherOperator);
AndMatcherOperator operator = (AndMatcherOperator) operand;
assertTrue(operator.getLeftOperand() instanceof ClassInternalNameMatcherOperand);
assertTrue(operator.getRightOperand() instanceof InterfaceInternalNameMatcherOperand);
}
Aggregations