/external/mockito/src/test/java/org/mockito/internal/verification/checkers/ |
MissingInvocationCheckerTest.java | 25 private InvocationMatcher wanted; field in class:MissingInvocationCheckerTest 36 wanted = buildSimpleMethod().toInvocationMatcher(); 39 MissingInvocationChecker.checkMissingInvocation(invocations, wanted); 44 wanted = buildSimpleMethod().toInvocationMatcher(); 48 exception.expectMessage("Wanted but not invoked:"); 53 MissingInvocationChecker.checkMissingInvocation(invocations, wanted); 58 wanted = buildIntArgMethod().arg(2222).toInvocationMatcher(); 63 exception.expectMessage("Argument(s) are different! Wanted:"); 68 MissingInvocationChecker.checkMissingInvocation(invocations, wanted);
|
NumberOfInvocationsCheckerTest.java | 34 private InvocationMatcher wanted; field in class:NumberOfInvocationsCheckerTest 49 wanted = buildSimpleMethod().toInvocationMatcher(); 54 exception.expectMessage("Wanted 100 times"); 57 NumberOfInvocationsChecker.checkNumberOfInvocations(invocations, wanted, 100); 62 wanted = buildSimpleMethod().toInvocationMatcher(); 67 exception.expectMessage("Wanted 100 times"); 71 NumberOfInvocationsChecker.checkNumberOfInvocations(invocations, wanted, 100); 77 wanted = buildSimpleMethod().toInvocationMatcher(); 81 exception.expectMessage("Wanted 100 times"); 85 NumberOfInvocationsChecker.checkNumberOfInvocations(invocations, wanted, 100) [all...] |
MissingInvocationInOrderCheckerTest.java | 32 private InvocationMatcher wanted; field in class:MissingInvocationInOrderCheckerTest 54 wanted = buildSimpleMethod().toInvocationMatcher(); 56 checkMissingInvocation(invocations, wanted, context); 62 wanted = buildSimpleMethod().toInvocationMatcher(); 65 exception.expectMessage("Wanted but not invoked:"); 68 checkMissingInvocation(invocations, wanted, context); 74 wanted = buildIntArgMethod().arg(2222).toInvocationMatcher(); 78 exception.expectMessage("Argument(s) are different! Wanted:"); 83 checkMissingInvocation(invocations, wanted, context); 95 wanted = buildIntArgMethod().arg(2222).toInvocationMatcher() [all...] |
/external/mockito/src/main/java/org/mockito/internal/verification/ |
Times.java | 34 MatchableInvocation wanted = data.getTarget(); local 39 checkNumberOfInvocations(invocations, wanted, wantedCount); 44 MatchableInvocation wanted = data.getWanted(); local 47 checkMissingInvocation(allInvocations, wanted, data.getOrderingContext()); 49 checkNumberOfInvocations(allInvocations, wanted, wantedCount, data.getOrderingContext()); 54 return "Wanted invocations count: " + wantedCount;
|
AtMost.java | 33 MatchableInvocation wanted = data.getTarget(); local 35 List<Invocation> found = findInvocations(invocations, wanted); 42 markVerified(found, wanted);
|
Calls.java | 39 MatchableInvocation wanted = data.getWanted(); local 41 checkMissingInvocation(allInvocations, wanted, data.getOrderingContext()); 42 checkNumberOfInvocationsNonGreedy(allInvocations, wanted, wantedCount, data.getOrderingContext()); 47 return "Wanted invocations count (non-greedy): " + wantedCount;
|
/external/mockito/src/main/java/org/mockito/internal/invocation/ |
InvocationsFinder.java | 23 public static List<Invocation> findInvocations(List<Invocation> invocations, MatchableInvocation wanted) { 24 return ListUtil.filter(invocations, new RemoveNotMatching(wanted)); 27 public static List<Invocation> findAllMatchingUnverifiedChunks(List<Invocation> invocations, MatchableInvocation wanted, InOrderContext orderingContext) { 29 return ListUtil.filter(unverified, new RemoveNotMatching(wanted)); 38 * if wanted is 1 and mode is times(2) then returns 41 * if wanted is 1 and mode is atLeast() then returns 44 * if wanted is 1 and mode is times(x), where x != 2 then returns 47 public static List<Invocation> findMatchingChunk(List<Invocation> invocations, MatchableInvocation wanted, int wantedCount, InOrderContext context) { 49 List<Invocation> firstChunk = getFirstMatchingChunk(wanted, unverified); 52 return findAllMatchingUnverifiedChunks(invocations, wanted, context) 150 private final MatchableInvocation wanted; field in class:InvocationsFinder.RemoveNotMatching [all...] |
/external/autotest/client/cros/ |
kernel_config.py | 42 def _config_required(self, name, wanted): 44 if value in wanted: 48 for state in wanted: 53 self._failed('"%s" was "%s" (wanted one of "%s") in kernel config' % 70 wanted = ['y'] 72 wanted.append(None) 73 self.has_value(name, wanted) 81 wanted = ['m'] 83 wanted.append(None) 84 self.has_value(name, wanted) [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/tests/ |
test_dir_util.py | 40 wanted = []
41 self.assertEqual(self._logs, wanted)
45 wanted = ['creating %s' % self.root_target,
47 self.assertEqual(self._logs, wanted)
51 wanted = ["removing '%s' (and everything under it)" % self.root_target]
52 self.assertEqual(self._logs, wanted)
73 wanted = ['creating %s' % self.root_target]
75 self.assertEqual(self._logs, wanted)
97 wanted = ['copying %s -> %s' % (a_file, self.target2)]
99 self.assertEqual(self._logs, wanted)
[all...] |
test_file_util.py | 41 wanted = []
42 self.assertEqual(self._logs, wanted)
48 wanted = ['moving %s -> %s' % (self.source, self.target)]
49 self.assertEqual(self._logs, wanted)
58 wanted = ['moving %s -> %s' % (self.source, self.target_dir)]
59 self.assertEqual(self._logs, wanted)
|
test_spawn.py | 18 for (args, wanted) in ((['with space', 'nospace'],
23 self.assertEqual(res, wanted)
|
test_build_ext.py | 340 wanted = os.path.join(curdir, 'src', 'lxml', 'etree' + ext)
342 self.assertEqual(wanted, path)
347 wanted = os.path.join(curdir, 'tmpdir', 'lxml', 'etree' + ext)
349 self.assertEqual(wanted, path)
356 wanted = os.path.join(curdir, 'tmpdir', 'twisted', 'runner',
358 self.assertEqual(wanted, path)
363 wanted = os.path.join(curdir, 'twisted', 'runner', 'portmap' + ext)
364 self.assertEqual(wanted, path)
377 wanted = os.path.join(curdir, 'src', 'lxml', 'etree' + ext)
379 self.assertEqual(wanted, path) [all...] |
test_ccompiler.py | 33 wanted = ['-Llib1', '-Llib2', '-cool', '-Rrunlib1', 'found',
35 self.assertEqual(opts, wanted)
|
/external/mockito/src/main/java/org/mockito/exceptions/verification/junit/ |
ArgumentsAreDifferent.java | 20 public ArgumentsAreDifferent(String message, String wanted, String actual) { 21 super(message, wanted, actual);
|
/external/python/cpython2/Lib/distutils/tests/ |
test_dir_util.py | 40 wanted = [] 41 self.assertEqual(self._logs, wanted) 45 wanted = ['creating %s' % self.root_target, 47 self.assertEqual(self._logs, wanted) 51 wanted = ["removing '%s' (and everything under it)" % self.root_target] 52 self.assertEqual(self._logs, wanted) 73 wanted = ['creating %s' % self.root_target] 75 self.assertEqual(self._logs, wanted) 97 wanted = ['copying %s -> %s' % (a_file, self.target2)] 99 self.assertEqual(self._logs, wanted) [all...] |
test_build_ext.py | 342 wanted = os.path.join(curdir, 'src', 'lxml', 'etree' + ext) 344 self.assertEqual(wanted, path) 349 wanted = os.path.join(curdir, 'tmpdir', 'lxml', 'etree' + ext) 351 self.assertEqual(wanted, path) 358 wanted = os.path.join(curdir, 'tmpdir', 'twisted', 'runner', 360 self.assertEqual(wanted, path) 365 wanted = os.path.join(curdir, 'twisted', 'runner', 'portmap' + ext) 366 self.assertEqual(wanted, path) 379 wanted = os.path.join(curdir, 'src', 'lxml', 'etree' + ext) 381 self.assertEqual(wanted, path [all...] |
/external/python/cpython3/Lib/distutils/tests/ |
test_dir_util.py | 42 wanted = [] 43 self.assertEqual(self._logs, wanted) 47 wanted = ['creating %s' % self.root_target, 49 self.assertEqual(self._logs, wanted) 53 wanted = ["removing '%s' (and everything under it)" % self.root_target] 54 self.assertEqual(self._logs, wanted) 75 wanted = ['creating %s' % self.root_target] 77 self.assertEqual(self._logs, wanted) 95 wanted = ['copying %s -> %s' % (a_file, self.target2)] 97 self.assertEqual(self._logs, wanted) [all...] |
test_extension.py | 22 wanted = ['_arraysurfarray', '_camera', '_numericsndarray', 31 self.assertEqual(names, wanted)
|
test_bdist_dumb.py | 88 wanted = ['foo-0.1-py%s.%s.egg-info' % sys.version_info[:2], 'foo.py'] 90 wanted.append('foo.%s.pyc' % sys.implementation.cache_tag) 91 self.assertEqual(contents, sorted(wanted))
|
/external/mockito/src/main/java/org/mockito/internal/exceptions/ |
Reporter.java | 303 public static AssertionError argumentsAreDifferent(String wanted, String actual, Location actualLocation) { 304 String message = join("Argument(s) are different! Wanted:", 305 wanted, 313 return ExceptionFactory.createArgumentsAreDifferentException(message, wanted, actual); 316 public static MockitoAssertionError wantedButNotInvoked(DescribedInvocation wanted) { 317 return new WantedButNotInvoked(createWantedButNotInvokedMessage(wanted)); 320 public static MockitoAssertionError wantedButNotInvoked(DescribedInvocation wanted, List<? extends DescribedInvocation> invocations) { 336 String message = createWantedButNotInvokedMessage(wanted); 340 private static String createWantedButNotInvokedMessage(DescribedInvocation wanted) { 342 "Wanted but not invoked:" [all...] |
/external/libxkbcommon/xkbcommon/src/xkbcomp/ |
xkbcomp-priv.h | 105 const char *name, const char *wanted) 109 type, field, wanted, name);
|
/external/python/setuptools/setuptools/tests/ |
test_build_ext.py | 23 wanted = orig.build_ext.get_ext_filename(cmd, 'foo') 24 assert res == wanted
|
/external/u-boot/arch/sandbox/cpu/ |
sdl.c | 258 SDL_AudioSpec wanted; local 286 wanted.freq = 22050; 287 wanted.format = AUDIO_S16; 288 wanted.channels = 1; /* 1 = mono, 2 = stereo */ 289 wanted.samples = 1024; /* Good low-latency value for callback */ 290 wanted.callback = sandbox_sdl_fill_audio; 291 wanted.userdata = NULL; 293 sdl.audio_size = sizeof(uint16_t) * wanted.freq; 307 if (SDL_OpenAudio(&wanted, NULL) < 0) {
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
test_site.py | 227 wanted = os.path.join('xoxo', 'Lib', 'site-packages')
228 self.assertEqual(dirs[0], wanted)
231 wanted = os.path.join('xoxo', 'lib', 'python' + sys.version[:3],
233 self.assertEqual(dirs[0], wanted)
234 wanted = os.path.join('xoxo', 'lib', 'site-python')
235 self.assertEqual(dirs[1], wanted)
239 wanted = os.path.join('xoxo', 'lib', 'site-packages')
240 self.assertEqual(dirs[1], wanted)
248 wanted = os.path.join('~', 'Library', 'Python',
250 self.assertEqual(dirs[2], os.path.expanduser(wanted))
[all...] |
/external/autotest/client/site_tests/kernel_ConfigVerify/ |
kernel_ConfigVerify.py | 241 wanted = '32768' 242 config.has_value('DEFAULT_MMAP_MIN_ADDR', [wanted]) 246 wanted = '"/sbin/usermode-helper"' 247 config.has_value('STATIC_USERMODEHELPER_PATH', [wanted])
|