Testing AngularJS directives with Jasmine Directives AngularJS provides a mechanism called directives. Directives are markers in our HTML which Angular will read and use to inject some special behavior to our HTML code. As this sounds a little bit theoretically, let’s look at an example: 1 Enter your name: <input ng-model="name"> In this example the directive ng-model is used which will bind the value of […]
A mocked Spring security configuration for testing Spring security is great! It gives you the possibility to secure your app and to create a login with a few simple lines of code. However, it could also become annoying during development, when you have to log yourself in again and again. So why not create a mocked Spring authentication for development and testing? […]
Gradle’s bootRun and Window’s command length limit Sometimes Gradle’s bootRun and Window’s command length limit are two opponents. If you use bootRun to start your Spring Boot app from Gradle all class path dependencies will be added to the start command. Gradle will run something like this in the end: 1 java -jar MyApp.jar -classpath xx.jar,yy.jar,zz.jar,... That’s fine and will work for a really long time. But […]
Resizing Vagrant box disk space Vagrant is a great tool to provision virtual machines! As I’m a passionated Windows user, Vagrant is the weapon of my choice whenever I need to use some Linux-only tools such as Docker. I spinn up a new Linux VM, already configured with the things I need and start working. However, when it comes to […]