Searched refs:inSubpackage (Results 1 – 2 of 2) sorted by relevance
25 import static com.google.inject.matcher.Matchers.inSubpackage;131 assertEquals("inSubpackage(java.lang)", inSubpackage(stringPackageName).toString()); in testInSubpackage()132 assertTrue(inSubpackage(stringPackageName).matches(Object.class)); in testInSubpackage()133 assertTrue(inSubpackage(stringPackageName).matches(Method.class)); in testInSubpackage()134 assertFalse(inSubpackage(stringPackageName).matches(Matchers.class)); in testInSubpackage()135 assertFalse(inSubpackage("jav").matches(Object.class)); in testInSubpackage()136 assertEqualsBothWays(inSubpackage(stringPackageName), inSubpackage(stringPackageName)); in testInSubpackage()137 …assertFalse(inSubpackage(stringPackageName).equals(inSubpackage(Matchers.class.getPackage().getNam… in testInSubpackage()159 assertEqualWhenReserialized(inSubpackage(String.class.getPackage().getName())); in testSerialization()
333 public static Matcher<Class> inSubpackage(final String targetPackageName) { in inSubpackage() method in Matchers