mockito throw exception on void method

If you're using Java 8, and can use JUnit 4.13 or later, you can use assertThrows: If you're going to migrate all of your code to something, this seems like a better long-term bet. Other than that we can also make use of doNothing() and doAnswer() APIs. This means we have work with the following methods to mock a void method: doThrow (Throwable) doThrow (Class) doAnswer (Answer) doNothing () doCallRealMethod () This is the class we will be using for the examples. I have always this error: Connect and share knowledge within a single location that is structured and easy to search. It can also throw a number of exceptions so I'd like to test those exceptions being thrown. March 23rd, 2015 0 doThrow (): We can use doThrow () when we want to stub a void method that throws exception. Find centralized, trusted content and collaborate around the technologies you use most. By clicking Accept all cookies, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy. How to follow the signal when reading the schematic? To do this we make use of doThrow () method of Mockito class. How is an ETF fee calculated in a trade that ends in less than a year? Required fields are marked *. Mockito's doCallRealMethod () can be used for void methods: @Test void whenAddCalledRealMethodCalled() { MyList myList = mock (MyList.class); doCallRealMethod ().when (myList).add (any (Integer.class), any (String.class)); myList.add ( 1, "real" ); verify (myList, times ( 1 )).add ( 1, "real" ); } Content for this article is shared under the terms of the Creative Commons Attribution Non Commercial Share Alike 4.0 International, and code is shared under the Apache License 2.0. Site design / logo 2023 Stack Exchange Inc; user contributions licensed under CC BY-SA. How i can stop call a method void with mockito? Can Martian regolith be easily melted with microwaves? SpiceAnswer implements Answer and based on the degree of spice, it will either throw a RuntimeException or return a value. Also, I cannot use EasyMock#getLastCall because I'm performing the test on SomeClient#getEntity. We can't use when ().thenThrow () with void return type, as the compiler doesn't allow void methods inside brackets. Why do academics stay as adjuncts for years rather than move around? In mocking, for every method of mocked object doNothing is the default behavior. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We can use one of the options as per requirements. How can I safely create a directory (possibly including intermediate directories)? Can airtags be tracked from an iMac desktop, with no iPhone? Connect and share knowledge within a single location that is structured and easy to search. Stubbing void methods requires a different approach from when (Object) because the compiler does not like void methods inside brackets. Stubbing it with a Unit value to leverage on the strict mode could be done, but it feels quite hacky, the point of strict mode is to avoid repeating yourself What video game is Charlie playing in Poker Face S01E07? Because, when() method of mockito works with return value and does not work when method is void. doCallRealMethod ().when (mockDatabaseImpl).updateScores ( anyString (), anyInt ()); WebIf this method fails (e.g. For void methods, mockito provides a special function called doCallRealMethod () which can be used when you are trying to set up the mock. Mockito doAnswer () method takes Answer as argument. Asking for help, clarification, or responding to other answers. when(testingClassObj.testSomeMethod).thenThrow(new CustomException()); Using Junit5, you can assert exception, asserts whether that exception is thrown when testing method is invoked. @pringi Thanks, I see that the question concerned both mocking an exception and catching it. How does claims based authentication work in mvc4? Mockito provides following methods that can be used to mock void methods. So, after calling Mockito.when, you should call (or do something that calls) that method in your unit test. Browse other questions tagged, Where developers & technologists share private knowledge with coworkers, Reach developers & technologists worldwide, @edwardmlyte This Mockito inconsistency is one of the reasons I've switch to. Unfortunately this doesn't work, as we receive the following compilation error: src/test/java/me/jvt/hacking/DataClassValidatorTest.java:24: error: 'void' type not allowed here Mockito.when (sut.doTheThing ()).thenThrow (new RuntimeException ("foo")); And in IntelliJ, we we see the following cryptic error: Throwing an Exception. Your email address will not be published. For Example: Mockito. Connect and share knowledge within a single location that is structured and easy to search. I'm using mockito in a junit test. How to use Slater Type Orbitals as a basis functions in matrix method correctly? If we do not want to call real method, however need to perform some runtime operation doAnswer is used. Mock void method's try catch block and catch exception using EasyMock or Mockito. How do you test that a Python function throws an exception? Let's take an example where we will throw InvalidParamException when updateName() method is called with null id. By clicking Accept all cookies, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy. Is the God of a monotheism necessarily omnipotent? The thing is that stubbing a Unit method only makes sense if you wanna make it throw an exception, otherwise the only thing you want out of it is to verify it was called as you mentioned. doAnswer (): We can use this to perform some operations when a mocked object method is called that is returning void. Hey guys! doAnswer() : We can use this to perform some operations when a mocked object method is called that is returning void. So, you can guide the stub's behavior differently for different arguments. For this, we'll have to mock the method in such a way that it throws these exceptions. Mockito provides following methods that can be used to mock void methods. This cookie is set by GDPR Cookie Consent plugin. Mockito.when(myService.doSomething()).thenThrow(new Exception("Cannot process")); then we will have following runtime exception: org.mockito.exceptions.base.MockitoException: Checked exception is invalid for this method! It catches it and logs it, but always returns normally. To subscribe to this RSS feed, copy and paste this URL into your RSS reader. In this article, we will show how to configure the method call to throw an exception using Mockito. WebIn this recipe, we will stub a void method that doesn't return a value, so it throws an exception. Browse Library. Is a PhD visitor considered as a visiting scholar? If we just want to completely ignore the void method call, we can use doNothing(). In test ifSpiceThrowException(), the customer orders for a spicy dish. Java: Can I Inject a runtime exception into an arbitrary class method at runtime? loadProperties(blammy); } @Before public void preTestSetup() { classToTest = new SomeClass(); // initialize the classToTest // variable before each test. } You also have the option to opt-out of these cookies. Mockito's doCallRealMethod () can be used for void methods: @Test void whenAddCalledRealMethodCalled() { MyList myList = mock (MyList.class); doCallRealMethod ().when (myList).add (any (Integer.class), any (String.class)); myList.add ( 1, "real" ); verify (myList, times ( 1 )).add ( 1, "real" ); } Staging Ground Beta 1 Recap, and Reviewers needed for Beta 2. I have tried many times but I can't cover that lines with Mockito. Asking for help, clarification, or responding to other answers. What this will do, is call the real void method with the actual arguments. Browse Library. The next statement of the doThrow call tells PowerMock about the method that should throw an exception; in this case, it would again be Employee. Answer: Here is a java example that uses Mockito to test a method that throws an exception. Connect and share knowledge within a single location that is structured and easy to search. Now, when you want to write test case for this method, how can we test that the void method was called? the exception won't be thrown from your test method). Void method throws an exception | Java code. Follow Up: struct sockaddr storage initialization by network format-string. If you ever wondered how to do it using the new BDD style of Mockito: willThrow (new Exception ()).given (mockedObject).methodReturningVoid ()); And for future reference one may need to throw exception and then do nothing: willThrow (new Exception ()).willDoNothing ().given (mockedObject).methodReturningVoid ()); Share Stubbing void methods requires a different approach from when (Object) because the compiler does not like void methods inside brackets. We can't use when ().thenThrow () with void return type, as the compiler doesn't allow void methods inside brackets. Can Mockito capture arguments of a method called multiple times? WebHere we've added an exception clause to a mock object. Java 8 Lambda function that throws exception? By clicking Post Your Answer, you agree to our terms of service, privacy policy and cookie policy. mockito. All in all the testing code is really bizarre, you seem to be using both easymock and (power)mockito Any reason why? : an exception is thrown) then you know something went wrong and you can start digging. But note that stubVoid() is deprecated so we wont use it any more. Did it solve that difficult-to-resolve issue you've been chasing for weeks? Tried to stub CacheWrapper#putInSharedMemory. Minimising the environmental effects of my dyson brain. If you preorder a special airline meal (e.g. Stubbing it with a Unit value to leverage on the strict mode could be done, but it feels quite hacky, the point of strict mode is to avoid repeating yourself One of the most important point to note here is that, we can not just mock void method using when-then mechanism of mockito. Why do small African island nations perform better than African continental nations, considering democracy and human development? Throwing an Exception. Redoing the align environment with a specific formatting. How to tell which packages are held back due to phased updates, Redoing the align environment with a specific formatting. For instance, I need to cover the scenario where there are exceptions thrown by cacheWrapper. How to assert that void method throws Exception using Mockito and catch-exception? PowerMockito is a superset (or more of a supplement) that can be used with both these frameworks. Following all codes perform similar behavior, We can do different things with argument capture. WebIn this recipe, we will stub a void method that doesn't return a value, so it throws an exception. Methods that return void can't be used with when. Unfortunately this doesn't work, as we receive the following compilation error: src/test/java/me/jvt/hacking/DataClassValidatorTest.java:24: error: 'void' type not allowed here Mockito.when (sut.doTheThing ()).thenThrow (new RuntimeException ("foo")); And in IntelliJ, we we see the following cryptic error: Mockito provides us with a verify()method that lets us verify whether the mock void method is being called or not. Short story taking place on a toroidal planet or moon involving flying. We also use third-party cookies that help us analyze and understand how you use this website. To learn more, see our tips on writing great answers. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc. rev2023.3.3.43278. We can stub a void method to throw an exception using doThrow (). Mockito provides us with a verify()method that lets us verify whether the mock void method is being called or not. Source: (Example.java) import org.mockito.Mockito; import static org. The comment form collects your name, email and content to allow us keep track of the comments placed on the website. For void methods, mockito provides a special function called doCallRealMethod () which can be used when you are trying to set up the mock. Stubbing it with a Unit value to leverage on the strict mode could be done, but it feels quite hacky, the point of strict mode is to avoid repeating yourself The problem is when trying to mock putInSharedMemory method because is void. To do this we make use of doThrow () method of Mockito class. 2. In this article, we presented how to configure the method to throw an exception using the Mockito framework. Thanks for your sample codes. 3. In Mockito we can use different methods to call real method or mock void method. doThrow() : We can use doThrow() when we want to stub a void method that throws exception. If a law is new but its interpretation is vague, can the courts directly ask the drafters the intent and official interpretation of their law? Browse other questions tagged, Where developers & technologists share private knowledge with coworkers, Reach developers & technologists worldwide, How Intuit democratizes AI development across teams through reusability. How to follow the signal when reading the schematic? Any ideas how I can get the method to throw a specified exception? By clicking Post Your Answer, you agree to our terms of service, privacy policy and cookie policy. doThrow method tells PowerMock to throw an exception when a certain method is called. Now, if we don't want to simulate the processing of this method, this call itself is sufficient to mock the method. How does the command scheduler work in Laravel? Linear Algebra - Linear transformation question, Styling contours by colour and by line thickness in QGIS. doThrow() : We can use doThrow() when we want to stub a void method that throws exception. How do you assert that a certain exception is thrown in JUnit tests? 2 How do you throw an exception in PowerMock? How to notate a grace note at the start of a bar with lilypond? DevPedrada. Mockito.when(myService.doSomething()).thenThrow(new Exception("Cannot process")); then we will have following runtime exception: org.mockito.exceptions.base.MockitoException: Checked exception is invalid for this method! rev2023.3.3.43278. DevPedrada. Connect and share knowledge within a single location that is structured and easy to search. How to use Slater Type Orbitals as a basis functions in matrix method correctly? Does Counterspell prevent from any further spells being cast on a given turn? JUnit 5: How to assert an exception is thrown? Here, we configured an add () method which returns void to throw IllegalStateException when called. Is it suspicious or odd to stand by the gate of a GA airport watching the planes? doThrow (): We can use doThrow () when we want to stub a void method that throws exception. Contributed on Dec 18 2020 . For this, we'll have to mock the method in such a way that it throws these exceptions. vegan) just to try it, does this inconvenience the caterers and staff? WebIf this method fails (e.g. doAnswer() : We can use this to perform some operations when a mocked object method is called that is returning void. Is the God of a monotheism necessarily omnipotent? It might be that using Rules is something that could work for you? . https://www.jvt.me/posts/2022/01/18/mockito-void-throw/ This site uses Akismet to reduce spam. If you are new to mocking you can know more at mockito website. // Create a CacheWrapper spy and stub its method to throw an exception. I'm not using expected - I know about its issues - that's why I wanted to use catch-exception library but don't know how to with void methods. Has 90% of ice around Antarctica disappeared in less than a decade? For this, we'll have to mock the method in such a way that it throws these exceptions. It does not store any personal data. Mockito : how to verify method was called on an object created within a method? In this recipe, we will stub a void method. mockito throw exception void method. For Example: Mockito. In this article, we will show how to configure the method call to throw an exception using Mockito. doThrow() and doReturn() replaces stubVoid() because of improved readability and consistency with the family of doAnswer() methods. doThrow () : Throw exception when mocked void method is called doCallRealMethod () : Do not mock and call real method 1) Using doNothing () If we just want to completely ignore the void method call, we can use doNothing (). Stub void method Using deprecated API stubVoid For checking the cause of the exception, I use: expectedException.expectCause(Mockito.sameInstance(expectedException)) or expectedException.expectCause(Mockito.instanceOf(MyException.class)) and a few others that come in handy. When writing code, there is always at least one method that returns 'void', and at some point in time we need to mock 'void' method. Why is processing a sorted array faster than processing an unsorted array? Manually raising (throwing) an exception in Python, throw checked Exceptions from mocks with Mockito. Do throw exception for void method Mockito? We can customize the behavior based on the mocks method name or the method arguments which is passed to it. In test eatMultipleDishes(), NotSoTastyException is thrown the first time customer.eat(dish) is called. He is passionate about open source technologies and actively blogs on various java and open-source technologies like spring. Find centralized, trusted content and collaborate around the technologies you use most. If the dish is not the one customer is expecting then it will throw WrongDishException. Mockito test a void method throws an exception, Mockito Thread.class exception in try catch block does not improve coverage. We stub the custom behavior using doAnswer() and when() APIs. After that, it depends on your scenarios (note: last mockito version available on maven is 1.10.17 FWIW). doThrow() : We can use doThrow() when we want to stub a void method that throws exception. For example, in test testEatUsingStubVoid(), we stub eat() to simply return without throwing an exception, we can do it using stubVoid() and toReturn(). Please consider supporting me so I can continue to create content like this! JCGs (Java Code Geeks) is an independent online community focused on creating the ultimate Java to Java developers resource center; targeted at the technical architect, technical team lead (senior developer), project manager and junior developers alike. If you want your method to throw an exception, don't catch it, or catch it and throw a custom exception that wraps the original exception. Answer: Here is a java example that uses Mockito to test a method that throws an exception. By clicking Post Your Answer, you agree to our terms of service, privacy policy and cookie policy. MathApplication makes use of calcService using its add method and the mock throws a RuntimeException whenever calcService.add () method is invoked. Recovering from a blunder I made while emailing a professor. This feature is also included with JUnit 5 as well, however, both 4.13 and 5.0 is not released publically yet (still in either RC or Snapshot verison). Mockito provides following methods that can be used to mock void methods. Home Core Java Mockito Mockito void Method Example, Posted by: Ram Mokkapaty doAnswer() : We can use this to perform some operations when a mocked object method is called that is returning void. WebHere we've added an exception clause to a mock object. Firstly, your method deleteTableEsiti() never throws any exception. These cookies track visitors across websites and collect information to provide customized ads. By adding another test ( nonExistingUserById_ShouldThrow_IllegalArgumentException ) that uses the faulty input and expects an exception you can see whether your method does what it is supposed to do Why did Ukraine abstain from the UNHRC vote on China? Invalid: java.lang.Exception: Cannot process at This cookie is set by GDPR Cookie Consent plugin. This means we have work with the following methods to mock a void method: doThrow (Throwable) doThrow (Class) doAnswer (Answer) doNothing () doCallRealMethod () This is the class we will be using for the examples. 3. Asking for help, clarification, or responding to other answers. doThrow() : We can use doThrow() when we want to stub a void method that throws exception. Mockito test a void method throws an exception. Is it suspicious or odd to stand by the gate of a GA airport watching the planes? Mockito is one of the most famous mocking framework used for writing unit tests. Customer: Dish: 1 2 3 4 5 package com.javacodegeeks.mockito; public interface Dish { void eat () throws WrongDishException; } 2. Stubbing void methods requires a different approach from when (Object) because the compiler does not like void methods inside brackets. Do new devs get fired if they can't solve a certain bug? @fge added powermockito just because it offered another solution, but as noted in attempt 3, it's a bad idea :), Well, for instance, with pure mockito, you can do. All trademarks and registered trademarks appearing on Java Code Geeks are the property of their respective owners. doThrow (): We can use doThrow () when we want to stub a void method that throws exception. By clicking Accept all cookies, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy. WebIn this recipe, we will stub a void method that doesn't return a value, so it throws an exception. Whats the grammar of "For those whose stories they are"? Invalid: java.lang.Exception: Cannot process at 4.2. But opting out of some of these cookies may affect your browsing experience. Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. 4. Browse other questions tagged, Where developers & technologists share private knowledge with coworkers, Reach developers & technologists worldwide. WebUse doThrow() when you want to stub the void method to throw exception of specified class.. A new exception instance will be created for each method invocation. Making statements based on opinion; back them up with references or personal experience. For void methods, mockito provides a special function called doCallRealMethod () which can be used when you are trying to set up the mock. Other than that we can also make use of doNothing () and doAnswer () APIs. doCallRealMethod ().when (mockDatabaseImpl).updateScores ( anyString (), anyInt ()); [ERROR] Failures: To verify that the exception did happen, assert a false condition within the try block after the statement that throws the exception. Before I start with my example, a bit about my setup: .lepopup-progress-100 div.lepopup-progress-t1>div{background-color:#e0e0e0;}.lepopup-progress-100 div.lepopup-progress-t1>div>div{background-color:#bd4070;}.lepopup-progress-100 div.lepopup-progress-t1>div>div{color:#ffffff;}.lepopup-progress-100 div.lepopup-progress-t1>label{color:#444444;}.lepopup-form-100, .lepopup-form-100 *, .lepopup-progress-100 {font-size:15px;color:#444444;font-style:normal;text-decoration:none;text-align:left;}.lepopup-form-100 .lepopup-element div.lepopup-input div.lepopup-signature-box span i{font-size:15px;color:#444444;font-style:normal;text-decoration:none;text-align:left;}.lepopup-form-100 .lepopup-element div.lepopup-input div.lepopup-signature-box,.lepopup-form-100 .lepopup-element div.lepopup-input div.lepopup-multiselect,.lepopup-form-100 .lepopup-element div.lepopup-input input[type='text'],.lepopup-form-100 .lepopup-element div.lepopup-input input[type='email'],.lepopup-form-100 .lepopup-element div.lepopup-input input[type='password'],.lepopup-form-100 .lepopup-element div.lepopup-input select,.lepopup-form-100 .lepopup-element div.lepopup-input select option,.lepopup-form-100 .lepopup-element div.lepopup-input textarea{font-size:15px;color:#444444;font-style:normal;text-decoration:none;text-align:left;background-color:rgba(255, 255, 255, 0.7);background-image:none;border-width:1px;border-style:solid;border-color:#cccccc;border-radius:0px;box-shadow:none;}.lepopup-form-100 .lepopup-element div.lepopup-input ::placeholder{color:#444444; opacity: 0.9;} .lepopup-form-100 .lepopup-element div.lepopup-input ::-ms-input-placeholder{color:#444444; opacity: 0.9;}.lepopup-form-100 .lepopup-element div.lepopup-input div.lepopup-multiselect::-webkit-scrollbar-thumb{background-color:#cccccc;}.lepopup-form-100 .lepopup-element div.lepopup-input>i.lepopup-icon-left, .lepopup-form-100 .lepopup-element div.lepopup-input>i.lepopup-icon-right{font-size:20px;color:#444444;border-radius:0px;}.lepopup-form-100 .lepopup-element .lepopup-button,.lepopup-form-100 .lepopup-element .lepopup-button:visited{font-size:17px;font-weight:700;font-style:normal;text-decoration:none;text-align:center;background-color:rgba(203, 169, 82, 1);background-image:linear-gradient(to bottom,rgba(255,255,255,.05) 0,rgba(255,255,255,.05) 50%,rgba(0,0,0,.05) 51%,rgba(0,0,0,.05) 100%);border-width:0px;border-style:solid;border-color:transparent;border-radius:0px;box-shadow:none;}.lepopup-form-100 .lepopup-element div.lepopup-input .lepopup-imageselect+label{border-width:1px;border-style:solid;border-color:#cccccc;border-radius:0px;box-shadow:none;}.lepopup-form-100 .lepopup-element div.lepopup-input .lepopup-imageselect+label span.lepopup-imageselect-label{font-size:15px;color:#444444;font-style:normal;text-decoration:none;text-align:left;}.lepopup-form-100 .lepopup-element div.lepopup-input input[type='checkbox'].lepopup-checkbox-tgl:checked+label:after{background-color:rgba(255, 255, 255, 0.7);}.lepopup-form-100 .lepopup-element div.lepopup-input input[type='checkbox'].lepopup-checkbox-classic+label,.lepopup-form-100 .lepopup-element div.lepopup-input input[type='checkbox'].lepopup-checkbox-fa-check+label,.lepopup-form-100 .lepopup-element div.lepopup-input input[type='checkbox'].lepopup-checkbox-square+label,.lepopup-form-100 .lepopup-element div.lepopup-input input[type='checkbox'].lepopup-checkbox-tgl+label{background-color:rgba(255, 255, 255, 0.7);border-color:#cccccc;color:#444444;}.lepopup-form-100 .lepopup-element div.lepopup-input input[type='checkbox'].lepopup-checkbox-square:checked+label:after{background-color:#444444;}.lepopup-form-100 .lepopup-element div.lepopup-input input[type='checkbox'].lepopup-checkbox-tgl:checked+label,.lepopup-form-100 .lepopup-element div.lepopup-input input[type='checkbox'].lepopup-checkbox-tgl+label:after{background-color:#444444;}.lepopup-form-100 .lepopup-element div.lepopup-input input[type='radio'].lepopup-radio-classic+label,.lepopup-form-100 .lepopup-element div.lepopup-input input[type='radio'].lepopup-radio-fa-check+label,.lepopup-form-100 .lepopup-element div.lepopup-input input[type='radio'].lepopup-radio-dot+label{background-color:rgba(255, 255, 255, 0.7);border-color:#cccccc;color:#444444;}.lepopup-form-100 .lepopup-element div.lepopup-input input[type='radio'].lepopup-radio-dot:checked+label:after{background-color:#444444;}.lepopup-form-100 .lepopup-element div.lepopup-input div.lepopup-multiselect>input[type='checkbox']+label:hover{background-color:#bd4070;color:#ffffff;}.lepopup-form-100 .lepopup-element div.lepopup-input div.lepopup-multiselect>input[type='checkbox']:checked+label{background-color:#a93a65;color:#ffffff;}.lepopup-form-100 .lepopup-element input[type='checkbox'].lepopup-tile+label, .lepopup-form-100 .lepopup-element input[type='radio'].lepopup-tile+label {font-size:15px;color:#444444;font-style:normal;text-decoration:none;text-align:center;background-color:#ffffff;background-image:none;border-width:1px;border-style:solid;border-color:#cccccc;border-radius:0px;box-shadow:none;}.lepopup-form-100 .lepopup-element-error{font-size:15px;color:#ffffff;font-style:normal;text-decoration:none;text-align:left;background-color:#d9534f;background-image:none;}.lepopup-form-100 .lepopup-element-2 {background-color:rgba(226,236,250,1);background-image:none;border-width:1px;border-style:solid;border-color:rgba(216,216,216,1);border-radius:3px;box-shadow: 1px 1px 15px -6px #d7e1eb;}.lepopup-form-100 .lepopup-element-3 * {font-family:'Arial','arial';font-size:26px;color:#333333;font-weight:normal;font-style:normal;text-decoration:none;text-align:center;}.lepopup-form-100 .lepopup-element-3 {font-family:'Arial','arial';font-size:26px;color:#333333;font-weight:normal;font-style:normal;text-decoration:none;text-align:center;background-color:transparent;background-image:none;border-width:1px;border-style:none;border-color:transparent;border-radius:0px;box-shadow:none;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;}.lepopup-form-100 .lepopup-element-3 .lepopup-element-html-content {min-height:36px;}.lepopup-form-100 .lepopup-element-4 * {font-family:'Arial','arial';font-size:19px;color:#555555;font-weight:normal;font-style:normal;text-decoration:none;text-align:left;}.lepopup-form-100 .lepopup-element-4 {font-family:'Arial','arial';font-size:19px;color:#555555;font-weight:normal;font-style:normal;text-decoration:none;text-align:left;background-color:transparent;background-image:none;border-width:1px;border-style:none;border-color:transparent;border-radius:0px;box-shadow:none;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;}.lepopup-form-100 .lepopup-element-4 .lepopup-element-html-content {min-height:63px;}.lepopup-form-100 .lepopup-element-5 * {font-family:'Arial','arial';font-size:13px;color:#555555;font-weight:normal;font-style:normal;text-decoration:none;text-align:left;}.lepopup-form-100 .lepopup-element-5 {font-family:'Arial','arial';font-size:13px;color:#555555;font-weight:normal;font-style:normal;text-decoration:none;text-align:left;background-color:transparent;background-image:none;border-width:1px;border-style:none;border-color:transparent;border-radius:0px;box-shadow:none;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;}.lepopup-form-100 .lepopup-element-5 .lepopup-element-html-content {min-height:60px;}.lepopup-form-100 .lepopup-element-6 * {font-family:'Arial','arial';font-size:13px;color:#333333;font-weight:normal;font-style:normal;text-decoration:none;text-align:left;}.lepopup-form-100 .lepopup-element-6 {font-family:'Arial','arial';font-size:13px;color:#333333;font-weight:normal;font-style:normal;text-decoration:none;text-align:left;background-color:transparent;background-image:none;border-width:1px;border-style:none;border-color:rgba(216,216,216,1);border-radius:0px;box-shadow:none;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;}.lepopup-form-100 .lepopup-element-6 .lepopup-element-html-content {min-height:auto;}.lepopup-form-100 .lepopup-element-0 * {font-size:15px;color:#ffffff;font-weight:normal;font-style:normal;text-decoration:none;text-align:left;}.lepopup-form-100 .lepopup-element-0 {font-size:15px;color:#ffffff;font-weight:normal;font-style:normal;text-decoration:none;text-align:left;background-color:#5cb85c;background-image:none;border-width:0px;border-style:solid;border-color:#ccc;border-radius:5px;box-shadow: 1px 1px 15px -6px #000000;padding-top:40px;padding-right:40px;padding-bottom:40px;padding-left:40px;}.lepopup-form-100 .lepopup-element-0 .lepopup-element-html-content {min-height:160px;}.

Peter Thomas Roth Rose Stem Cell Cleanser Discontinued, Santa Cruz Epoxy Surfboards, Single Room To Rent In Cambridge, Spiritual Jobs Remote, Best Afl Players Of The 21st Century, Articles M

mockito throw exception on void method