/external/mockito/src/test/java/org/mockitousage/jls/ |
D | JLS_15_12_2_5Test.java | 59 assertThat(mock.oneArg(null)).describedAs("Most generic method chosen for matcher " + in with_single_arg() 71 …assertThat(mock.oneArg(null)).describedAs("Most specific method enforced for matcher via cast").is… in with_single_arg_and_matcher_cast() 81 …assertThat(mock.oneArg(arg)).describedAs("Most generic method chosen for matcher").isEqualTo("ok"); in with_single_arg_and_null_Object_reference() 90 assertThat(mock.varargs(null)).describedAs("Most generic method chosen for matcher " + in with_variable_arg() 102 …assertThat(mock.varargs(null)).describedAs("Most specific method enforced for matcher via String c… in with_variable_arg_and_matcher_String_cast() 111 …assertThat(mock.varargs(null)).describedAs("Most specific method enforced for matcher via String[]… in with_variable_arg_and_matcher_String_array_cast() 121 …assertThat(mock.varargs(args)).describedAs("isNull matcher generic upper bound is Object").isEqual… in with_variable_arg_and_null_Object_array() 131 …assertThat(mock.varargs(arg)).describedAs("isNull matcher generic upper bound is Object").isEqualT… in with_variable_arg_and_null_Object_arg() 193 …assertThat(mock.oneArg(null)).describedAs("Most specific method chosen for matcher and for null").… in with_single_arg() 203 assertThat(mock.oneArg(arg)).describedAs("not the stubbed method").isEqualTo(null); in with_single_arg_and_null_Object_reference() [all …]
|
/external/hamcrest/hamcrest-core/src/test/java/org/hamcrest/core/ |
D | DescribedAsTest.java | 7 import static org.hamcrest.core.DescribedAs.describedAs; 15 Matcher<Object> matcher = describedAs("irrelevant", anything()); in copesWithNullsAndUnknownTypes() 23 Matcher<?> matcher = describedAs("my description", anything()); in overridesDescriptionOfOtherMatcherWithThatPassedToConstructor() 30 Matcher<?> matcher = describedAs("value 1 = %0, value 2 = %1", anything(), 33, 97); in appendsValuesToDescription() 37 Matcher<String> matcher = describedAs("irrelevant", equalTo("hi")); in celegatesMatchingToAnotherMatcher() 45 Matcher<Integer> matcher = describedAs("irrelevant", equalTo(2)); in delegatesMismatchDescriptionToAnotherMatcher()
|
/external/mockito/src/main/java/org/mockito/internal/matchers/ |
D | InstanceOf.java | 23 public InstanceOf(Class<?> clazz, String describedAs) { in InstanceOf() argument 25 this.description = describedAs; in InstanceOf() 44 public VarArgAware(Class<?> clazz, String describedAs) { in VarArgAware() argument 45 super(clazz, describedAs); in VarArgAware()
|
/external/mockito/src/test/java/org/mockitoutil/ |
D | Conditions.java | 27 .describedAs("Number of classes does not match.\nExpected: %s\nGot: %s", in onlyThoseClassesInStackTrace() 47 .describedAs("Number of classes does not match.\nExpected: %s\nGot: %s", 115 …Assertions.assertThat(trace[i].getMethodName()).describedAs("Expected methods[%d] to be in the sta…
|
D | ClassLoadersTest.java | 282 …assertThat(this.getClass().getClassLoader()).describedAs("runnable is reloaded in given classloade… in can_run_in_given_classloader() 283 …assertThat(Thread.currentThread().getContextClassLoader()).describedAs("Thread context classloader… in can_run_in_given_classloader() 289 .describedAs("can load JDK type") in can_run_in_given_classloader() 294 .describedAs("can load classloader types") in can_run_in_given_classloader()
|
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/collection/ |
D | IsArrayWithSize.java | 6 import static org.hamcrest.core.DescribedAs.describedAs; 57 return describedAs("an empty array", isEmpty); in emptyArray()
|
/external/mockito/src/test/java/org/mockito/exceptions/stacktrace/ |
D | StackTraceCleanerTest.java | 37 …assertThat(cleaner.isIn(stackTraceElementWith(className))).describedAs("Must be accepted in stackt… in assertAcceptedInStackTrace() 41 …assertThat(cleaner.isIn(stackTraceElementWith(className))).describedAs("Must be rejected in stackt… in assertRejectedInStackTrace()
|
/external/hamcrest/hamcrest-core/src/main/java/org/hamcrest/core/ |
D | DescribedAs.java | 66 …public static <T> Matcher<T> describedAs(String description, Matcher<T> matcher, Object... values)… in describedAs() method in DescribedAs
|
/external/mockito/src/test/java/org/mockito/internal/util/ |
D | PlatformTest.java | 135 … assertThat(Platform.isJava8BelowUpdate45(version.getKey())).describedAs(version.getKey()) in assertPlatformParsesCorrectlyVariousVersionScheme()
|
/external/mockito/src/test/java/org/mockitousage/basicapi/ |
D | MockingMultipleInterfacesTest.java | 110 …assertThat(interface2.isInstance(mocked)).describedAs("mock should be assignable from interface2 t… in should_mock_class_with_interfaces_of_different_class_loader_AND_different_classpaths()
|
/external/icu/tools/srcgen/currysrc/src/main/java/com/google/currysrc/aosp/ |
D | RepackagingTransform.java | 73 .describedAs("source directory") in main() 80 .describedAs("target directory") in main()
|
/external/hamcrest/hamcrest-core/src/main/java/org/hamcrest/ |
D | CoreMatchers.java | 76 …public static <T> org.hamcrest.Matcher<T> describedAs(java.lang.String description, org.hamcrest.M… in describedAs() method in CoreMatchers 77 return org.hamcrest.core.DescribedAs.describedAs(description, matcher, values); in describedAs()
|
/external/mockito/src/test/java/org/mockito/internal/stubbing/answers/ |
D | ThrowsExceptionTest.java | 37 assertThat(throwable.getStackTrace()).describedAs("no stack trace, it's mock").isNull(); in should_throw_mock_exception_without_stacktrace()
|
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/ |
D | Matchers.java | 162 …public static <T> org.hamcrest.Matcher<T> describedAs(java.lang.String description, org.hamcrest.M… in describedAs() method in Matchers 163 return org.hamcrest.core.DescribedAs.<T>describedAs(description, matcher, values); in describedAs()
|