Questions tagged [verify]

676 questions
18
votes
7 answers

How to "check" if a function really gives a random result?

How can one be sure that a function is really random or as close to the notion as possible? Also, what is the distinction between random and pseudo-random? Finally, what algorithms/sources can be used to generate random numbers? P.S: Also asking…
James P.
  • 19,313
  • 27
  • 97
  • 155
18
votes
5 answers

Can you verify a property setter using mockk?

We had a few tests in Java and Mockito, which we are progressively converting into Kotlin and Mockk. There's a problem, though. This simple line: verify(mockedInteractor).setIndex(1); When we move it to mockk, we get this: verify {…
Sergi Juanola
  • 6,531
  • 8
  • 56
  • 93
17
votes
5 answers

How to continue execution when Assertion is failed

I am using Selenium RC using Java with eclipse and TestNG framework. I have the following code snippet: assertTrue(selenium.isTextPresent("Please enter Email ID")); assertTrue(selenium.isTextPresent("Please enter Password")); First assertion was…
Ripon Al Wasim
  • 36,924
  • 42
  • 155
  • 176
15
votes
1 answer

Mockito - "Wanted but not invoked; However there were other interactions with this mock" error

I'm verifying that a function was called using Mockito, but Mockito is telling me that the function I'm verifying was never called and that other functions were called. But it seems to me that I'm calling the right function... Here's the stack trace…
gsgx
  • 12,020
  • 25
  • 98
  • 149
15
votes
2 answers

How to be a verified publisher?

I wrote an app and I want to sell it online, so I uploaded it to my website and tried to download and run it as a test, but a window appeared, it said : "The publisher could not be verified. Are you sure you want to run this software ?", and it also…
Frank
  • 30,590
  • 58
  • 161
  • 244
15
votes
1 answer

Verifying a signature with a public key

I have an external service which call me back after some defined event, and sign his request with its private key. I have stored the public key which look like : -----BEGIN PUBLIC KEY----- ........................................ -----END PUBLIC…
Manuel Leduc
  • 1,849
  • 3
  • 23
  • 39
12
votes
2 answers

Python client - SSL lib - certificate verify failed

I'm trying to do a small secure HTTPS client for learning purposes and see how all the mechanics of SSL works on a higher level for now, so i'm trying to convert a simple socket into a ssl via ssl.wrap_socket. I probably got the whole concept…
Torxed
  • 22,866
  • 14
  • 82
  • 131
11
votes
5 answers

Sign In with Apple: verify my domain not working

I was integrating Sign in with Apple in my mobile app. I followed the configuration steps provided in the developer portal and downloaded the apple-developer-domain-association.txt file and placed it on my server at the given path. Now the file is…
Vinu David Jose
  • 2,569
  • 1
  • 21
  • 38
11
votes
1 answer

Google app script verify

I write an add-ons, and publish it. But when the user open that first, it will see: It show "This app isn't verified", how should i setting my app's configuration to fix it?
Max
  • 4,439
  • 2
  • 18
  • 32
11
votes
2 answers

Passport Facebook Verify Callback not Called

I'm making a node app, and when I try to use passport with Facebook, The verify callback doesn't run(nothing is logged). Any help would be appreciated. var express = require('express'); var routes = require('./routes/routes.js'); var layout =…
11
votes
2 answers

Guidelines for using Assert versus Verify

I'm new to unit testing, and I'm learning how to use NUnit and Moq. NUnit provides Assert syntax for testing conditions in my unit tests, while Moq provides some Verify functions. To some extent these seem to provide the same functionality. How do I…
sourcenouveau
  • 29,356
  • 35
  • 146
  • 243
11
votes
2 answers

I get "Certificate Verify Failed" on installing Bundler for Ruby on Rails, on Windows 7. Ruby 1.9.3

I've tried everything what I understood in my short knowladge of Programming. When I enter "bundler install" I get "Certificate Verify Failed" (I've checked the certificate, it's updated) Then it ends up with "Make sure "gem install [gem's name] -v…
10
votes
2 answers

mockito how to verify using methodname and reflection

I have a spy or a mock of an object and I wants to verify that a method has been call problem, I receive methodname at execution Time not compilation time I would like to do something like: SimpleObj mockObject= Mockito.mock(SimpleObj.class); …
Guillaume B.
  • 133
  • 1
  • 7
10
votes
3 answers

Is VERIFY(...) a good practice in C++ coding?

Also, how does it compare to throwing an exception when something goes wrong ?
sevaxx
  • 691
  • 1
  • 7
  • 16
10
votes
3 answers

PHP verify PayPal Donation

How can I verify a paypal donation? In the user panel I have a donate button. And once someone actually donates I want to do something to him. But I do not know how to check if the user actually donated or just clicked the donate button.
DanSpd
  • 115
  • 2
  • 8
1
2
3
45 46