You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i tried searching for something similar but couldn't find anything, so here
goes nothing: What steps will reproduce the problem? 1. create a class DirectoryStructure that uses the class File
2. create DirectoryStructureTest that verifies the call to File's constructor
3. do not specify .withArguments(DIRECTORY_PATH) to the
verifyNew(File.class, times(100000)) method What is the expected output? What do you see instead? - the test passes, whereas it should throw some kind of exception to notify
that verifyNew is incorrectly used like mockito does What version of the product are you using? On what operating system? - Power Mockito 1.3.6 Full
Windows Xp Please provide any additional information below. - mockito has such a system. you can see what i mean if you remove the
.mkdirs() from verify(directoryMock).mkdirs() in DirectoryStructureTest @
line 39
sure, no problem, i thought they'd be easier to follow, since you originally wrote
them. so the credits for the examples are yours because i only adapted them a bit,
nothing more.
From corneliu...@gmail.com on April 01, 2010 13:38:17
hi there,
i tried searching for something similar but couldn't find anything, so here
goes nothing: What steps will reproduce the problem? 1. create a class DirectoryStructure that uses the class File
2. create DirectoryStructureTest that verifies the call to File's constructor
3. do not specify .withArguments(DIRECTORY_PATH) to the
verifyNew(File.class, times(100000)) method What is the expected output? What do you see instead? - the test passes, whereas it should throw some kind of exception to notify
that verifyNew is incorrectly used like mockito does What version of the product are you using? On what operating system? - Power Mockito 1.3.6 Full
.mkdirs() from verify(directoryMock).mkdirs() in DirectoryStructureTest @
line 39
have a good day,
C
Attachment: DirectoryStructure.java DirectoryStructureTest.java
Original issue: http://code.google.com/p/powermock/issues/detail?id=251
The text was updated successfully, but these errors were encountered: