Questions tagged [verify]

676 questions
7
votes
1 answer

Verify LFTP transfer success

I am using lftp to transfer files from local to a remote server which only allows SFTP access. I am using the following syntax to transfer the files : lftp -c "open -u $UN,$Pass sftp://$Server ; mirror -R $Directory" And this is working all fine…
Ashish Kaushik
  • 71
  • 1
  • 1
  • 4
6
votes
4 answers

Heroku declined payments. Support can't find the problem

I'm having a problem with payment procedure in heroku account(billing section). I got verified first time successfully and in one month all charges of my card are giving an error: "Unable to verify your card. Please try later or contact your…
6
votes
1 answer

Can't verify method called inside Select() using Moq framework

I have a problem with verifying that certain method was called on mock inside LINQ Select() query. Here is the method of ContentManager I want to test: public string ProcessElements(List items) { var processed = items.Select(item =>…
Arthur Vasilyev
  • 115
  • 1
  • 1
  • 8
6
votes
1 answer

M2Crypto bad performance to decrypt and verify big email

The input : big multipart signed and encrypted email (~10MB) done with openssl. Decrypting the file seems to be fast enough. Getting the decrypted information to verify them is MORE than long. It seems there is some problem in M2Crypto library. If…
TrapII
  • 2,219
  • 1
  • 15
  • 15
6
votes
4 answers

Mockito verify argument contains another string ignoring case

What I've got is this line: verify( mockAppendable ).append( org.mockito.Mockito.contains( msg ) ); ... but I want this test to be case-indifferent. How would I do that?
mike rodent
  • 14,126
  • 11
  • 103
  • 157
6
votes
5 answers

CakePHP Auth Component Check User Before Login

I want to prevent banned users from logging in to the site and give them a message that they are banned. I tried to use isAuthorized() for this but it allows the user to login and only after that denies him permission to the unauthorized…
Atul Dravid
  • 1,055
  • 3
  • 14
  • 30
6
votes
1 answer

Is there a way to spy on parameters passed to a Mocked object in Mockito

I have a service that I am mocking using Mockito. Is there any way that I can verify the parameters passed to the service call? For example: I have a service named employeeAnalyzer.calculateAnnualAppraisalForEmployee(Employee emp). So from unit test…
john.p.doe
  • 411
  • 2
  • 10
  • 21
6
votes
1 answer

Mockito: Verify a boolean method (or other types)

I know that you can only verify void methods. But I actually ask myself why. I recently stumbled upon an unit test where I really need to verify that a certain call has been made. To be exact, it's "newFolder.mkdirs()". The behavior of this method…
BAERUS
  • 4,009
  • 3
  • 24
  • 39
6
votes
3 answers

Mockito verify method was called with set, that contains specific value

I want to be sure that mocked is called with specific set of strings as parameter. For example, I have the following code: public class SomeLogic { @Autowired private SpecificService specificService; public void action() { …
me1111
  • 1,127
  • 3
  • 26
  • 38
6
votes
1 answer

What is the format of password_hash output?

I know the PHP function, password_hash outputs the algorithm, cost, salt, and hash all in one string so password_verify can check a password. Sample output from PHP page: $2y$10$.vGA1O9wmRjrwAVXD98HNOgsNpDczlqm3Jq7KnEd1rVAGv3Fykk1a so the $2y$…
ansonl
  • 786
  • 1
  • 13
  • 34
6
votes
2 answers

How to suppress and verify private static method calls?

I am currently stumbling in JUnit testing and need some help. So I got this class with static methods which will refactor some objects. For simplification's sake I have made a small example. This is my Factory class: class Factory { public…
Malvin
  • 859
  • 2
  • 11
  • 19
6
votes
2 answers

Optimize SVNAdmin Verify in SVN

I have a large repository into a SVN Server in the enterprise i work. I need to verify the integrity of this repository everyday to check for some instability or rupture of the SGBD. I'm using the prompt command line "svnadmin path_to_my_repository"…
kamusett
  • 1,403
  • 1
  • 12
  • 22
6
votes
1 answer

How to verify a website certificate in Cocoa Touch?

I currently open an https connection to a web server using NSURLConnection. Everything works as it should and I am able to retrieve the page content I am after. The certificate is issued by VeriSign and I assume NSURLConnection does some work to…
dbotha
  • 1,501
  • 4
  • 20
  • 38
6
votes
4 answers

Selenium WebDriver - how to verify multiple lines text

I have an html page with following contents:
This is Login page.
Please click below link to Login.
Login
How can I verify all the static…
qa_enq
  • 61
  • 1
  • 1
  • 3
5
votes
5 answers

how to verify links in a PDF file

I have a PDF file which I want to verify whether the links in that are proper. Proper in the sense - all URLs specified are linked to web pages and nothing is broken. I am looking for a simple utility or a script which can do it easily ?! Example:…
user379997
  • 527
  • 3
  • 16