Coverage Report - com.lexicalscope.fluentreflection.MatcherConstructorReflectingOn
 
Classes in this File Line Coverage Branch Coverage Complexity
MatcherConstructorReflectingOn
100%
7/7
N/A
1
 
 1  24
 package com.lexicalscope.fluentreflection;
 2  
 
 3  
 import java.lang.reflect.Constructor;
 4  
 
 5  
 import org.hamcrest.Description;
 6  
 
 7  
 final class MatcherConstructorReflectingOn extends ReflectionMatcher<FluentConstructor<?>> {
 8  
     private final Constructor<?> constructor;
 9  
 
 10  32
     public MatcherConstructorReflectingOn(final Constructor<?> constructor) {
 11  32
         this.constructor = constructor;
 12  32
     }
 13  
 
 14  
     @Override
 15  
     protected boolean matchesSafely(final FluentConstructor<?> item) {
 16  24
         return item.member().equals(constructor);
 17  
     }
 18  
 
 19  
     @Override
 20  
     public void describeTo(final Description description) {
 21  8
         description.appendText("reflecting on constructor ").appendValue(constructor);
 22  8
     }
 23  
 }