com.atlassian.hamcrest
Class ClassMatchers

java.lang.Object
  extended by com.atlassian.hamcrest.ClassMatchers

public final class ClassMatchers
extends java.lang.Object

Matchers useful when dealing with Classes.


Constructor Summary
ClassMatchers()
           
 
Method Summary
static org.hamcrest.Matcher<java.lang.Class<?>> isArray()
          Creates and returns a Matcher which checks if the type being passed in is an array.
static org.hamcrest.Matcher<java.lang.Class<?>> isAssignableTo(java.lang.Class<?> to)
          Returns a Matcher which will match any class that is assignable to the given type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassMatchers

public ClassMatchers()
Method Detail

isArray

public static org.hamcrest.Matcher<java.lang.Class<?>> isArray()
Creates and returns a Matcher which checks if the type being passed in is an array.

Returns:
Matcher which checks if the type being passed in is an array

isAssignableTo

public static final org.hamcrest.Matcher<java.lang.Class<?>> isAssignableTo(java.lang.Class<?> to)
Returns a Matcher which will match any class that is assignable to the given type.

Parameters:
to - type that must be assignable to
Returns:
Matcher which will match any class that is assignable to the given type


Copyright © 2009 Atlassian. All Rights Reserved.