Tech-Today
JUnit 4.7 expected exception failed
I recently downloaded the new version of JUnit which is 4.7 and linked it to my project. Then all the test cases that should be ok if an exception is encountered failed.
My immediate solution was to remove the extends TestCase to each test classes. With this the JUnitTestSuite will not function anymore. To run all the test cases in a package, just right click the package and select Run As->JUnit Test, this will run all the methods with @Test in all the class in that package.
-
Spring Repository Unit Testing
Slack Discussion Repositories https://github.com/terawarehouse/terawarehouse-cataloghttps://github.com/terawarehouse/terawarehouse-reactAlright. Now that we have a set of repository classes. I believe it’s a good time to introduce unit testing. Remember,...
-
How To Integrate Querydsl In Your Javaee7 Project
This guide requires knowledge on: mavengiteclipsequerydslwild flyWe will show you how to modify the javaee7-archetype project to integrate querydsl. For those who do not know, it is a library to unify queries in java. What I like more about it is that...
-
How To Set Authorization Header In All Soapui Test Cases Via Script
To set the Authorization header in each test case of a testSuite, we run the script below. import com.eviware.soapui.impl.wsdl.teststeps.* import com.eviware.soapui.support.types.*; StringToStringMap headers = new StringToStringMap(); StringToStringMap...
-
How To Set Basic Authentication Setting In Soapui Testsuite Project
This post assumes that you already have soapUI installed on your machine with testCases and testSuite. Our problem is when we have several testCases inside a testSuite that needs to be authenticated with BASIC. There are 3 ways as described here: http://thewonggei.com/2010/08/05/configure-http-basic-auth-once-for-soapui-test-suties/....
-
Rijndael Invalid Length For A Base-64 Char Array
I have a requirement to send a variable from a link to a page. But the variable should be encrypted. And md5 will not work because I'm using entity framework and it doesn't recognized the md5 function. So I implement encryption using Rijndael....
Tech-Today