Questions tagged [verify]
676 questions
5
votes
1 answer
How to verify a Dictionary parameter?
I am using the Moq framework.
Given is the following code:
public interface ISomeInterface
{
SomeResult DoWork( ISomeContainer foo, Dictionary bar );
}
[ Test ]
public void SomeTest()
{
Mock mock = new…

Powerslave
- 531
- 2
- 7
- 24
5
votes
6 answers
Getting "Caused by: java.lang.VerifyError:"
I created an android application which is used as library in another android application. I used some third party jars in the android app which acts as a library. When I link this library in my android application and run it, I am getting the verify…

Senthil
- 513
- 2
- 13
- 24
5
votes
1 answer
How to securely connect to Bitstamp Websocket v2.0 API with python websockets? Certrificate verification error
I'm trying to get real time bitcoin price data from the Bitstamp Websocket v2.0 API. Where can I get the certificate if needed? If download of the certificate is automatic, how can I make sure that it is possible for python to verify the received…

Marko
- 83
- 1
- 7
5
votes
1 answer
Signature length not correct: got 768 but was expecting 512, in Java verify
I have already posted a similar question concerning how to load RSA keys in java. See the best response of this question to fully understand the first part of my code (the method getPulicKey, I mean).
private static PublicKey getPublicKey(String…

Peter
- 399
- 2
- 6
- 23
5
votes
1 answer
How can I disable SSL verification in a third party python library?
I am using the python library OSMnx, and it sends out a request to nomatim.openstreetmap.org in order to generate and load a map that is then used to create a network. However, when I try and run this over a VPN or at the office, I get this:
File…

Charles Bushrow
- 437
- 4
- 12
5
votes
1 answer
How to verify a non-mocked method was called?
I want to test that my method calls another method in the same class that I cannot mock.
Example:
public void methodToTest(){
//other stuff to test that can be mocked
someClassICanMock.doSomething();
//method within same class that cannot be…

java123999
- 6,974
- 36
- 77
- 121
5
votes
2 answers
Signature verification problems for ecdsa-with-SHA384 on Android 6
I've problems verifying a certificate which is signed with ECDSA with SHA384 on Android 6.0 and up. However, it is working for Android 4.1 - 5.1. I tracked it down to an error in the Certificate class. An exception is thrown in the verify method:…

Romanski
- 730
- 8
- 27
5
votes
1 answer
How to verify google captcha
Client side code
5
votes
3 answers
ASP.NET - How to include CSS only if it isn't already included?
I use the code bellow to dynamically include a CSS file:
HtmlHead head = (HtmlHead)Page.Header;
HtmlLink link = new HtmlLink();
link.Attributes.Add("href", Page.ResolveClientUrl("~/App_Themes/Default/StyleSheet.css"));
link.Attributes.Add("type",…

Tufo
- 494
- 7
- 22
4
votes
3 answers
How to verify whether two SQL Server databases contain equal data?
Given two MS SQL databases which are known to have identical schemas, how should I tell whether they contain identical copies of the data?
I'm using MS SQL Server 2008 Express, and coding in C# and v2.0 of the .Net framework, using ADO.NET APIs. The…

ChrisW
- 54,973
- 13
- 116
- 224
4
votes
2 answers
What is the Best Way to Validated New User after Successful Payment?
I have a member sign-up process which requires a monthly subscription payment. I have a script running which can update my member's database using an IPN script. I am curious about the best way to go about validating a new user once they have…

codacopia
- 2,369
- 9
- 39
- 58
4
votes
5 answers
Verify input text element is not empty in Selenium IDE
How can I verify that an input element has any text in it. It is loaded with random text so I can't verify a specific value, but there must be some text in it.
I'm using Selenium IDE

Maurizio Pozzobon
- 3,044
- 7
- 34
- 44
4
votes
4 answers
Cannot verify lock on path
When I want to delete some files, it happens to show me the error below:
Commit failed (details follow):
Cannot verify lock on path
'the file name...';
no matching lock-token available
If you want to break the lock, use the 'Check For…

mudoot
- 51
- 1
- 2
- 5
4
votes
4 answers
Watir: How to verify text is NOT present in web page
I'm writing a test where I delete a record, and I need to verify that the record is no longer present after I've deleted it. I know how to verify the record text is present in a page, with "browser.text.include?", but is there a way that I can…

Kim Wilkinson
- 85
- 1
- 1
- 7
4
votes
1 answer
verify data signature generated with openssl, using crypto++
I have a server, running under python, signing a message sha256 digest using m2crypto
I use a public and private RSA key generated by openssl CLI. On the server side everythgin is OK
Python code :
privateKey = M2Crypto.RSA.load_key(sys.argv[2])
…

Bastien Auneau
- 41
- 1
- 3